SloWorm is an in-browser tool that uses the Web Serial API to connect and code MicroPython boards.
It's a work in progress and has been developed using a Raspberry Pi Pico. No other types of board have been tested.
The Web Serial API itself is an exprimental feature that isn't compatible with all browsers.
Chrome is recommended.
npm install
npm run start
SloWorm should be available on http://localhost:5173/
Click the connect
button.
When prompted, select Board in FS mode
.
If the connection is succesful the output pane will state that it's Connected to MicroPython
.
Type a line of code in the input pane at the top of the screen then press return to send it to the connected MicroPython board.
The board's response will appear in the Output pane below.
Making a board's onboard LED blink is the MicroPython equivalent of "Hello World".
Here's how to do it on a Pico.
from machine import Pin
led = Pin(25, Pin.OUT)
led.toggle()
Subsequent calls to led.toggle()
should make the light go on and off.
MicroPython uses indentation to delineate blocks of code. SloWorm doesn't yet offer any formatting help here.
Click the disconnect button to disconnect from the board.
- Formatting help to indent/unindent MicroPython code (string indentation works at the moment but it's tempremental)
- More tests, refactoring etc
- Flickering glowing effects, possibly to indicate errors
- Accessibility testing/features to adjust colours