How saya147/mailedcontroller works
MaiLedController is a small Python controller for an 8-LED ring. Its main workflow reads one LED’s color and brightness from the terminal, encodes a device-protocol packet, and sends it over a configured serial connection. Two standalone example scripts demonstrate repeated white flashing and a rotating rainbow; they implement their own packet encoders. The graph reflects the supplied source and README; hardware behavior beyond serial writes is not shown.
Main entry points: 示例脚本跑马灯.py Rainbow example · main.py Single LED control · 示例投出闪光弹.py Flash example
Components 9
Other components
- Terminal user
- Single LED control
main.py - Packet encoder
main.py - LED controller
- Flash example
示例投出闪光弹.py - Packet encoder
示例投出闪光弹.py - Rainbow example
示例脚本跑马灯.py - Packet encoder
示例脚本跑马灯.py - Python colorsys
Connections 13
- Terminal user → Single LED control: provides values
- Single LED control → Packet encoder: encodes packet
- Packet encoder → Single LED control: returns packet
- Single LED control → LED controller: writes packets
- Terminal user → Flash example: runs example
- Flash example → Packet encoder: encodes packet
- Packet encoder → Flash example: returns packet
- Flash example → LED controller: writes packets
- Terminal user → Rainbow example: runs example
- Rainbow example → Python colorsys: converts HSV
- Rainbow example → Packet encoder: encodes packet
- Packet encoder → Rainbow example: returns packet
- Rainbow example → LED controller: writes packets