ESP32-C3 based hot wire game with WS2812B LED effects, SSD1306 OLED display, debounced touch detection, and full game state machine (IDLE → COUNTDOWN → PLAYING → GAME_OVER). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
295 B
C
12 lines
295 B
C
#ifndef LED_EFFECTS_H
|
|
#define LED_EFFECTS_H
|
|
|
|
#include <Arduino.h>
|
|
|
|
void ledsInit();
|
|
void ledsUpdate(); // Called every loop, dispatches based on game state
|
|
void ledsTouchFlash(); // Blocking 3x red blink (~300ms)
|
|
void ledsSetBrightness(uint8_t b);
|
|
|
|
#endif // LED_EFFECTS_H
|