![]() ![]() (While exposing the same old names to uLisp programs: pinmode and digitalwrite)Īnything else we should know about uLisp? So in BL602 uLisp we reimplemented these functions with the BL602 Hardware Abstraction Layer for GPIO. The BL602 IoT SDK doesn’t have these GPIO functions. What about porting the Arduino functions like pinmode and digitalwrite? Porting uLisp to BL602 (as a C library ulisp-bl602) was quick and easy. Not at all! uLisp for ESP32 lives in a single C source file: ulisp-esp.ino … Porting uLisp from ESP32 to BL602 sounds difficult? (Works just like Scratch, the graphical programming tool)Īnd we may even upload and run a uLisp program on BL602 through a Web Browser… Thanks to the Web Serial API! In a while we’ll talk about Blockly for uLisp… Drag-and-drop a uLisp program, without typing a single bracket / parenthesis! Since BL602 is a WiFi + Bluetooth LE SoC like ESP32, it might be easy to port the ESP32 version of uLisp to BL602. But uLisp on BL602 could offer some helpful scripting capability for GPIO, I2C, SPI, WiFi, … Unlike most 32-bit microcontrollers, BL602 was designed to be accessed by embedded developers via a simple Command-Line Interface (over the USB Serial Port).īL602 doesn’t have a fancy shell like bash. ULisp is a natural fit for the BL602 RISC-V + WiFi SoC because…īL602 has a Command-Line Interface (and so does uLisp) ULisp makes it possible to write high-level scripts with GPIO, I2C, SPI, ADC, DAC and WiFi functions.Īnd for learners familiar with Arduino, this might be a helpful way to adapt to modern microcontrollers like BL602. It waits for the specified number of milliseconds.) ( delay is another Arduino-like Timer function predefined in uLisp. So this Blinky program runs perfectly fine on uLisp…īecause pinmode (set the GPIO pin mode) and digitalwrite (set the GPIO pin output) are Arduino-like GPIO functions predefined in uLisp. This makes it an ideal environment for learning to program, or for setting up simple electronic devices.Ĭompared with other embedded programming languages, uLisp looks particularly interesting because it has built-in Arduino-like functions for GPIO, I2C, SPI, ADC, DAC, … Even WiFi! You can use exactly the same uLisp program, irrespective of the platform.īecause uLisp is an interpreter you can type commands in, and see the effect immediately, without having to compile and upload your program. ULisp® is a version of the Lisp programming language specifically designed to run on microcontrollers with a limited amount of RAM, from the Arduino Uno based on the ATmega328 up to the Teensy 4.0/4.1. ![]() ULisp and Blockly on PineCone BL602 RISC-V Board 1 Start with uLisp The uLisp Firmware in this article will run on PineCone, Pinenut and Any BL602 Board. (And someday this could become really helpful for IoT Education) Today we shall explore uLisp and Blockly as an interesting new way to create embedded programs for the BL602 RISC-V + WiFi SoC. And create the programs with a drag-and-drop Web Editor… Without typing a single Lisp parenthesis / bracket? ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |