From e7175f82e26c0098fe9e8385f80b1598d47fba5e Mon Sep 17 00:00:00 2001 From: David Madison Date: Thu, 18 Oct 2018 17:42:33 -0400 Subject: [PATCH] Adds clock pin support for 4-wire strips --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 11462e6..d53f816 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -31,6 +31,7 @@ static const uint8_t #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 +//#define PIN_CLOCK 7 // led data clock pin (uncomment if you're using a 4-wire LED type) // --- Serial Settings static const unsigned long @@ -122,7 +123,12 @@ void setup(){ pinMode(DEBUG_FPS, OUTPUT); #endif - FastLED.addLeds(leds, Num_Leds); + #ifdef PIN_CLOCK + FastLED.addLeds(leds, Num_Leds); + #else + FastLED.addLeds(leds, Num_Leds); + #endif + FastLED.setBrightness(Brightness); #ifdef CLEAR_ON_START