You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example now declares NUM_LEDS 7 (examples/RGBCalibrate/RGBCalibrate.ino:30), and the writes are leds[0] through leds[6] — indices 0–6, exactly 7 elements. In bounds.
Good catch, and the crash-on-ESP32 detail was the useful part: on AVR an out-of-bounds LED write silently corrupts adjacent memory (see #887, where it clobbered a neighbouring variable and looked like a variable spontaneously resetting), while the ESP32 faults outright. Same bug, and the platform that fails loudly is the one that makes it findable.
Worth noting the example is meant to have 7 entries — one per calibration colour plus a trailing off pixel — so raising NUM_LEDS was the right fix rather than dropping the last write.
Activity
toybuilder commentedon Nov 29, 2019
Small change made to fix this in the example. Pull request made.
Make examples consistent and document the likely non-RGB types
docs: point fbuild deploy refs at #595 (the shipped LpcDeployer), not #…
zackees commentedon Aug 1, 2026
Closing — fixed. @toybuilder's PR landed.
The example now declares
NUM_LEDS 7(examples/RGBCalibrate/RGBCalibrate.ino:30), and the writes areleds[0]throughleds[6]— indices 0–6, exactly 7 elements. In bounds.Good catch, and the crash-on-ESP32 detail was the useful part: on AVR an out-of-bounds LED write silently corrupts adjacent memory (see #887, where it clobbered a neighbouring variable and looked like a variable spontaneously resetting), while the ESP32 faults outright. Same bug, and the platform that fails loudly is the one that makes it findable.
Worth noting the example is meant to have 7 entries — one per calibration colour plus a trailing off pixel — so raising
NUM_LEDSwas the right fix rather than dropping the last write.