Skip to content

Commit 4c689ae

Browse files
committed
Fix comment and add missing debug statements to demo code
1 parent ede8925 commit 4c689ae

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

firmware/Examples/Advanced/OpenLCD_Qwiic_RGB_Backlight/OpenLCD_Qwiic_RGB_Backlight.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ void loop()
216216
delay(2000);
217217

218218
//Turn on all (white)
219+
Serial.println("Setting RGB backlight to white");
219220
Wire.beginTransmission(DISPLAY_ADDRESS1); // transmit to device #1
220221
Wire.write('|'); //Put LCD into setting mode
221222
Wire.write('-'); //Send clear display command
@@ -229,6 +230,7 @@ void loop()
229230
delay(2000);
230231

231232
//Set to Gray
233+
Serial.println("Setting RGB backlight to gray");
232234
Wire.beginTransmission(DISPLAY_ADDRESS1); // transmit to device #1
233235
Wire.write('|'); //Put LCD into setting mode
234236
Wire.write('-'); //Send clear display command

firmware/OpenLCD/OpenLCD.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ void updateDisplay()
433433
}
434434
else if (modeSetRGB == true)
435435
{
436-
//We get into this mode if the user has sent the correct setting command
436+
//We get into this mode if the user has sent the + (43) command to set the backlight rgb values
437437
rgbData[rgbSpot] = incoming; //Record this byte to the array
438438

439439
rgbSpot++;

0 commit comments

Comments
 (0)