added LEDBrightness variable

This commit is contained in:
RLF
2023-12-29 03:19:35 -05:00
parent 863fe1f885
commit a883d4f636

View File

@@ -83,6 +83,7 @@ LiquidCrystal LCD(LCDRS, LCDEN, LCDD4, LCDD5, LCDD6, LCDD7);
// LED vars
const int LEDIN = 10, LEDCS = 9, LEDCLK = 8;
LedControl LEDlc=LedControl(LEDIN,LEDCLK,LEDCS,1);
int LEDBrightness = 1; // default = 8 / max = 15
unsigned long LEDdelaytime1=5;
unsigned long LEDdelaytime2=5;
@@ -108,7 +109,7 @@ void LEDSetup(void)
LEDlc.shutdown(0,false);
/* Set the brightness to medium values */
LEDlc.setIntensity(0,8);
LEDlc.setIntensity(0,LEDBrightness);
/* and clear the display */
LEDlc.clearDisplay(0);