Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielgarcia@gmail.com <danielgarcia@gmail.com@4ad4ec5c-605d-bd5c-5796-512c9b60011b>2013-10-21 21:34:50 +0400
committerdanielgarcia@gmail.com <danielgarcia@gmail.com@4ad4ec5c-605d-bd5c-5796-512c9b60011b>2013-10-21 21:34:50 +0400
commit331e25bc39755031342460dd86e84f5649e21e0d (patch)
tree7ca887a7b021bef4f1729f5d4d5c7677a6861373 /examples/FirstLight
parent93992ee82937f9517c9c9a68e2315a7ed8f36449 (diff)
oops
Diffstat (limited to 'examples/FirstLight')
-rw-r--r--examples/FirstLight/FirstLight.ino22
1 files changed, 5 insertions, 17 deletions
diff --git a/examples/FirstLight/FirstLight.ino b/examples/FirstLight/FirstLight.ino
index 0939fe8e..ffcc09b9 100644
--- a/examples/FirstLight/FirstLight.ino
+++ b/examples/FirstLight/FirstLight.ino
@@ -7,12 +7,7 @@
//
// How many leds are in the strip?
-#define SWITCH 2
-#if SWITCH == 1
-#define NUM_LEDS 18 * 3
-#elif SWITCH == 2
-#define NUM_LEDS 75 * 4
-#endif
+#define NUM_LEDS 60
// Data pin that led data will be written out over
#define DATA_PIN 6
@@ -32,19 +27,12 @@ void setup() {
// FastLED.addLeds<TM1803, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<TM1804, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<TM1809, DATA_PIN, RGB>(leds, NUM_LEDS);
- #if SWITCH == 1
- FastSPI_LED2.addLeds<WS2811, 16, GRB>(leds, NUM_LEDS/3);
- FastSPI_LED2.addLeds<WS2811, 7, GRB>(leds+18, NUM_LEDS/3);
- FastSPI_LED2.addLeds<WS2811, 19, GRB>(leds+36, NUM_LEDS/3);
- #elif SWITCH == 2
- FastSPI_LED2.addLeds<WS2811, 17, GRB>(leds, 75);
- FastSPI_LED2.addLeds<WS2811, 18, GRB>(leds + 75, 75);
- FastSPI_LED2.addLeds<WS2811, 7, GRB>(leds + 150, 75);
- FastSPI_LED2.addLeds<WS2811, 8, GRB>(leds + 225, 75);
- #endif
+ FastSPI_LED2.addLeds<WS2811, DATA_PIN, GRB>(leds+18, NUM_LEDS/3);
// FastLED.addLeds<WS2811, 8, RGB>(leds + 225, NUM_LEDS/4);
// FastLED.addLeds<WS2812, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
+ // FastLED.addLeds<NEOPIXEL, DATA_PIN, RGB>(leds, NUM_LEDS);
+ // FastLED.addLeds<WS2811_400, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<UCS1903, DATA_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<WS2801, RGB>(leds, NUM_LEDS);
@@ -73,4 +61,4 @@ void loop() {
// Turn our current led back to black for the next loop around
leds[whiteLed] = CRGB::Black;
}
-} \ No newline at end of file
+}