#include <FastLED.h>
#define NUM_LEDS_PER_STRIP 60
#if defined(ESP32)
#if defined(CONFIG_IDF_TARGET_ESP32C3)
#define PIN_RED 2
#define PIN_GREEN 3
#define PIN_BLUE 4
#elif defined(CONFIG_IDF_TARGET_ESP32S3)
#define PIN_RED 1
#define PIN_GREEN 2
#define PIN_BLUE 3
#elif defined(CONFIG_IDF_TARGET_ESP32C6)
#define PIN_RED 2
#define PIN_GREEN 3
#define PIN_BLUE 4
#elif defined(CONFIG_IDF_TARGET_ESP32C5)
#define PIN_RED 3
#define PIN_GREEN 4
#define PIN_BLUE 5
#elif defined(CONFIG_IDF_TARGET_ESP32H2)
#define PIN_RED 0
#define PIN_GREEN 1
#define PIN_BLUE 4
#elif defined(CONFIG_IDF_TARGET_ESP32C2)
#define PIN_RED 0
#define PIN_GREEN 1
#define PIN_BLUE 2
#else
#define PIN_RED 13
#define PIN_GREEN 14
#define PIN_BLUE 15
#endif
#elif defined(ARDUINO_ARCH_RP2040)
#define PIN_RED 10
#define PIN_GREEN 11
#define PIN_BLUE 12
#elif defined(__IMXRT1062__)
#define PIN_RED 2
#define PIN_GREEN 3
#define PIN_BLUE 4
#elif defined(__MK66FX1M0__) || defined(__MK64FX512__)
#define PIN_RED 2
#define PIN_GREEN 3
#define PIN_BLUE 4
#else
#define PIN_RED 6
#define PIN_GREEN 7
#define PIN_BLUE 8
#endif
}
delay(100);
}
}
}
#define NUM_LEDS_PER_STRIP
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CRGB blueLeds[NUM_LEDS_PER_STRIP]
CRGB greenLeds[NUM_LEDS_PER_STRIP]
CRGB redLeds[NUM_LEDS_PER_STRIP]
void delay(u32 ms, bool run_async=true) FL_NOEXCEPT
Public delay wrapper that keeps bare Arduino delay() preferred after using fl::delay; while still all...
@ Green
<div style='background:#008000;width:4em;height:4em;'></div>
@ Red
<div style='background:#FF0000;width:4em;height:4em;'></div>
@ Blue
<div style='background:#0000FF;width:4em;height:4em;'></div>
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>