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:
+5
-4
@@ -43,6 +43,7 @@ Button handling uses the [OneButton](https://github.com/mathertel/OneButton) lib
|
||||
|
||||
- **Single tap** → next show
|
||||
- **Double tap** → previous show
|
||||
- **Triple tap** → lights off; any subsequent tap or hold resumes the current show
|
||||
- **Long press** → reset to show 0
|
||||
|
||||
The key timing values (configured via `setClickMs` and `setPressMs`):
|
||||
@@ -104,12 +105,12 @@ Edit `config.h`:
|
||||
// WS2812B (default)
|
||||
#define LED_TYPE WS2812B
|
||||
#define COLOR_ORDER GRB
|
||||
#define LED_DATA_PIN 6
|
||||
#define LED_DATA_PIN 5
|
||||
|
||||
// APA102 / Dotstar (two-wire)
|
||||
// #define LED_TYPE APA102
|
||||
// #define COLOR_ORDER BGR
|
||||
// #define LED_DATA_PIN 6
|
||||
// #define LED_DATA_PIN 5
|
||||
// #define LED_CLOCK_PIN 7
|
||||
```
|
||||
|
||||
@@ -129,8 +130,8 @@ static CRGB leds_a[NUM_LEDS];
|
||||
static CRGB leds_b[NUM_LEDS];
|
||||
|
||||
void leds_begin() {
|
||||
FastLED.addLeds<LED_TYPE, 6, COLOR_ORDER>(leds_a, NUM_LEDS);
|
||||
FastLED.addLeds<LED_TYPE, 5, COLOR_ORDER>(leds_b, NUM_LEDS);
|
||||
FastLED.addLeds<LED_TYPE, 5, COLOR_ORDER>(leds_a, NUM_LEDS);
|
||||
FastLED.addLeds<LED_TYPE, 6, COLOR_ORDER>(leds_b, NUM_LEDS);
|
||||
FastLED.setBrightness(MAX_BRIGHTNESS);
|
||||
FastLED.clear(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user