Rewrite MUX: WS2812C LEDs (NeoPixel) + 74HC165 buttons

PixelStomp MUX uses:
- WS2812C LEDs: one data line via DAT (GPIO 9), NeoPixel protocol
- 74HC165 shift register: LD/CLK/DI for reading 8 button states

Changes:
- Use Adafruit NeoPixel library for LED control
- Proper 74HC165 parallel-load shift-in for buttons
- 8 switches + 8 LEDs (was incorrectly 10)
- Diagnostic commands: dump, ledtest, red, green, blue, read
This commit is contained in:
2026-06-23 13:38:51 +00:00
parent 2dfd016b76
commit 07e5cd8994
8 changed files with 122 additions and 139 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ class PixelStompMux;
class DefaultSwitchStub : public SwitchStub {
private:
static const uint8_t NUM_SWITCHES = 10;
static const uint8_t NUM_SWITCHES = 8;
SwitchState switch_states[NUM_SWITCHES];
bool initialized;