How scnova/pico_chat works
pico_chat is a small MicroPython serial-chat program. The main loop reads user input and sends messages over UART; a background worker reads incoming messages, prints them, and sends a timestamped keepalive after 10 seconds without a send. Both send paths use a lock to serialize UART writes. The single source file shows the runtime behavior; no other product subsystems are documented.
Main entry points: Lab4.py Receive worker
Components 7
Other components
- User
- Chat loop
Lab4.py - Message sender
Lab4.py - Receive worker
Lab4.py - UART link
Lab4.py - Other Pico
- Console
Connections 8
- User → Chat loop: enters input
Lab4.py - Chat loop → Message sender: calls
Lab4.py - Chat loop → Receive worker: starts thread
Lab4.py - Message sender → UART link: writes message
Lab4.py - Other Pico → UART link: sends data
- UART link → Receive worker: provides received data
Lab4.py - Receive worker → Message sender: calls keepalive send
Lab4.py - Receive worker → Console: prints messages
Lab4.py