Wasm3_RGB_Lamp
Wasm3_RGB_Lamp copied to clipboard
Animating an RGB lamp, using WebAssembly!
[WIP] WebAssembly RGB lamp animation demo
- MCU:
Nordic nRF51822 QFAA
(16 MHz Cortex-M0, 16 Kb RAM, 256 Kb Flash) - Wasm Runtime:
Wasm3
- Framework:
Arduino
- Build System:
PlatformIO
Demo
Status
- [x] Run
AssemblyScript
onnRF51
- [x] Simple
Color Wheel
animation working - [x] Transfer pixels in batches (optimize speed)
- [x] Add support for Micro:bit, ESP32, ESP8266
- [ ] Try running
Bluetooth LE
stack - [ ] Upload
wasm
binary to device using BLE (store to RAM) - [ ] Store
wasm
binary to flash
Build instructions
./assemblyscript
contains the wasm app. This implements an animation.
./wasm_vm
contains the interpreter/VM.
- Install
PlatformIO
- In
assemblyscript
directory, runnpm install
- To build the demo:
make
- To upload and run the demo:
make run