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-11-10 05:36:14 +0400
committerdanielgarcia@gmail.com <danielgarcia@gmail.com@4ad4ec5c-605d-bd5c-5796-512c9b60011b>2013-11-10 05:36:14 +0400
commite9d4489e508a99dc9e949f7762c2d6f3529524bb (patch)
treedb02d9fe781a3bdbc3b6ebd5af148f6ffe1c7f91 /examples/FirstLight
parent7185b516211105fc9644063548240c0057d77012 (diff)
parentadc78ce93b7b6b009aab35e9fce94074920b6bf5 (diff)
Sync w/main FastSPI_LED2 branch
Diffstat (limited to 'examples/FirstLight')
-rw-r--r--examples/FirstLight/FirstLight.ino13
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/FirstLight/FirstLight.ino b/examples/FirstLight/FirstLight.ino
index 25de2673..13340ebd 100644
--- a/examples/FirstLight/FirstLight.ino
+++ b/examples/FirstLight/FirstLight.ino
@@ -1,3 +1,5 @@
+#define FORCE_SOFTWARE_SPI
+#define FORCE_SOFTWARE_PINS
#include "FastSPI_LED2.h"
///////////////////////////////////////////////////////////////////////////////////////////
@@ -7,7 +9,7 @@
//
// How many leds are in the strip?
-#define NUM_LEDS 40
+#define NUM_LEDS 60
// Data pin that led data will be written out over
#define DATA_PIN 23
@@ -27,14 +29,17 @@ 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);
- FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
+ // 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);
// FastLED.addLeds<SM16716, RGB>(leds, NUM_LEDS);
- // FastLED.addLeds<LPD8806, RGB>(leds, NUM_LEDS);
+ FastLED.addLeds<LPD8806, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// FastLED.addLeds<SM16716, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
@@ -58,4 +63,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
+}