Oct 2024 – May 2025
v2, built for The Jacket v2. Second pass on the library that took it to what I consider complete: 2D LED mapping, IO-agnostic patterns, and a generalized state machine with blended transitions.
Jan 2024 – May 2024
v1, built alongside The Pendant. Developed the foundational procedural color framework with a focus on flexibility in performance choices (these are RP2040 chips) while still covering the critical features of LED pattern creation: layer blending, generators, state machines, and clean interfaces for custom logic to sit on top of.
Overview
Eclipse OS is a high level, addressable LED control system that maps your patterns in the context of patches, patterns, and layers, so work carries over to future projects and any addressable LED device gets a generalized structure.
After around four addressable LED projects, I was constantly restarting a lot of my codebase. I wanted a uniform way to create modular LED patterns with cleanly animated values. The inspiration came from my music production DAW and synthesizers, where a pattern has mappable parameters and a layers system blends between patterns and states. The priority was a core base layer that covers as much of the boilerplate, gameplay-system side as possible while leaving a huge amount of flexibility in how you structure your system.
This code is meant to be read through, at least the headers. It's simple in my opinion, but I'm biased.
I plan to keep expanding the feature set as new projects have further integrations they want.
Highlights
Three pieces make up the library, each an extension point for the next device.
Pattern Generator Framework
A designer-friendly pattern generation pipeline that allows maximum flexibility in how we transition between states. Everything runs in HSV colorspace for much cleaner blending between colors, and a custom palette/gradient system makes selecting colors from a configured generator easy.
New pattern generator types, palette-driven generators, layered generator stacks, and alternative mapping contexts all plug in without touching the core.
Generalized IO Structure
IO is abstracted away from the patterns themselves, so remapping to a new device, a new pin layout, or any other circumstance is much easier.
Small-Form Finite State Machine
Uses the pattern generators and generalized IO buffers to blend seamlessly between states.
History
Each version shipped inside a device first and was generalized afterward. The hardware pages carry the build stories; this page carries the library.
v1 (Jan 2024 to May 2024): The Pendant
The first version established the three pieces above. It drove The Pendant, which powered The Jacket v1 and The Staff across two events.
v2 (Oct 2024 to May 2025): The Jacket v2
The second version is the point where I consider the library complete. Built for The Jacket v2, it added:
- 2D mapping of LEDs with generalized pixel-to-node mapping, so patterns address a surface rather than a strip.
- IO-agnostic patterns, letting the same pattern code serve generic and bespoke devices.
- A generalized state machine with blending between transitions, replacing the per-device state code from v1.
Tech Stack C++17 RP2040 WS2812B Adafruit NeoPixel FastLED Adafruit GC9A01A HSV Colorspace Finite State Machine
Additional Keywords Addressable LED Library LED Pattern Framework RP2040 LED Controller Raspberry Pi Pico Arduino LED Animation Open Source Wearable LEDs