From a883d4f6368a315f74c16fbc71506c00ec078477 Mon Sep 17 00:00:00 2001 From: RLF Date: Fri, 29 Dec 2023 03:19:35 -0500 Subject: [PATCH] added LEDBrightness variable --- uno-stats-monitor/monitor_uno.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uno-stats-monitor/monitor_uno.ino b/uno-stats-monitor/monitor_uno.ino index 035c7ab..545a15f 100644 --- a/uno-stats-monitor/monitor_uno.ino +++ b/uno-stats-monitor/monitor_uno.ino @@ -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);