From 6eb61348676fbb08be200ce3843bc6de10b070e4 Mon Sep 17 00:00:00 2001 From: Jan Delgado Date: Fri, 25 Dec 2020 22:52:35 +0100 Subject: 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. --- examples/Cylon/Cylon.ino | 2 +- examples/Multiple/ArrayOfLedArrays/ArrayOfLedArrays.ino | 12 ++++++------ .../MultipleStripsInOneArray/MultipleStripsInOneArray.ino | 12 ++++++------ examples/Noise/Noise.ino | 2 +- examples/NoisePlayground/NoisePlayground.ino | 2 +- examples/RGBSetDemo/RGBSetDemo.ino | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) (limited to 'examples') 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(leds[0], NUM_LEDS_PER_STRIP); + // tell FastLED there's 60 NEOPIXEL leds on pin 2 + FastLED.addLeds(leds[0], NUM_LEDS_PER_STRIP); - // tell FastLED there's 60 NEOPIXEL leds on pin 11 - FastLED.addLeds(leds[1], NUM_LEDS_PER_STRIP); + // tell FastLED there's 60 NEOPIXEL leds on pin 3 + FastLED.addLeds(leds[1], NUM_LEDS_PER_STRIP); - // tell FastLED there's 60 NEOPIXEL leds on pin 12 - FastLED.addLeds(leds[2], NUM_LEDS_PER_STRIP); + // tell FastLED there's 60 NEOPIXEL leds on pin 4 + FastLED.addLeds(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(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(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(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(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(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(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(leds,NUM_LEDS); + LEDS.addLeds(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(leds,NUM_LEDS); + LEDS.addLeds(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 leds; -void setup() { FastLED.addLeds(leds, NUM_LEDS); } +void setup() { FastLED.addLeds(leds, NUM_LEDS); } void loop(){ static uint8_t hue; -- cgit v1.2.3