From 0ffd98768e96fd493a4ad6dcb829c54fd59ffa88 Mon Sep 17 00:00:00 2001 From: David Madison Date: Thu, 18 Oct 2018 17:38:53 -0400 Subject: [PATCH] Refactor data pin as define Allows putting the clock pin definition next to it --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 28c0af3..11462e6 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -25,12 +25,12 @@ static const uint16_t Num_Leds = 80; // strip length static const uint8_t - Led_Pin = 6, // Arduino data output pin Brightness = 255; // maximum brightness // --- FastLED Setings #define LED_TYPE WS2812B // led strip type for FastLED #define COLOR_ORDER GRB // color order for bitbang +#define PIN_DATA 6 // led data output pin // --- Serial Settings static const unsigned long @@ -122,7 +122,7 @@ void setup(){ pinMode(DEBUG_FPS, OUTPUT); #endif - FastLED.addLeds(leds, Num_Leds); + FastLED.addLeds(leds, Num_Leds); FastLED.setBrightness(Brightness); #ifdef CLEAR_ON_START