The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd
The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd
Transform any microcontroller into an LED powerhouse.
Drive 30,000+ LEDs on high-end devices • Sub-$1 compatibility on tiny chips • Background rendering for responsive apps • Nearly every LED chipset supported • #2 most popular Arduino library
#include <FastLED.h>
#define NUM_LEDS 60
CRGB leds[NUM_LEDS];
void setup() {
FastLED.addLeds<WS2812, 6>(leds, NUM_LEDS);
}
void loop() {
leds[0] = CRGB::Red; FastLED.show(); delay(500);
leds[0] = CRGB::Blue; FastLED.show(); delay(500);
}✅ Works on Arduino, ESP32, Teensy, Raspberry Pi, and 50+ other platforms
See our Cookbook for tutorials and walkthroughs →
The FastLED Cookbook provides practical guides, step-by-step examples, and copy-paste recipes to help you create stunning LED effects - from your first blink to advanced animations.
| Massive Scale | Tiny Footprint | Background Rendering | Universal |
|---|---|---|---|
| Drive 30,000 LEDs on Teensy 4.1 | Runs on $0.50 ATtiny chips | ESP32/Teensy render while you code | Works on 50+ platforms |
| 50 parallel strips on Teensy | <2KB on Arduino Uno | Never miss user input | Nearly every LED chipset |
** Performance**: Zero-cost global brightness • High-performance 8-bit math, memory efficient on platforms that need it. ** Developer Experience**: Quick platform switching • Extensive examples • Active community support
FastLED's codebase is organized into several major areas. Each directory contains a README with detailed documentation:
| Path | Description |
|---|---|
| src/README.md | Overview of the FastLED source tree including public headers, core foundation, effects, platforms, sensors, and third-party integrations |
| src/fl/README.md | FastLED core library (fl::) providing cross-platform STL-like containers, graphics primitives, math, async, JSON, and I/O utilities |
| src/fx/README.md | FX library with 1D/2D effects, video playback, composition utilities, and links to effect subdirectories |
| src/platforms/readme.md | Platform directory overview with backend selection guide, controller types, board-specific documentation, and links to all platform subdirectories |
Detailed Build Status
The Smoke Build badge above tracks build.yml, which compiles a small
default example set across a subset of boards. Every per-board build badge
below proves compile coverage only; it does not validate hardware or timing.
The QEMU and AVR8JS badges are the explicitly labelled emulation exceptions.
Most per-board workflows compile that board's full example sweep, while a
narrower set is called out next to the affected badge. A per-board badge can
therefore be red while the smoke badge is green.
SAMD (Adafruit core unless noted):
The Arduino Zero badge uses upstream ArduinoCore-samd. The other SAMD badges use Adafruit's fork, which supplies SAMD51 support.
ClearCore deliberately compiles Blink only against the pinned Teknic Arduino core.
ATtiny4313 has limited memory, so its workflow compiles only WS2812 Blink and APA102 examples.
Core coverage: all five badges use Adafruit's nRF52 core. Both Xiao variants and the DK/SuperMini workflows compile against the pinned nrf52840_dk_adafruit BSP target recorded in ci/boards.py; they do not cover Arduino's mbed core.
*Beta support added in 3.10.2
Core coverage: these ststm32 builds use STM32duino except the explicitly configured Maple-compatible target; Arduino GIGA uses its mbed core. The UNO Q badge is an STM32duino compile proxy, as documented in ci/boards.py.
*LPC804 and LPCXpresso804 are currently failing on master. These builds had no badge before, so the breakage was not visible from this page.
*MGM240 (EFR32MG24) support for Arduino Nano Matter, SparkFun Thing Plus Matter, and Seeed Xiao MG24 Sense boards
All three badges use Earle Philhower's Arduino-Pico core; none exercises Arduino's Mbed OS RP2040 core.
ESP32-C2 support was added in 3.9.10. See the Espressif compatibility evaluation.
Core Platforms: [](https://github.com/Fast
Deferred: hardware validation of RP2040/RP2350 and Teensy 4.x slim bridge (#4589, #4617)
Meta follow-up: do the non-channel legacy clockless platforms need the slim bridge?
Deferred: PARLIO hardware validation of the slim-bridge ClocklessPARLIO (#4583)
PARLIO: a 1-LED strip produces no output (AutoResearch zero_capture) on ESP32-C6
Meta: convert all legacy addLeds controllers to the slim bridge (all platforms)
Meta: ESP32-S3 binary-size reduction — Batch 3 (successor to #2773)
Reduce per-symbol bloat in the FastLED 1-4KB function band on ESP32-S3 (logging must stay enabled)
perf(ci): investigate 20-minute Linux unit job, cold_skip misses, and example runtime
perf(ci): research sub-10% routine Actions usage and full-gated releases
Color pipeline P10: hardware measurement gate and program closure