Add triple-tap lights-off and fix LED pin to D5

- Triple tap turns off LEDs; any subsequent tap or hold resumes the current show
- Change LED_DATA_PIN default from 6 to 5 across config, docs, and wiring diagram
- Fix Makefile upload to pass --input-dir so it uses the pre-built binary

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-24 13:20:36 +02:00
parent ebf01531c5
commit a96f378c9c
5 changed files with 21 additions and 11 deletions
+7 -5
View File
@@ -26,10 +26,11 @@ SPDX-License-Identifier: BSD-2-Clause
### LED strip
```
Arduino WS2812B strip
─────── ─────────────
GND ──────────────────── GND
D6 ──── [470Ω] ──────── DIN (data in)
Arduino WS2812B strip wire colors
─────── ──────────────────────────
5V ──────────────────── red (VCC)
GND ──────────────────── white (GND)
D5 ──── [470Ω] ──────── green (DIN — data in)
```
Power the strip separately — see the power warning below.
@@ -51,6 +52,7 @@ Uses the internal pull-up resistor. No external resistor needed. Pin 2 can be ch
|-------|--------|
| 1 tap | Next show |
| 2 taps | Previous show |
| 3 taps | Lights off (any tap or hold resumes) |
| Hold (~0.8s) | Reset to show 0 (blue breath) |
### Power warning — read this
@@ -80,7 +82,7 @@ Arduino IDE: **Sketch → Include Library → Manage Libraries**, then install b
### 2. Configure your hardware
Edit `arduino/cosplay_lights/config.h`:
- `LED_DATA_PIN` — pin connected to the strip's DIN (default: 6)
- `LED_DATA_PIN` — pin connected to the strip's DIN (default: 5)
- `BUTTON_PIN` — pin the button is wired to (default: 2)
- `NUM_LEDS` — total LED count on your strip (default: 60)
- `MAX_BRIGHTNESS` — global brightness cap (default: 150)