Skip to content

Commit

Permalink
commented out HelloWorld
Browse files Browse the repository at this point in the history
  • Loading branch information
felixthecat8a committed Jan 1, 2025
1 parent 84e296d commit 2c34fb4
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions examples/HelloWorld/HelloWorld.ino
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,32 @@
*
*/

#include <LiquidCrystal.h>
#include <LCD_BacklightRGB.h>
// Set the pins for the LCD display.
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
// Set the RGB pins for the RGB LCD. Use PWM pins denoted by a ~ symbol.
const int redPin = 6, greenPin = 9, bluePin = 10;
LCD_BacklightRGB backlight(redPin, greenPin, bluePin);
// #include <LiquidCrystal.h>
// #include <LCD_BacklightRGB.h>
// // Set the pins for the LCD display.
// const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
// LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
// // Set the RGB pins for the RGB LCD. Use PWM pins denoted by a ~ symbol.
// const int redPin = 6, greenPin = 9, bluePin = 10;
// LCD_BacklightRGB backlight(redPin, greenPin, bluePin);

void setup() {
// Initiate the LCD.
lcd.begin(16, 2);
// Initiate the RGB pins.
backlight.begin();
// Optional: Set the brightness level (0 - 255).
// Defaults to 255 if not set.
// backlight.setBrightness(150);
// Optional: Set the backlight using RGB values.
// Defaults to (10, 135, 143) if not set.
// backlight.setRGB(46, 139, 87);
// Set the color and brightness:
backlight.setRGB(46, 139, 87, 150);
lcd.print("hello, world!");
}
// void setup() {
// // Initiate the LCD.
// lcd.begin(16, 2);
// // Initiate the RGB pins.
// backlight.begin();
// // Optional: Set the brightness level (0 - 255).
// // Defaults to 255 if not set.
// // backlight.setBrightness(150);
// // Optional: Set the backlight using RGB values.
// // Defaults to (10, 135, 143) if not set.
// // backlight.setRGB(46, 139, 87);
// // Set the color and brightness:
// backlight.setRGB(46, 139, 87, 150);
// lcd.print("hello, world!");
// }

void loop() {
lcd.setCursor(0, 1);
lcd.print(millis()/1000);
}
// void loop() {
// lcd.setCursor(0, 1);
// lcd.print(millis()/1000);
// }

0 comments on commit 2c34fb4

Please sign in to comment.