Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

FastLED

> 编程语言
Open source

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

7.5K stars0 likes1 views
WebsiteGitHub

About

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

FastLED - The Universal LED Library for Embedded and Arduino

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

⚡ Get Blinking in 30 Seconds

cpp
#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

Just Getting Started?

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.

Why FastLED?

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

Source Code Directory Structure

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

Table of Contents

  • Audio Reactive LEDs
  • ⏱️ Async Tasks Instead of delay()
  • Latest Feature
  • ⭐ Community Growth
  • Latest Features
  • Platform Support
  • Installation
  • Documentation & Support
  • Advanced Features
  • Contributing

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.

Emulation Tests

ESP32 (QEMU):

AVR (AVR8JS):

Arduino Family

Core Boards:

Microchip SAM Family

SAM3X (Arduino core):

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.

SAME53 (Teknic core):

ClearCore deliberately compiles Blink only against the pinned Teknic Arduino core.

ATtiny Series:

ATtiny4313 has limited memory, so its workflow compiles only WS2812 Blink and APA102 examples.

Teensy Series

Standard Models:

Special Features:

NRF52 (Nordic)

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.

Apollo3 (Ambiq)

*Beta support added in 3.10.2

STM32 (STMicroelectronics)

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.

NXP LPC (Cortex-M0+)

*LPC804 and LPCXpresso804 are currently failing on master. These builds had no badge before, so the breakage was not visible from this page.

Silicon Labs (SiLabs)

*MGM240 (EFR32MG24) support for Arduino Nano Matter, SparkFun Thing Plus Matter, and Seeed Xiao MG24 Sense boards

Raspberry Pi Pico

All three badges use Earle Philhower's Arduino-Pico core; none exercises Arduino's Mbed OS RP2040 core.

ESP32 (Espressif)

ESP8266:

ESP32 Classic:

ESP32 S-Series:

ESP32 C-Series:

ESP32 Advanced:

RGBW:

Special Features:

IDF Variants:

Legacy:

ESP32-C2 support was added in 3.9.10. See the Espressif compatibility evaluation.

Specialty Platforms

x86:

WebAssembly:

Library Size Validation

STM32:

Core Platforms: [](https://github.com/Fast

Issues· 167 open

View all issuesOpen on GitHub
  • #4623

    Deferred: hardware validation of RP2040/RP2350 and Teensy 4.x slim bridge (#4589, #4617)

    Updated Sep 26, 2026
  • #4601

    Meta follow-up: do the non-channel legacy clockless platforms need the slim bridge?

    Updated Sep 25, 2026
  • #4612

    Deferred: PARLIO hardware validation of the slim-bridge ClocklessPARLIO (#4583)

    Updated Sep 25, 2026
  • #4609

    PARLIO: a 1-LED strip produces no output (AutoResearch zero_capture) on ESP32-C6

    Updated Sep 25, 2026
  • #4580

    Meta: convert all legacy addLeds controllers to the slim bridge (all platforms)

    Updated Sep 25, 2026
  • #2856

    Meta: ESP32-S3 binary-size reduction — Batch 3 (successor to #2773)

    deferredUpdated Sep 25, 2026
  • #2974

    Reduce per-symbol bloat in the FastLED 1-4KB function band on ESP32-S3 (logging must stay enabled)

    deferredUpdated Sep 24, 2026
  • #4529

    perf(ci): investigate 20-minute Linux unit job, cold_skip misses, and example runtime

    Updated Sep 24, 2026
  • #4543

    perf(ci): research sub-10% routine Actions usage and full-gated releases

    Updated Sep 24, 2026
  • #4044

    Color pipeline P10: hardware measurement gate and program closure

    Updated Sep 23, 2026

> Tags

C++

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言