1
0
Fork
You've already forked lights
0
No description
  • C 99.7%
  • Makefile 0.3%
2026年02月07日 12:53:22 +01:00
include initial commit 2026年02月07日 12:50:18 +01:00
src initial commit 2026年02月07日 12:50:18 +01:00
test/test_native initial commit 2026年02月07日 12:50:18 +01:00
.gitignore initial commit 2026年02月07日 12:50:18 +01:00
LICENSE add license 2026年02月07日 12:53:22 +01:00
Makefile initial commit 2026年02月07日 12:50:18 +01:00
platformio.ini initial commit 2026年02月07日 12:50:18 +01:00
README.md initial commit 2026年02月07日 12:50:18 +01:00

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.