Kaluma Places JavaScript On The RP2040


With a easy firmware replace, Kaluma places a light-weight JavaScript runtime on the Raspberry Pi Pico (which makes use of the RP2040 microcontroller), offering helpful modules for file programs, graphics, networking, and extra. Code for a easy LED blink can then appear like:

// index.js
const led = 25;
pinMode(led, OUTPUT);
setInterval(() => {
digitalToggle(led);
}, 1000);

Growth can then be carried out utilizing instruments which might be very acquainted to JavaScript builders, similar to npm and flashing new code to a USB-connected Pico with the (Node.js-based) Kaluma command-line interface. Check out the GitHub repository for the undertaking, or browse a number of the initiatives made with Kaluma.

Very similar to with MicroPython, there’s worth available in placing implementations of high-level languages on microcontrollers. Every new language opens embedded programming to an entire new group of coders. But it surely’s not simply languages making their strategy to the RP2040. Fantastic initiatives similar to emulating the ZX Spectrum on an RP2040 additionally occur.

Due to [Shri Hari Ram] for the tip!

Leave a Reply

Your email address will not be published. Required fields are marked *