Browse by type
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
*Note: ATtiny4313 has limited memory (WS2812 Blink + APA102 examples only)
*Note: NRF52 XiaoBLE board has mbed engine but doesn't compile against Arduino.h for unknown reasons.
*Beta support added in 3.10.2
*MGM240 (EFR32MG24) support for Arduino Nano Matter, SparkFun Thing Plus Matter, and Seeed Xiao MG24 Sense boards
**ESP3
$ claude mcp add FastLED \
-- python -m otcore.mcp_server <graph>