How we render the Simulated LED in our #BL602 #WebAssembly Simulator
https://github.com/lupyuen/ulisp-bl602/blob/wasm/docs/ulisp.html#L1437-L1459
How we handle the #BL602 Simulation Events generated by #uLisp #WebAssembly
https://github.com/lupyuen/ulisp-bl602/blob/wasm/docs/ulisp.html#L1407-L1454
How we render our #BL602 Simulator pic to the HTML Canvas 🎨
https://github.com/lupyuen/ulisp-bl602/blob/wasm/docs/ulisp.html#L1334-L1358
Our #BL602 Simulator needs a board pic ... Let's use this wriggly sketch for now 😬
https://github.com/lupyuen/ulisp-bl602/blob/wasm/docs/pinecone.png
How we return a String from #WebAssembly to JavaScript ... In our #BL602 Simulator
https://github.com/lupyuen/ulisp-bl602/blob/wasm/docs/ulisp.html#L1339-L1379
#uLisp #WebAssembly generates this JSON Stream of #BL602 Simulation Events ... Now we interpret the Simulation Events and blink the Simulated #BL602 LED
Here's how #uLisp #WebAssembly adds a Simulation Event to the JSON Stream ... For #BL602 GPIO Output
https://github.com/lupyuen/ulisp-bl602/blob/wasm/wasm/wasm.c#L54-L71
Here's the JSON Stream of #BL602 Simulation Events in #WebAssembly ... When #uLisp sets the GPIO Output, a Simulation Event gets added to the JSON Stream
https://github.com/lupyuen/ulisp-bl602/blob/wasm/wasm/wasm.c#L7-L32
#uLisp #WebAssembly shall send #BL602 Simulator a JSON Stream of Simulation Events ... Looks like a MIDI Stream 🤔
#BL602 Simulator is super helpful ... For catching, fixing and testing tricky firmware bugs like this
https://github.com/lupyuen/ulisp-bl602/blob/wasm/src/ulisp.c#L5346-L5373
#uLisp in #WebAssembly ... Try it here: https://lupyuen.github.io/ulisp-bl602/ulisp.html
#uLisp Interpreter runs in #WebAssembly ... Thanks to #Emscripten yay!
https://github.com/lupyuen/ulisp-bl602/blob/wasm/docs/ulisp.html#L1297-L1326
We stub out the GPIO Functions in #uLisp #WebAssembly ... They shall be simulated with JavaScript in our #BL602 Simulator
https://github.com/lupyuen/ulisp-bl602/blob/wasm/src/ulisp.c#L48-L57
Let's build a simple Simulator for #BL602 ... With #uLisp, #WebAssembly and #Blockly
More Help Needed: Porting #uLisp functions to #BL602 🙏
https://lupyuen.github.io/articles/lisp?38#missing-ulisp-features
#BL602 Command-Line Interface ... How it's called by the #uLisp Interpreter
https://lupyuen.github.io/articles/lisp?34#porting-ulisp-to-bl602
IoT Techie and Educator / Apache NuttX PMC