Skip to content

Commit d12ad1d

Browse files
committed
Update README
1 parent 0070239 commit d12ad1d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/led-matrix-painter/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ The LED Matrix Painter example uses the following Bricks:
7474

7575
The LED Matrix Painter relies on a synchronized data flow between the browser, the Python backend, and the hardware.
7676

77+
**High-level data flow:**
78+
79+
```
80+
Web Browser ──► HTTP API ──► Python Backend ──► Router Bridge ──► Arduino Sketch
81+
│ │
82+
▼ ▼
83+
SQLite Database LED Matrix Display
84+
```
85+
7786
1. **Web Interface**: The `app.js` script captures clicks on the grid. It debounces these events and sends the pixel data to the backend via the `/persist_frame` endpoint.
7887
2. **Python Backend**:
7988
* **Persistence**: The `store.py` module uses `SQLStore` to save the frame data (pixels, duration, position) to a `frames` table in a SQLite database.

0 commit comments

Comments
 (0)