Repository navigation
Releases
FastLED 3.10.10
- New:
drawPolygoninfl::gfx(Exact + ABuffer) (#5269)- A new polygon fill primitive runs through the existing Exact and ABuffer pipelines. The AVR TinyGL reference path was fixed at its root, so the same call works on 8-bit targets.
- The default
MAXN/CHUNKfollow the target's stack size instead of its flash tier, so small-stack parts such as STM32F101x6/F102x6 no longer overflow on first use (#5288, #5296, #5298). - Exact 28-bit edge division stays correct for very large edges (#5289), and 32-bit population counts stay 32-bit on 16-bit-int platforms (#5291).
- Channels: lazy driver bindings and engine worker defaults
FastLED.enable<Bus>()binds drivers lazily, soadd(cfg)no longer links every driver into the sketch (#5207).addLedsfalls back to the enabled driver when its own driver is disabled, and warns once per second instead of failing silently (#5213).FL_ENGINE_WORKER_COREandFL_ENGINE_WORKER_PRIORITYset defaults for engines that honor them, currently the ESP32 LCD/I2S clockless driver. Define them the same way in every translation unit. Unset,Priority::AutostaysHighon that worker (#5054).- Named worker priorities no longer cost memory (#5018).
- Software SPI: faster on every platform that streams GPIO (#5083-#5128)
- Data writes are branch-free and atomic where the hardware has set/clear registers: AVR (#5083), Teensy 4 (#5084), Teensy 3.x K20/K66 (#5097, #5099), Teensy LC (#5102), ESP32 (#5090), ESP8266 (#5021), SAMD21/SAMD51 (#5094, #5095), RP2040 (#5098), RP2350 (#5101), Apollo3 (#5093), nRF52 (#5121), SAM3X (#5118), STM32 (#5115), LPC11/LPC8xx (#5109, #5111), Renesas RA (#5103), MGM240 (#5105).
- The shared bit-bang writer hoists lane and mask resolution out of the bit loop (#5128), so every platform with a full-port policy benefits.
- ESP8266 generic bit-bang SPI on ordinary GPIO: the 512-byte bulk path improves from about 3.10 to 5.36 Mbit/s at 80 MHz and 4.42 to 6.66 Mbit/s at 160 MHz. Pairs using GPIO16 remain limited by its slower RTC register.
- AVR: native SPI
writeBitfixes (SM16716)writeBit<BIT>tests the selected bit on USART and SPI0 parts instead of treating any nonzero byte as high.- All five native implementations now finish the pending byte and hand the pins to GPIO, so the bit reaches the wire on USART and SPI0 parts (Nano Every) and a pending byte is no longer cut off on classic parts (Uno). These changes were checked against datasheets and in host tests but not on hardware; please report SM16716 results.
- ESP8266: faster generic bit-bang SPI on ordinary GPIO
- The 512-byte bulk path improves from about 3.10 to 5.36 Mbit/s at 80 MHz and 4.42 to 6.66 Mbit/s at 160 MHz. Pairs using GPIO16 remain limited by its slower RTC register.
- LPC845 / LPC804: native pin backend and SCT+DMA clockless engine
- A native LPC845/LPC804 pin backend replaces the fallback, and forced software pins are honoured (#5261).
- The LPC845 SCT+DMA clockless engine now drives the wire: the
--pwm-dma-clhang is gone and WS2812 loopback decodes on silicon (#5272, #5275). - The DMA hub clears and latches every pending
ERRINT, waits for a leftover frame, and halts SCT+DMA together on a DMA error (#5277, #5283).
- ESP32: DMA and PSRAM fixes
- RMT5 skips the DMA channel automatically for short strips (#5228), and
FL_RMT5_USE_DMA=0keeps ESP32-S3 RMT off the 4 KB DMA block (#5166). - PARLIO sizes its DMA ring and TX descriptors to the frame instead of a fixed worst case (#5232).
- RMT5 reclaims callback contexts on channel deletion (#5019) and sets
intr_priorityfrom IDF 5.1.2 in TX and RX (#5219). - PSRAM pins are masked by installed PSRAM size, not free size (#5221). Native SPI streams in chunks and links only the drivers a sketch uses (#5002, #5014).
- RMT5 skips the DMA channel automatically for short strips (#5228), and
- Power management: the budget is a strict upper bound (#5139)
set_max_power_in_volts_and_milliampsand the per-strip budget are now strict upper bounds with a per-MCU baseline and MCU/dark overrides (#5180).- Dimming no longer increases as the budget rises past the baseline (#5159), and the strip stays lit when the budget is under the dark-current baseline (#5153). A budget at or below the MCU plus LED dark-current baseline cannot be met: brightness cannot reduce that draw, so the strip stays lit at baseline draw and the budget is exceeded.
- nRF51: compiles and links again (#5119, #5154)
- Fixes
fl::sortis an introsort with three-way partitioning, so equal keys no longer degrade (#5005).- ESP32 static-initialisation guards are safe under LTO (#4994, #5007).
FASTLED_FORCE_SOFTWARE_PINSis honoured or rejected at compile time on STM32, SAMD, Teensy 3.x, nRF52, MGM240, Giga and LPC instead of silently ignored or crashing (#5149, #5150, #5151, #5152, #5169, #5170, #5171, #5203, #5204).writeBithands pins to GPIO and finishes pending bytes on AVR, SAM3X, SAMD, STM32, Teensy 4 and Teensy LC (#5075, #5080, #5131, #5142, #5143, #5147, #5174, #5175).- Pin maps: RP2350 GPIO32-47 via
GPIO_HI(#5172), MGM240 per-variant maps (#5173), SAMD variant pins at or abovePINS_COUNT(#5206), and nRF52 P1 short-form pins (#5149).
- CI
FastLED 3.10.9
-
Memory: smaller flash and RAM than 3.10.8 on every measured ESP32 sketch
- Subsystems a sketch does not use are no longer linked. On ESP32, the native UART console, Arduino SPI, the embedded filesystem, and
Serial0are included only when a sketch uses them, and diagnostic printing writes through the ROM UART until the console is actually used (#4873, #4892, #4894, #4896, #4990). - Clocked LED chipsets such as APA102 link the ESP-IDF SPI master driver only when a sketch requests a specific SPI host with
addLeds<...>(leds, n, fl::Esp32SpiBus::...). Sketches on the default host no longer carry that driver (#5000). - Across the benchmarks below, ESP32 and ESP32-S3 save 4.2-6.4 KB of flash and 300-730 B of static RAM. AVR and Teensy 4.1 are unchanged or slightly smaller.
fl::unordered_mapno longer places rehash scratch space on the stack; on ESP8266 this raises loop-stack headroom from 368 B to 1,568 B (#4926).
Measured with the FastLED memory dashboard benchmark protocol: identical sketches without Serial, identical board configurations, and the same fbuild build for both versions. Flash and RAM are fbuild's board totals in bytes; RAM is static RAM and excludes heap and stack. Blink drives one WS2812B; APA102 hardware SPI drives one APA102 strip; the feature mix drives a WS2812B and an APA102 strip with colour correction, power limiting, palettes, noise and blur.
Sketch Board Flash 3.10.8 Flash 3.10.9 Change RAM 3.10.8 RAM 3.10.9 Change Blink ESP32 Dev 290,724 284,904 -5,820 23,896 23,520 -376 Blink ESP32-S3 392,760 387,552 -5,208 77,192 76,552 -640 Blink Teensy 4.1 47,104 47,104 0 27,136 27,104 -32 Blink Uno (AVR) 3,592 3,592 0 118 118 0 APA102 hardware SPI ESP32 Dev 275,100 269,132 -5,968 23,112 22,808 -304 APA102 hardware SPI ESP32-S3 393,076 388,924 -4,152 77,136 76,568 -568 APA102 hardware SPI Teensy 4.1 47,104 47,104 0 27,136 27,136 0 APA102 hardware SPI Uno (AVR) 3,262 3,262 0 119 119 0 Feature mix ESP32 Dev 309,980 303,560 -6,420 25,048 24,608 -440 Feature mix ESP32-S3 419,140 413,868 -5,272 78,904 78,176 -728 Feature mix Teensy 4.1 56,320 56,320 0 29,024 28,992 -32 Feature mix Uno (AVR) 8,414 8,414 0 355 355 0 - Subsystems a sketch does not use are no longer linked. On ESP32, the native UART console, Arduino SPI, the embedded filesystem, and
-
Compatibility
- Arduino-ESP32 3.3.x (ESP-IDF 5.5) is the primary ESP32 target. The Arduino-ESP32 4.0.0 release candidate (ESP-IDF 6.1) and the legacy 1.0.x (ESP-IDF 3.3) and 2.0.x (ESP-IDF 4.4) cores are also built in CI.
- Teknic ClearCore (SAME53) builds again; it was incorrectly treated as a SAMD21/SAMD51 board (#4997).
- AVR sketches that use the Servo library can own the Timer1 interrupt vector (#4884).
- The
FASTLED_ESP8266_UART,FASTLED_ALL_PINS_HARDWARE_SPI, andFL_ESP8266_EMBEDDED_FSdefines are retired in favour of explicitfl::Busselection (see ESP8266 below).
-
ESP-IDF status
- Every ESP-IDF version in CI is built with Arduino running as an ESP-IDF component: ESP-IDF 3.3, 4.4, 5.3 (through the ESP-IDF component/CMake build), 5.5, and 6.1.
- Pure ESP-IDF projects without the Arduino core (
framework = espidf) are not yet verified by CI and are not officially supported in this release, on any ESP-IDF version. ESP-IDF-native code paths are now the default throughoutsrc/platforms/esp, and lint blocks new Arduino dependencies there; Arduino-free build coverage is tracked in #3715.
-
ESP8266: native drivers on the unified Bus API (#4917, #4925, #4941-#4948)
- Three hardware output engines: I2S (
fl::Bus::FLEX_IO), UART for WS2812 (fl::Bus::UART), and hardware HSPI for clocked chipsets such as APA102 (fl::Bus::SPI).fl::Bus::AUTOselects a suitable default. - New support for
fl::RxChannel(via the I2S receiver), embedded LittleFS, ArduinoOTA, and audio input through the shared Arduino I2S path.
- Three hardware output engines: I2S (
-
ESP32 drivers
- The lightweight legacy RMT4 backend is the default again, with transmit and receive verified on hardware (#4877, #4881).
- Clocked SPI chipsets such as APA102 now use true DMA bursts, and explicitly requested SPI hosts are respected (#4879, #4919).
- SPI and RMT drivers reclaim their pins after another peripheral has used them (#4905, #4907).
- ESP32-S3 RMT receive captures are no longer truncated at 200 edges (#4903).
- Pin functions are protected from Arduino-ESP32 remapping macros (#4931).
- ESP32-P4 native USB CDC links against the stock TinyUSB callbacks; ESP32-S2 native USB remains opt-in until it is verified on hardware (#4900).
- The RMT refill timing path runs from IRAM and starts its deadlines only once transmission begins, avoiding spurious underruns (#4877).
- Transfers queued through the ESP-IDF SPI driver keep their SDK ownership, and an unused ESP-DSP FFT adapter and PWM teardown code were removed (#4871, #4873).
- Remaining compiler warnings from the ESP32 and STL headers are cleared (#4932).
-
Fixes
- JSON serialization and RPC responses stream without buffering the whole document and handle out-of-memory conditions gracefully (#4899).
- JSON output replaces unpaired UTF-16 surrogates with U+FFFD, producing valid UTF-8 (#4899).
fl::stringkeeps its previous contents when a resize fails instead of being left in a partial state (#4900).readStringUntilresets its timeout after every received byte, so slow serial input is no longer cut off (#4893).
-
Build and tooling
- Requires fbuild 2.5.49 or newer and zccache 1.15.11 or newer (#4973, #4996).
- ESP32-S2/S3 TinyUSB deploys and AVR emulation run through fbuild (#4895, #4916).
- New lint rules flag driver-enabling defines that bypass the template pattern, bare
noinlineattributes in examples and tests, missingFL_NO_EXCEPTon ESP sources, and Arduino dependencies leaking into native ESP32 code (#4831, #4897, #4940, #4960). - The main repository no longer publishes Doxygen output (#4880).
- Pull requests now receive a per-target memory usage report (#4921, #4935).
FastLED 3.10.8
- Compatibility with C library and standard C++ calls on FastLED types (#4827)
- Unqualified
memset,memcpy,memmove,free, and other libc calls onCRGBpointers compile again. Standard algorithms such asstd::sortandstd::reverseno longer collide with FastLED's generic functions. - The public
fl::sortandfl::movecalls remain available. Bare calls that previously found FastLED's generic algorithms only through argument-dependent lookup should use the explicitfl::qualifier. - Lint and compile tests guard the libc wrappers and the algorithm lookup rules against regressions (#4833, #4835, #4841, #4853, #4854).
- Unqualified
- Platform and build fixes
- The ESP32 Arduino 4 / ESP-IDF 6 release candidate builds the Test example; its board build is included in CI (#4830).
- SD file error overrides match their
noexceptcontract on ESP32 (#4828). - Native, Windows, and WASM builds use zccache 1.15.6 or newer to validate precompiled-header inputs in private snapshots while leaving shared source timestamps unchanged. Real content and compiler-setting changes still invalidate stale outputs (#4839, #4843, #4865, #4866).
- Mega (ATmega2560) joins the board build matrix; fbuild is pinned to 2.5.42 (#4858, #4859).
- QEMU smoke tests and the Test example avoid the ESP32 emulator timing failures (#4856, #4857).
FastLED 3.10.7
- Smaller builds: memory and flash regressions since 3.10.3 cut back (#4801)
- Code that a sketch can never use is no longer linked in: the FLEX_IO clockless pipeline in SPI-only sketches, the I2S clockless peripheral on esp32dev, the ADC driver unless
fl::analogReadis used, the task Scheduler in driver wait loops (newfl::task::yield_system()), RGBW/RGBWW conversion in RGB-only sketches, and libstdc++ locale init. - Wi-Fi is detected through
esp_netif, so ESP32 sketches without networking drop 1.3 KB of Wi-Fi RAM. - Teensy I2S audio-input buffers are allocated on first use (−1 KB RAM in LED-only sketches).
- Uno Blink static RAM is down to 118 B, below 3.10.3.
- Dashboard deltas vs 3.10.6-era master: esp32dev Blink −5.2 KB flash / −1.9 KB RAM, esp32dev APA102 −15.9 KB / −2.2 KB, esp32s3 Blink −9.2 KB / −0.7 KB, esp32s3 APA102 −16.6 KB / −0.7 KB.
- Code that a sketch can never use is no longer linked in: the FLEX_IO clockless pipeline in SPI-only sketches, the I2S clockless peripheral on esp32dev, the ADC driver unless
- Drivers and platforms
- Teensy 4: ISR-streamed FlexPWM RX + FlexIO TX ring (1000-LED loopback); fixed WS2812 loopback decode mismatches; ObjectFLED DMA buffer sized to the frame.
- Platform-neutral early-boot watchdog loop guard (Teensy 4.x self-recovers before USB).
- ESP32: compact RMT allocation records; PARLIO shares mutually exclusive waveform lookup storage; Wi-Fi/OTA linked only when a sketch uses
fl::net. - AVR: Arduino
Seriallinked only when used; the power limiter drops 64-bit math; legacy white settings preserved during encoding.
- Fixes
fl::aligned_allocnow honours the requested alignment on bare-metal targets (AVR/ESP8266/ARM).- ESP32 SPI bulk-transfer path builds again (stray exception specifier).
- WASM: strips placed relative to shared screen bounds; screen maps with unset diameter render.
- In-place upgrades over 3.10.5 link (tombstoned
fl.system.sd+.cpp).
- API and tooling
- No-throw annotations enforced (
FL_NO_EXCEPT) with an ESP release exception policy. - Non-release builds default to errors-only logging.
- New lints: raw
alignasbanned insrc/(usefl/stl/align.h). - fbuild pinned to 2.5.39.
- No-throw annotations enforced (
FastLED 3.10.6
- MP3 decoder: minimp3 is now the only backend, and it decodes in fixed point
- The RPSL/RCSL-licensed
src/third_party/libhelix_mp3/tree has been removed. FastLED's MP3 support is now entirely CC0 (minimp3), which is what makes the library redistributable without the Helix licence obligations. - The decoder defaults to an integer (Q26 fixed-point) DSP path, so MP3 decoding no longer needs an FPU. Float remains available for reference and comparison via
MINIMP3_FLOAT_POINT. - Integer SIMD kernels (SSE4.1 with runtime dispatch, NEON unconditionally on ARM64) accelerate the polyphase filter and DCT-32, and are gated on producing bit-identical PCM to the scalar path.
Mp3HelixDecoderis gone. It was an internalfl::third_partytype exposed only for backend-parity testing; the publicfl::Mp3Decoder/fl::Mp3API is unchanged. Code that namedMp3HelixDecoderorMP3_HELIX_STREAM_BUFFER_SIZEdirectly should useMp3Minimp3Decoder/MP3_MINIMP3_STREAM_BUFFER_SIZE.- Working RAM for the shipping fixed-point build is 23,308 bytes against Helix's 27,952 (the float reference build measures 23,180), and the budget is enforced in CI by
codec_memory_ledger.md.
- The RPSL/RCSL-licensed
- NEW: TrueType Font Rendering Support: Full TrueType font (.ttf/.ttc) rendering API with embedded default font
- High-quality text rendering: Render scalable TrueType fonts to LED matrices with antialiasing support
- stb_truetype integration: Built on industry-standard stb_truetype library (5108 lines, compact and efficient)
- Embedded default font: Includes Covenant5x5 pixel font (9.9KB) with 5x5 pixel cell size, perfect for LED displays
- Custom font support: Load any TrueType font from memory (
.ttfsingle fonts or.ttcfont collections) - FontRenderer API: Convenient high-level wrapper for rendering at specific pixel heights
fl::Font::loadDefault()- Load embedded Covenant5x5 fontfl::Font::load(fontData)- Load custom TrueType font from memoryfl::FontRenderer(font, pixelHeight)- Create renderer at specified sizerenderer.render('A')- Render character with 2x2 antialiasing (default)renderer.renderNoAA('A')- Render without antialiasing for crisp pixelsrenderer.measureString("Hello")- Calculate string width with kerning
- Advanced features:
- Grayscale antialiasing with configurable oversampling (1x1 to NxN)
- Automatic kerning support for professional text layout
- Font metrics query (ascent, descent, line gap, bounding boxes)
- Glyph metrics (advance width, side bearings, per-character bounds)
- Unicode codepoint support
- Scaled metrics calculation for any pixel height
- GlyphBitmap output: Rendered glyphs as 8-bit grayscale bitmaps (0=transparent, 255=opaque)
- Easy pixel access via
getPixel(x, y)with bounds checking - Proper glyph positioning with xOffset/yOffset for baseline alignment
- Direct mapping to LED coordinates for seamless integration
- Easy pixel access via
- Minimal API: Simple 3-step workflow - load font, create renderer, render glyphs
- Memory efficient: Shared font instances via
fl::shared_ptr, on-demand rendering - Platform agnostic: Works on all FastLED platforms with C++ support
- Example usage:
#include "fl/font/truetype.h" #include "fl/font/truetype.cpp.hpp" // Include ONCE auto font = fl::Font::loadDefault(); // Load embedded font fl::FontRenderer renderer(font, 10.0f); // 10px height fl::GlyphBitmap glyph = renderer.render('A'); // Render with AA // Draw to LED matrix for (int y = 0; y < glyph.height; ++y) { for (int x = 0; x < glyph.width; ++x) { uint8_t alpha = glyph.getPixel(x, y); // 0-255 // Blend alpha onto LED at (x + glyph.xOffset, y + glyph.yOffset) } }
- Unit tested: Comprehensive test suite with 303 lines covering font loading, metrics, glyph queries, bitmap rendering, and kerning
- Files:
- API: src/fl/font/truetype.h (185 lines)
- Implementation: src/fl/font/truetype.cpp.hpp (264 lines)
- Embedded font: src/fl/font/ttf_covenant5x5.cpp.hpp (657 lines, 9.9KB font data)
- stb_truetype: src/third_party/stb/truetype/stb_truetype.h (414 lines header, 5108 lines implementation)
- Tests: tests/fl/font/truetype.cpp
- NEW: WS2812B-V5 and WS2812B-Mini-V3 Chipset Support: Added support for newer WS2812B variants with tighter timing specifications
- WS2812B-V5: Newer variant with 220/580ns timing (T0H: 220-380ns, T1H: 580-1000ns)
- WS2812B-Mini-V3: Compact 3535 package with identical timing to V5
- Both variants use tighter timing tolerances compared to original WS2812B (250/625ns)
- Usage:
FastLED.addLeds<WS2812BV5, DATA_PIN, GRB>(leds, NUM_LEDS);orFastLED.addLeds<WS2812BMiniV3, DATA_PIN, GRB>(leds, NUM_LEDS); - Supported across all platforms with clockless controller support
- See timing comparison table in README.md
- NEW: Native RGBW Support Without Emulation: The following platforms now support true RGBW LED strips (SK6812, etc.) with hardware-native 4-channel output:
- RP2040/RP2350 (Raspberry Pi Pico): Full RGBW support with parallel output driver
- Supports mixed RGB/RGBW strips in same parallel group
- Automatic white channel handling via
setRgbw(RgbwDefault()) - Works with automatic parallel grouping (2/4/8-lane output)
- See commit e2fc7f6 and src/platforms/arm/rp/rpcommon/PARALLEL.md
- STM32: Native RGBW output on STM32 ARM platform
- Hardware-timed 4-channel output for SK6812 and similar RGBW chipsets
- No software emulation overhead
- See commit 2293b52 and src/platforms/arm/stm32/README.md
- Teensy 3.x Series: Native RGBW support added for Teensy 3.0/3.1/3.2/3.5/3.6
- Teensy 3.0/3.1/3.2 (ARM K20): Full 4-channel RGBW output
- Teensy 3.5/3.6 (ARM K66): Full 4-channel RGBW output
- Follows STM32 implementation pattern with unified loop and fixed-size buffer
- Automatic RGBW detection with no performance impact on RGB mode
- Files: src/platforms/arm/teensy/teensy31_32/clockless_arm_k20.h, src/platforms/arm/teensy/teensy36/clockless_arm_k66.h
- nRF52 (Nordic nRF52, Bluefruit boards): Native RGBW support via PWM peripheral
- 4-channel RGBW output using hardware PWM peripheral
- PWM buffer sized for maximum (RGBW), runtime selects RGB or RGBW mode
- Separate code paths for RGB (3 bytes) and RGBW (4 bytes) for optimal performance
- Supports up to 144 LEDs per string in RGBW mode
- File: src/platforms/arm/nrf52/clockless_arm_nrf52.h
- Note: Previous RGBW support via software emulation (ESP32, Teensy ObjectFLED) remains available
- RP2040/RP2350 (Raspberry Pi Pico): Full RGBW support with parallel output driver
- NEW: HD108/NS108 16-bit SPI Chipset Support: High-definition LED chipset with built-in gamma correction
- 16-bit color depth (65,536 levels per channel) vs APA102's 8-bit (256 levels)
- Automatic gamma correction (gamma 2.8) provides smooth perceptual brightness transitions
- Higher PWM frequency (27 kHz) reduces visible flicker compared to APA102's ~20 kHz
- 5-bit brightness control (0-31) per LED for current limiting
- 40 MHz max clock speed (25 MHz default for stable operation on long strips)
- Dual-byte header encoding for brightness/current control
- Manufacturer: Newstar LED (NS108 = HD108, same chip)
- Protocol: APA102-like but extended to 16-bit with 8 bytes per LED
- Start frame: 64 bits (8 bytes)
- LED frame: 2 header bytes + 6 data bytes (16-bit RGB, big-endian)
- End frame: (num_leds / 2) + 4 bytes of 0xFF
- Usage:
FastLED.addLeds<HD108, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS); - Implementation: Enhanced showPixels() with brightness caching and optimized gamma correction
- No SD (standard definition) option available - all HD108s use gamma correction
- See detailed protocol documentation in src/chipsets.h:1040-1183
- Unit tests: Comprehensive test suite in tests/chipsets/test_hd108.cpp
- Related: GitHub Issue #1045, Pull Request #2119 (thanks to @arfoll for initial implementation)
- NEW: Vorbis Audio Decoder: Added support for decoding Ogg Vorbis audio files via stb_vorbis integration
- Streaming Decoder:
VorbisDecoderclass provides frame-by-frame audio decoding from ByteStream - Convenience API:
Vorbis::decodeAll()decodes entire files to AudioSample vectors in one call - Metadata Parsing:
Vorbis::parseVorbisInfo()extracts sample rate, channels, and stream info without full decoding - Float PCM Output: Decodes to floating-point audio samples (-1.0 to 1.0 range) compatible with FastLED audio processing
- Low-Level Wrapper:
StbVorbisDecoderprovides direct access to stb_vorbis for advanced use cases - Memory-Based: Requires entire Vorbis file in memory (suitable for embedded audio playback)
- Platform Support: Works on all platforms with sufficient memory for audio buffers
- Third-Party Integration: Uses Sean Barrett's stb_vorbis single-header library
- Usage:
auto decoder = Vorbis::createDecoder(); decoder->begin(byteStream); decoder->decodeNextFrame(&sample); - See API documentation ...
- Streaming Decoder:
FastLED 3.10.4
FastLED 3.10.4
Bumps the bundled zccache floor to >=1.12.7 to pick up zackees/zccache#763, which version-namespaces the cache root and closes the version-shadow chain at zackees/zccache#762.
Practically: side-by-side installs (e.g. PyPI + bundled fbuild copies) no longer trample each other's daemon state, fixing the silent mid-build daemon death reported in forge-ci/zccache#759 and the 1.12.6 self-hash regression in forge-ci/zccache#760.
No FastLED source code changes — Arduino API and runtime behaviour are identical to 3.10.3.
FastLED 3.10.3: W2812 timing update - stm32F4 board support
- WS2812B Reset Time Update: Enhanced compatibility with newer WS2812B chipsets
- Updated default reset time from 50μs to 280μs across all platforms
- Fixes intermittent issues where only first LED responds to
fill_solid()and similar operations - Addresses GitHub issue #2067: WS2812B strips showing ~80% failure rate with latest FastLED
- Updated 18 ARM platform clockless controllers (Apollo3, STM32, SAMD, Teensy, etc.)
- ESP8266 clockless controller timing updated for better reliability
- Maintains backward compatibility while supporting newer WS2812B chip revisions
- STM32F4 Support Added: BlackPill STM32F411CE and STM32F4 family support
- Added STM32F4 platform detection using canonical
STM32F4preprocessor define - Full GPIO pin mapping support for WeAct Studio BlackPill V2.0 (STM32F411CE)
- Consolidated STM32F1/STM32F4 pin definitions to reduce code duplication
- Added CI testing with GitHub Actions build badge for continuous validation
- Compatible with PlatformIO
ststm32platform and Arduino framework
- Added STM32F4 platform detection using canonical
- Silicon Labs MGM240 Support Added: Arduino Nano Matter and SparkFun Thing Plus Matter support
- Resolves GitHub issue #1750: Platform support for MGM240 (EFR32MG24) wireless modules
- Added complete platform implementation with ARM Cortex-M33 @ 78MHz support
- Silicon Labs EMLIB integration for optimized GPIO control and clock management
- Clockless LED controller support for WS2812, SK6812, and other standard chipsets
- Board definitions for
mgm240target withsiliconlabsefm32platform - Added CI testing with GitHub Actions build badge for continuous validation
For a compile environment please see https://github.com/fastled/platformio-starter
FastLED 3.10.2
Fastled.3.10.2-1.mp4
FastLED 3.10.2
- CORKSCREW MAPPING!
- Want to create a light saber or festival stick? Before your options were to have vertical strips.
- Now you can use a corkscrew mapping fl/corkscrew.h, see examples/FestivalStick
- You input the number of LEDS + number of turns.
- Corkscrew will provide a surface XY grid that you draw too.
- then call Corkscrew::draw(), and the current surface will be mapped to the corkscrew.
- Rendering is done via 2x2 bilinear sampling. Looks great!
- Animartrix - 30% faster due to forced
-O3andfastmathcompiler settings for this one file. - Ease Functions - lots and lots of ease functions! Great for animations!
- see fl/ease.h and the demo examples/Ease/Ease.ino
- Fast! Everything is done in integer space.
- 3D Perlin noise (
inoise8(x, y, z)) range utilization improved from 72.9% to 88.6%- Significantly better quality for volumetric LED effects (3D fire, clouds, particles)
- Uses industry-standard 12 edge vectors of a cube for optimal gradient coverage
- Adafruit NeoPixel Bridge: Optional Adafruit_NeoPixel clockless controller support
- For some platforms Adafruits NeoPixel just works better.
- Enable with
#define FASTLED_USE_ADAFRUIT_NEOPIXELbefore including FastLED - Now your WS2812 chipset will use the AdafruitNeopixel library (if installed)
- New LED chipset: SM16824E
- 3-Wire
- See also: #1941 (comment)
- apollo3_red (stm variant): beta support.
- HSV16 support
- CRGB -> HSV -> CRGB is highly lossy
- CRGB -> HSV16 -> CRGB is almost perfect.
- Integer based so it's fast.
- ColorBoost
- CRGB::colorBoost()
- Are you doing video on WS2812? Well then you probably are using gamma correction
- Color Boost is an alternative for gamma correction for the WS2812 and other RGB8 chipsets.
- It preserves luminosity but allows you to increase saturation.
- HSV16 is used to preserve color resolution.
- HSV -> CRGB default conversion function can now be overriden.
- Thanks to https://github.com/ssilverman or this full spectrum HSV implementation.
- If you just want to change it for your sketch you can use this:
#define FASTLED_HSV_CONVERSION_RAINBOW(default)#define FASTLED_HSV_CONVERSION_SPECTRUM#define FASTLED_HSV_CONVERSION_FULL_SPECTRUM- To change for the entire engine (recommended) then set these as build flags:
-DFASTLED_HSV_CONVERSION_RAINBOW-DFASTLED_HSV_CONVERSION_SPECTRUM-FASTLED_HSV_CONVERSION_FULL_SPECTRUM
- fl/fetch.h
- A non blocking http fetch library returning an fl/promise.h
- You can then await the promise with
fl::awaitor install a callback to be invoked. The latter is recommended.
- fl/json.h rewrite
- Much more ergonic library. Fast parsing for packed arrays of number
- The underlying ArduinoJson library is only ergonomic if you allow
std:stringandstd::sstream, which is missing on platforms like avr. So we had to write our own api to handle this.
- Platforms
- ESP32-C5 is now supported.
- ESP32 WS2812 SPI driver has a fix for it's async draw routine.
- Blend2d will now replace a subfx XYMap (when necessary) to prevent double mapping. A warning will be issued.
- Seeed XIAO nRF52840 Sense: Fixed incorrect pin mappings that were copied from Adafruit Feather board
- APA102HD Gamma Correction Algorithm: Completely rewritten with closed-form mathematical solution
- Thanks https://github.com/gwgill!
- Graph of the old algorithms quantization issues can be see here:
- STM32F1 pin mapping fixes (blue pill)
- Internal stuff
- FastLED is now way more strict in it's compiler settings. Warnings are treated as errors
- Lots of fixes, some code required amnesty.
- The examples now compile under clang and run for
./test - All examples now compile for ALL platforms.
- this was a major undertaking.
- required a rewrite of the testing infrastructure.
- Teensy41 took ~ 1 hours to compile 40 examples, now it can do 80 examples in ~8 mins
- FastLED is now way more strict in it's compiler settings. Warnings are treated as errors
3.10.1 - Bug Fix for 3.10.0
- Fix for Esp32s3 - Improvement to code caused DMA mode was set to true, breaking RMT5
- Examples fix
- Some problematic headers were pulled in that conflicts with Arduino.h, these have been fixed
- SKETCH_HAS_LOTS_OF_MEMORY was being tested before
#include "FastLED.h"fixed
FastLED 3.10.0 Released - Animartrix, ESP32-P4, ESP32-S3 I2S improvements
fastled_3_10_animartrix_small.mp4
- Animartrix now out of beta.
- examples/Animartrix/Animartrix.ino
- ESP32
- Esp32P4 now officially supported.
- ESP32-S3 I2S driver is improved
- It will now auto error on known bad Esp32-Arduino Core versions.
- Arudino core 3.2.0 is now know to work.
- Documentation has been greatly simplified and unnecessary steps have been removed.
- It will now auto error on known bad Esp32-Arduino Core versions.
Full Changelog: 3.9.20...3.10.0
