Skip to content

Firmware

The Lightnet firmware lives in one source tree and compiles into two binaries: one for the ESP-class controller and one for the ATmega-class panels. Pick the section that matches what you're trying to do.

First-time builders, start at the hub

If you haven't flashed Lightnet before, work through the Get Started guide first — it sequences the hardware build, toolchain install, and first flash. The pages below are the deep reference you'll come back to after that.

  • Overview


    Architecture in one page — controller vs panel, discovery, animation system, external interfaces.

    Overview

  • Build & flash


    PlatformIO environments, panel fuses, and the pio commands you need day-to-day.

    Build & Flash

  • Hardware


    Pin assignments for ESP8266 / ESP32 controllers and for ATmega panels; topology rules and fuses.

    Hardware

  • Architecture


    Library structure, the internal I²C protocol, the animation framework, discovery, and controller boot.

    Architecture

  • API Reference


    External HTTP and WebSocket APIs — every endpoint, the binary packet format, and the CRC.

    API Reference

  • Animations & Scenes


    Palettes, groups, scenes, layers, animation types, color references, JSON schema, worked examples.

    Animations & Scenes

  • OTA & Updates


    Panel updates via the twiboot bootloader; serial firmware upload; controller self-update.

    OTA & Updates

  • Troubleshooting


    Debug macros, common user-facing symptoms, and how to inspect panel state over WebSocket.

    Troubleshooting

  • Testing


    Native host-side unit tests, what's testable without a device, and how to add a new suite.

    Testing


przemczan/lightnet-firmware