FastLED 3.10.9
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 19 of file Esp8266Uart.ino.

19 {
20 // Legacy controller path (no define needed now).
21 // Uses hardware UART for stable timing under Wi-Fi load.
22 FastLED.addLeds<fl::UARTController_ESP8266, GRB>(leds, NUM_LEDS);
23 FastLED.setBrightness(50);
24
25 // Channel API alternative -- select the UART engine by template:
26 // fl::ChannelConfigOf<fl::ClocklessChipset> cfg{clockless, span<CRGB>(leds, NUM_LEDS), GRB};
27 // FastLED.add<fl::Bus::UART, fl::ClocklessChipset>(cfg);
28}
CRGB leds[1]
#define NUM_LEDS
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
constexpr EOrder GRB
Definition eorder.h:19

References FastLED, GRB, leds, and NUM_LEDS.