61#define LED_CLOCK_PIN 18
65#define LED_DATA_PIN_0 4
66#define LED_DATA_PIN_1 5
67#define LED_DATA_PIN_2 12
68#define LED_DATA_PIN_3 13
69#define LED_DATA_PIN_4 16
70#define LED_DATA_PIN_5 17
71#define LED_DATA_PIN_6 21
72#define LED_DATA_PIN_7 22
77#if defined(FASTLED_STUB_PLATFORM)
80#if NUM_STRIPS != 2 && NUM_STRIPS != 4 && NUM_STRIPS != 8
81 #error "NUM_STRIPS must be 2, 4, or 8"
85#if !defined(FASTLED_SPI_HOST_SIMULATION) && !defined(ESP32)
86 #error "This example requires ESP32 or host simulation platform"
99 Serial.println(
"FastLED Parallel Output Example");
100 Serial.println(
"================================");
101 Serial.print(
"Number of strips: ");
103 Serial.print(
"LEDs per strip: ");
105 Serial.print(
"Clock pin: GPIO");
140 Serial.println(
"================================");
141 Serial.println(
"Setup complete!");
149 for (
int i = 0; i <
NUM_LEDS; i++) {
174 for (
int i = 0; i <
NUM_LEDS; i++) {
180 for (
int i = 0; i <
NUM_LEDS; i++) {
185 for (
int i = 0; i <
NUM_LEDS; i++) {
205 uint32_t fps = (frameCount * 1000) / elapsed;
fl::UISlider brightness("Brightness", BRIGHTNESS, 0, 255)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
@ APA102
APA102 LED chipset.
void fill_rainbow(CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5) FL_NOEXCEPT
Fill a range of LEDs with a rainbow of colors.
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color) FL_NOEXCEPT
Fill a range of LEDs with a solid color.
LIB8STATIC fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
#define EVERY_N_MILLISECONDS(N)
Alias for EVERY_N_MILLIS.
LIB8STATIC u8 beatsin8(accum88 beats_per_minute, u8 lowest=0, u8 highest=255, u32 timebase=0, u8 phase_offset=0) FL_NOEXCEPT
Generates an 8-bit sine wave at a given BPM that oscillates within a given range.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>