#include <FastLED.h>
#define NUM_LEDS_RED 60
#define NUM_LEDS_GREEN 24
#define NUM_LEDS_BLUE 12
#define MAX_STRIP_LEN NUM_LEDS_RED
#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);
}
}
}
}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
CRGB redLeds[NUM_LEDS_RED]
CRGB blueLeds[NUM_LEDS_BLUE]
CRGB greenLeds[NUM_LEDS_GREEN]
static void moveDot(int step, const CRGB &color)
@ 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>