No description
| include | initial commit | |
| src | initial commit | |
| test/test_native | initial commit | |
| .gitignore | initial commit | |
| LICENSE | add license | |
| Makefile | initial commit | |
| platformio.ini | initial commit | |
| README.md | initial commit | |
Lights
LED controller firmware for the STC8H8K64U microcontroller (8051-based). Drives 32 LEDs across ports P2, P0, P4, and P7 with a single button on P3.2.
Features
- Normal mode: Short press toggles all LEDs on/off
- Running light mode: LEDs cycle sequentially with adjustable speed
- Bounce mode: LEDs ping-pong back and forth
- Long press cycles between modes, short press adjusts speed (in animated modes)
- Settings (mode and speed) persist across power cycles via EEPROM
- Visual flash feedback when changing speed
Hardware
- STC8H8K64U with 11.014 MHz crystal
- 32 LEDs (active-low) on P2, P0, P4, P7
- Button on P3.2 with internal pull-up
Building
Requires PlatformIO.
make build # compile firmware
make upload # flash to device
make test # run unit tests on host
make clean # clean build artifacts
Disclaimer
The code in this project was mostly written by Claude Code.