From 47305050b89c012802578ccaf6a5b370ef6f5537 Mon Sep 17 00:00:00 2001 From: David Madison Date: Mon, 27 Mar 2017 15:14:02 -0400 Subject: [PATCH] Added 'clear on start' flag --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 3fb3db9..9f42728 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -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(leds, Num_Leds); FastLED.setBrightness(Brightness); + #ifdef CLEAR_ON_START + FastLED.show(); + #endif + Serial.begin(SerialSpeed); Serial.println(Num_Leds);