File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,7 @@ void displayClear(){
382
382
for (int i=0 ; i<NUM_MAX; i++) { lc.clearDisplay (i); }
383
383
}
384
384
385
+ int curBrightness = 8 ;
385
386
void displayBrightness (int brightness){
386
387
for (int i=0 ; i<NUM_MAX; i++) { lc.setIntensity (i,brightness); }
387
388
}
@@ -432,6 +433,17 @@ void checkSerialInput(){
432
433
case 100 : // d
433
434
Serial.print (F (" rtcDate is " )); Serial.println (rtcDate,DEC);
434
435
break ;
436
+ case 98 : // b
437
+ switch (curBrightness){
438
+ case 0 : curBrightness = 1 ; break ;
439
+ case 1 : curBrightness = 8 ; break ;
440
+ case 8 : curBrightness = 15 ; break ;
441
+ case 15 : curBrightness = 0 ; break ;
442
+ default : break ;
443
+ }
444
+ Serial.print (F (" Changing brightness to " )); Serial.print (curBrightness,DEC); Serial.println (F (" /15" ));
445
+ displayBrightness (curBrightness);
446
+ break ;
435
447
case 49 : // 1
436
448
case 50 : // 2
437
449
case 51 : // 3
@@ -443,7 +455,6 @@ void checkSerialInput(){
443
455
case 57 : // 9
444
456
case 48 : // 0
445
457
case 97 : // a
446
- case 98 : // b
447
458
case 99 : // c
448
459
case 101 : // e
449
460
case 103 : // g
You can’t perform that action at this time.
0 commit comments