[Ru]st [W]ater [M]eter - my explorations into an embedded, async, real-world project
(Work in Progress)
(Once in, hit F12 in the browser window to open the Dev Tools Console and see the demo logs.)
Easiest is to build the demo.
hal-sim
- a small embedded-hal
& embedded-graphics
simulator that implements the GPIO, ADC and Display traits and allows the user to interact with these via the browser.To build:
rustup target add wasm32-unknown-unknown
cargo install trunk
git clone https://github.com/ivmarkov/ruwm
cd ruwm/ruwm-sim
trunk serve -w . -w ../ruwm -w ../ruwm-web
Note that the demo you are running via Trunk is - in fact - live. You can change from e.g. VSCode any part of the app code (its backend that would in reality run on the actual MCU, or the Web UI) and then hit save and - voila - in a few seconds Trunk will reload the app in the browser!
A bit like Frontend development workflow, but for embedded.
TBD