Commit Graph
2 Commits
Author SHA1 Message Date
sirmrakandQwen-Coder 19a11aac6e feat: custom LED animations mirroring ESPHome effects
Port LED effects from respeaker_usb_mic_array.py to example_led.py:
- Replace built-in XVF3800 effects with custom frame-by-frame animations
- Use LED_RING_COLOR command (resid=20, cmdid=19) for direct LED control
- Implement 11 animations matching home-assistant-voice.yaml:
  - off, twinkle, twinkle_blue, waiting, listening, thinking,
    replying, muted, error, timer_tick, timer_ring
- Muted indicator: 4 red LEDs at mic positions (0°, 90°, 180°, 270°)
- Timer tick: arc shows remaining time with sweep marker
- Add --test mode for hardware verification
- Add --verbose flag for INFO logging
- Enhanced USB diagnostics and error reporting

Technical changes:
- set_led_frame() sends 12×uint32 colors in 0xBBGGRR format
- RGB tuples with _scale() for brightness control
- _pulse_step() for smooth pulsing effects
- _apply_mic_indicators() for muted state visualization

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-20 09:56:16 +03:00
sirmrakandQwen-Coder cae22004b1 Полная синхронизация
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-19 19:40:42 +03:00