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:
authorJan Delgado <jdelgado@gmx.net>2020-12-26 00:52:35 +0300
committerJan Delgado <jdelgado@gmx.net>2020-12-30 15:54:05 +0300
commit6eb61348676fbb08be200ce3843bc6de10b070e4 (patch)
tree51f5b4f645fb0a77398ab177e724e8b1336ba711 /examples
parent47e033b17ded4d35cfd8be8c9efabe40e49e4bfd (diff)
build examples in CI using github actions
The examples are built for various different boards/platforms. Where necessary, examples were changed to enable compilation also for ESP8266 and ESP32 platforms.
Diffstat (limited to 'examples')
-rw-r--r--examples/Cylon/Cylon.ino2
-rw-r--r--examples/Multiple/ArrayOfLedArrays/ArrayOfLedArrays.ino12
-rw-r--r--examples/Multiple/MultipleStripsInOneArray/MultipleStripsInOneArray.ino12
-rw-r--r--examples/Noise/Noise.ino2
-rw-r--r--examples/NoisePlayground/NoisePlayground.ino2
-rw-r--r--examples/RGBSetDemo/RGBSetDemo.ino2
6 files changed, 16 insertions, 16 deletions
diff --git a/examples/Cylon/Cylon.ino b/examples/Cylon/Cylon.ino
index f51c3487..e1e20daa 100644
--- a/examples/Cylon/Cylon.ino
+++ b/examples/Cylon/Cylon.ino
@@ -6,7 +6,7 @@
// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806, define both DATA_PIN and CLOCK_PIN
-#define DATA_PIN 7
+#define DATA_PIN 2
#define CLOCK_PIN 13
// Define the array of leds
diff --git a/examples/Multiple/ArrayOfLedArrays/ArrayOfLedArrays.ino b/examples/Multiple/ArrayOfLedArrays/ArrayOfLedArrays.ino
index 3b7a9c79..0189f49e 100644
--- a/examples/Multiple/ArrayOfLedArrays/ArrayOfLedArrays.ino
+++ b/examples/Multiple/ArrayOfLedArrays/ArrayOfLedArrays.ino
@@ -12,14 +12,14 @@ CRGB leds[NUM_STRIPS][NUM_LEDS_PER_STRIP];
// For mirroring strips, all the "special" stuff happens just in setup. We
// just addLeds multiple times, once for each strip
void setup() {
- // tell FastLED there's 60 NEOPIXEL leds on pin 10
- FastLED.addLeds<NEOPIXEL, 10>(leds[0], NUM_LEDS_PER_STRIP);
+ // tell FastLED there's 60 NEOPIXEL leds on pin 2
+ FastLED.addLeds<NEOPIXEL, 2>(leds[0], NUM_LEDS_PER_STRIP);
- // tell FastLED there's 60 NEOPIXEL leds on pin 11
- FastLED.addLeds<NEOPIXEL, 11>(leds[1], NUM_LEDS_PER_STRIP);
+ // tell FastLED there's 60 NEOPIXEL leds on pin 3
+ FastLED.addLeds<NEOPIXEL, 3>(leds[1], NUM_LEDS_PER_STRIP);
- // tell FastLED there's 60 NEOPIXEL leds on pin 12
- FastLED.addLeds<NEOPIXEL, 12>(leds[2], NUM_LEDS_PER_STRIP);
+ // tell FastLED there's 60 NEOPIXEL leds on pin 4
+ FastLED.addLeds<NEOPIXEL, 4>(leds[2], NUM_LEDS_PER_STRIP);
}
diff --git a/examples/Multiple/MultipleStripsInOneArray/MultipleStripsInOneArray.ino b/examples/Multiple/MultipleStripsInOneArray/MultipleStripsInOneArray.ino
index 15d58bcb..c4426ddb 100644
--- a/examples/Multiple/MultipleStripsInOneArray/MultipleStripsInOneArray.ino
+++ b/examples/Multiple/MultipleStripsInOneArray/MultipleStripsInOneArray.ino
@@ -13,14 +13,14 @@ CRGB leds[NUM_STRIPS * NUM_LEDS_PER_STRIP];
// For mirroring strips, all the "special" stuff happens just in setup. We
// just addLeds multiple times, once for each strip
void setup() {
- // tell FastLED there's 60 NEOPIXEL leds on pin 10, starting at index 0 in the led array
- FastLED.addLeds<NEOPIXEL, 10>(leds, 0, NUM_LEDS_PER_STRIP);
+ // tell FastLED there's 60 NEOPIXEL leds on pin 2, starting at index 0 in the led array
+ FastLED.addLeds<NEOPIXEL, 2>(leds, 0, NUM_LEDS_PER_STRIP);
- // tell FastLED there's 60 NEOPIXEL leds on pin 11, starting at index 60 in the led array
- FastLED.addLeds<NEOPIXEL, 11>(leds, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
+ // tell FastLED there's 60 NEOPIXEL leds on pin 3, starting at index 60 in the led array
+ FastLED.addLeds<NEOPIXEL, 3>(leds, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
- // tell FastLED there's 60 NEOPIXEL leds on pin 12, starting at index 120 in the led array
- FastLED.addLeds<NEOPIXEL, 12>(leds, 2 * NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
+ // tell FastLED there's 60 NEOPIXEL leds on pin 4, starting at index 120 in the led array
+ FastLED.addLeds<NEOPIXEL, 4>(leds, 2 * NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP);
}
diff --git a/examples/Noise/Noise.ino b/examples/Noise/Noise.ino
index e196e6bb..b0635702 100644
--- a/examples/Noise/Noise.ino
+++ b/examples/Noise/Noise.ino
@@ -69,7 +69,7 @@ void setup() {
// Serial.begin(38400);
// Serial.println("resetting!");
delay(3000);
- LEDS.addLeds<WS2811,5,RGB>(leds,NUM_LEDS);
+ LEDS.addLeds<WS2811,2,RGB>(leds,NUM_LEDS);
LEDS.setBrightness(96);
// Initialize our coordinates to some random values
diff --git a/examples/NoisePlayground/NoisePlayground.ino b/examples/NoisePlayground/NoisePlayground.ino
index e2c7cb31..0d860cf5 100644
--- a/examples/NoisePlayground/NoisePlayground.ino
+++ b/examples/NoisePlayground/NoisePlayground.ino
@@ -61,7 +61,7 @@ void setup() {
Serial.println("resetting!");
delay(3000);
- LEDS.addLeds<WS2811,6,GRB>(leds,NUM_LEDS);
+ LEDS.addLeds<WS2811,2,GRB>(leds,NUM_LEDS);
LEDS.setBrightness(96);
hxy = (uint32_t)((uint32_t)random16() << 16) + (uint32_t)random16();
diff --git a/examples/RGBSetDemo/RGBSetDemo.ino b/examples/RGBSetDemo/RGBSetDemo.ino
index 455fdccc..42478757 100644
--- a/examples/RGBSetDemo/RGBSetDemo.ino
+++ b/examples/RGBSetDemo/RGBSetDemo.ino
@@ -3,7 +3,7 @@
CRGBArray<NUM_LEDS> leds;
-void setup() { FastLED.addLeds<NEOPIXEL,6>(leds, NUM_LEDS); }
+void setup() { FastLED.addLeds<NEOPIXEL,2>(leds, NUM_LEDS); }
void loop(){
static uint8_t hue;