Here's how we added #BL602 Simulator to #Blockly ... To simulate our drag-n-drop programs
https://lupyuen.github.io/articles/wasm?18#simulate-blockly-programs
Drag-n-drop #Blockly (Scratch) programs ... And run them with #BL602 Simulator! Try it here
https://lupyuen.github.io/articles/wasm?16#add-simulator-to-blockly
Here's how we flip the Simulated LED on #BL602 Simulator
https://lupyuen.github.io/articles/wasm?11#flip-the-simulated-led
How uLisp #WebAssembly passes Simulation Events to the #BL602 Simulator
https://lupyuen.github.io/articles/wasm?10#get-the-simulation-events
How #uLisp adds a #BL602 Simulation Event
https://lupyuen.github.io/articles/wasm?8#add-a-simulation-event
#uLisp sends a stream of Simulation Events to our #BL602 Simulator ... Here's how it works
https://lupyuen.github.io/articles/wasm?5#simulate-bl602-hardware
Rendering our #BL602 Simulator in a Web Browser
https://lupyuen.github.io/articles/wasm?4#render-the-bl602-simulator
Here's how we built the #uLisp REPL in #WebAssembly
https://lupyuen.github.io/articles/wasm?3#repl-in-a-web-browser
How we compile #BL602 uLisp to #WebAssembly ... And call it from a Web Browser
https://lupyuen.github.io/articles/wasm?2#emscripten-and-webassembly
Simulating #BL602 in a Web Browser ... With #WebAssembly, uLisp and Blockly ... All shall be explained here
#BL602 #WebAssembly Simulator now works with #uLisp #Blockly Apps yay! 🎉
Try it here: https://appkaki.github.io/blockly-ulisp/demos/simulator/
Let's add our #BL602 Simulator to #Blockly for uLisp ... So that we can preview Blockly Apps in the Web Browser!
https://github.com/AppKaki/blockly-ulisp/blob/wasm/demos/simulator/index.html
Simulating #uLisp Loops ... We can't allow uLisp to emit an Infinite List of #BL602 Simulation Events ... So we stop uLisp Loops before the Event List gets too long
https://github.com/lupyuen/ulisp-bl602/blob/wasm/wasm/wasm.c#L34-L46
To blink the Simulated #BL602 LED ... We need to Simulate the Delays too ... Here's how
https://github.com/lupyuen/ulisp-bl602/blob/wasm/docs/ulisp.html#L1467-L1472
IoT Techie and Educator / Apache NuttX PMC