Skip to content

Full fastled replacement - #4615

Merged
DedeHai merged 35 commits into
wled:mainfrom
DedeHai:full_fastled_replacement
Mar 29, 2026
Merged

Full fastled replacement#4615
DedeHai merged 35 commits into
wled:mainfrom
DedeHai:full_fastled_replacement

Conversation

@DedeHai

@DedeHai DedeHai commented Mar 26, 2025

Copy link
Copy Markdown
Collaborator

Completely removed dependency on fastled library for better color control and conversions. This also prevents accidentally pulling in fastled functions that were previously replaced (random() for example).

  • Copied all required functions and structs from fastled
  • Optimized most of them for WLED use, many color manipulations in FX can now be replaced with native 32bit colors, potentially speeding things up with less color conversions
  • Increased accuracy for some functions by scaling the fixedpoint math making use of native 32bit variables.
  • Added a PRNG class for FX that rely on repatable random numbers
  • Updated FX to use the replacement functions where required

Summary by CodeRabbit

  • New Features

    • Four new color palettes: Cloud, Lava, Ocean, Forest
    • Mid-frequency audio modulation added to a particle effect
  • Improvements

    • More accurate and consistent color rendering across many effects
    • More predictable and reproducible randomness for visual effects
    • Streamlined palette sampling and serialization for better visual fidelity
  • Refactor

    • Consolidated color/palette backend for lighter-weight, more flexible color operations

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

keep This issue will never become stale/closed automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants