Skip to content

lupyuen/ulisp-bl602

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulate BL602 with uLisp WebAssembly

What if we...

  1. Compile the uLisp Interpreter to WebAssembly...

  2. Use the WebAssembly version of uLisp to simulate BL602 in a Web Browser...

    (Including GPIO, I2C, SPI, Display Controller, Touch Controller, LoRaWAN... Similar to this)

  3. Integrate the BL602 Emulator with Blockly...

  4. To allow embedded developers to preview their BL602 Blockly Apps in the Web Browser?

BL602 Simulator with uLisp WebAssembly

Let's try this out here with the wasm branch of ulisp-bl602

The BL602 Simulator also works with Blockly to preview for dragged-and-dropped uLisp Blockly Apps...

Check this Twitter Thread for updates...

uLisp in WebAssembly

Source Files

  • src/ulisp.c: uLisp Interpreter for BL602 and WebAssembly, ported from uLisp for ESP32

  • wasm/wasm.c: WebAssembly integration for uLisp (JSON Stream for Simulation Events)

  • docs/ulisp.html: HTML file with JavaScript that invokes uLisp WebAssembly for REPL

  • wasm.mk: Build uLisp WebAssembly with Emscripten

Build uLisp for WebAssembly

To build uLisp for WebAssembly with Emscripten...

make -f wasm.mk

The compiled files ulisp.js and ulisp.wasm will be copied to docs.

To test, run a local web server and browse to docs/ulisp.html.

(WebAssembly requires a local web server, it won't run from the local filesystem)

BL602 uLisp Library (Compiled for WebAssembly)

A version of the Lisp programming language for BL602 RISC-V boards.

Read the article...

uLisp was ported to BL602 from ESP32 Arduino...

https://github.com/technoblogy/ulisp-esp

BL602 uLisp Firmware sdk_app_ulisp is located here...

https://github.com/lupyuen/bl_iot_sdk/tree/ulisp/customer_app/sdk_app_ulisp

For more information about uLisp...

http://www.ulisp.com/show?21T5

About

A version of the Lisp programming language for RISC-V BL602 Boards

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.8%
  • Makefile 1.1%
  • Batchfile 0.1%