LED Strip: add rainbow overlay - #11820
Conversation
Release/9.1 to master
…-flash-diff-comment-9.1 Fix arm-none-eabi-size not found on real CI runners
PR Summary by QodoAdd configurable rainbow LED strip overlay
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
Moved timRainbow to execute first in the layer table so subsequent layers (Blink, Larson) can modify brightness. Restored hardcoded S=0 and V=255 overrides to ensure the rainbow overlay functions independently of the baseline GUI color selection. This has been tested on hardware and seems to function as intended. Hardware: SKYSTARSH743HD with 14 LEDs in a Ring
Adds a new RGB sweep/rainbow overlay ('V') to the LED strip system.
When enabled on any LED, the overlay continuously sweeps through the colour spectrum using a fixed-point accumulator for efficient hue advancement. The sweep rate and per-LED hue offset are configurable via two new settings:
ledstrip_rainbow_sweep_rate(0-255, default 10) — controls sweep speed. Higher values sweep faster. 0 freezes the rainbow.ledstrip_rainbow_delta_deg(0-359, default 30) — hue offset in degrees between adjacent rainbow LEDs. Larger values spread more of the spectrum across the strip.Companion configurator PR: iNavFlight/inav-configurator#2714
Testing: Verified on SKYSTARSH743HD with 14 LEDs configured with the rainbow overlay active.