Skip to content

Add NeoPixel driver, CLI commands, and fix device slot mapping bug#3

Open
calmera wants to merge 1 commit intoM64GitHub:mainfrom
calmera:feat/neopixel-cli-and-slot-fix
Open

Add NeoPixel driver, CLI commands, and fix device slot mapping bug#3
calmera wants to merge 1 commit intoM64GitHub:mainfrom
calmera:feat/neopixel-cli-and-slot-fix

Conversation

@calmera
Copy link
Copy Markdown

@calmera calmera commented Mar 18, 2026

NeoPixel support: adds WS2812/NeoPixel addressable LED strip driver with JSON command handling (fill, set pixel, brightness, clear) via NATS HAL, web UI controls, persistence, and remote config. CLI gets a new neopixel command with fill, set, brightness, clear, get, and batch subcommands.

Fixes a bug where neopixel strips in device array slot >= 4 silently failed to initialize because the driver used the g_devices[] index directly as the internal strip index (max 4). Adds an indirection layer (s_dev_to_strip[]) that maps device slots to strip slots dynamically.

NeoPixel support: adds WS2812/NeoPixel addressable LED strip driver with
JSON command handling (fill, set pixel, brightness, clear) via NATS HAL,
web UI controls, persistence, and remote config. CLI gets a new `neopixel`
command with fill, set, brightness, clear, get, and batch subcommands.

Fixes a bug where neopixel strips in device array slot >= 4 silently
failed to initialize because the driver used the g_devices[] index
directly as the internal strip index (max 4). Adds an indirection layer
(s_dev_to_strip[]) that maps device slots to strip slots dynamically.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant