Implement Text Input

This commit is contained in:
PROFERIS - Mi³osz Stocki
2026-07-07 10:29:57 +02:00
parent 2e74c7d0c1
commit 366de88ee4
10 changed files with 574 additions and 4 deletions
+14 -2
View File
@@ -366,14 +366,21 @@ The `?v=Date.now()` on imports handles this automatically on page load.
- Move-to-XY numeric input with Go button
- Board boundary + mechanism exclusion zone visualisation
- Simulation badge (yellow) when BLE not connected
- [x] Home section (`home.js`) — placeholder landing page, same visual style
- [x] Board Control section (`board-control.js`):
- Interactive map with clickable spots
- Speed and Acceleration controls
- Background image selector with config memory
- [x] Input Text section (`input-text.js`):
- Text input to spell words automatically
- Delay, Speed, and Acceleration sliders
- Position overlay marker on background
- [x] Firmware (`src/main.cpp`) — AccelStepper + BLE command parser + position NOTIFY
---
## 10. What Remains (Planned Sections)
The router currently only has two routes. These sections need to be created:
The router currently only has three routes. These sections need to be created/expanded:
### `board-control` section (implemented)
- Uses predefined background maps (SVG/PNG) with corresponding JSON config files specifying clickable coordinates in physical mm.
@@ -381,6 +388,11 @@ The router currently only has two routes. These sections need to be created:
- Supports movement modes (e.g., Direct, Erratic, Random, Snaky).
- Requires arm to be homed; homing state is persisted across sessions via `localStorage`.
### `input-text` section (implemented)
- Keyboard input that sequentially spells out words on the board.
- Requires background `spots.json` to have `"hasAlphabet": true`.
- Persisted Speed, Acceleration, and Delay settings.
### `sequence-editor` section (not started)
- Record and replay a sequence of moves
- Save/load sequences to localStorage