3 Commits

Author SHA1 Message Date
Claude
e544d57552 feat(02-06): wire all Phase 2 modules into asyncio REPL entry point
- Create src/led_sync/main.py with AppState, handle_command, repl, async_main, main
- Implements all D-13 REPL commands: play/pause/resume/seek/stop/load/add/save/status/beat/help/quit
- Create src/led_sync/__main__.py for python -m led_sync invocation
- Add led-sync script entry point to pyproject.toml
- Wires AudioPlayer, ChoreographyScheduler, BeatDetector, ESP32Transport
2026-04-03 14:54:38 +02:00
Claude
ffc2379784 feat(02-01): bootstrap Python project scaffold with all Phase 2 dependencies
- uv project configured as led-sync-studio, requires-python >= 3.11
- Dependencies declared: miniaudio==1.61, sounddevice==0.5.5, numpy>=2.4.4, pydantic==2.12.5, aubio>=0.4.9
- aubio built from source (no aarch64 wheel on PyPI)
- sounddevice installed; requires libportaudio2 on target system (Raspberry Pi OS)
- dev deps: pytest>=8.0, pytest-asyncio>=0.23
- Tests pass: led_sync importable, all deps installed
2026-04-03 14:21:09 +02:00
Claude
378620e0bb feat(02-02): implement ESP32Transport UDP client with asyncio DatagramProtocol
- ESP32Transport.send_command() injects v:1, fire-and-forget, silent drop if not ready
- 512-byte payload limit enforced with warning log
- datagram_received() parses STATUS ok → connected=True, stores last_status
- on_status callback support for status update notifications
- connection_lost() sets connected=False, clears transport ref
- create_esp32_transport() async factory sends initial STATUS ping (D-12)
- All protocol behaviors match docs/protocol.md exactly (D-10, D-11, D-12, D-14)
- Add pytest-asyncio to dev deps + asyncio_mode=auto for test suite
2026-04-03 14:19:20 +02:00