You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/led-matrix-painter/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,15 @@ The LED Matrix Painter example uses the following Bricks:
74
74
75
75
The LED Matrix Painter relies on a synchronized data flow between the browser, the Python backend, and the hardware.
76
76
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
+
77
86
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.
78
87
2.**Python Backend**:
79
88
***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