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