Added 'clear on start' flag

This commit is contained in:
David Madison 2017-03-27 15:14:02 -04:00
parent 8485478da5
commit 47305050b8
1 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,7 @@ static const unsigned long
// (150 seconds)
// --- Optional Settings (uncomment to add)
//#define CLEAR_ON_START // LEDs are cleared on reset
//#define GROUND_PIN 10 // additional grounding pin (optional)
//#define CALIBRATE // sets all LEDs to the color of the first
@ -65,6 +66,10 @@ void setup(){
FastLED.addLeds<LED_TYPE, Led_Pin, COLOR_ORDER>(leds, Num_Leds);
FastLED.setBrightness(Brightness);
#ifdef CLEAR_ON_START
FastLED.show();
#endif
Serial.begin(SerialSpeed);
Serial.println(Num_Leds);