Quick Start
This guide gets you from zero to blinking in just a few minutes.
Flash the firmware
- Download the latest UF2 for your board from GitHub Releases.
- Hold BOOTSEL and connect the board via USB.
- Drag the UF2 to the
RPI-RP2drive on RP2040 boards or theRP2350drive on RP2350 boards. - The device reboots and shows up as a USB drive named
MCUJS.
Create your first script
Create an index.js file on the MCUJS drive:
Need help with terms? See the Glossary.
const LED = 25;
GPIO.init(LED, GPIO.OUTPUT);
setInterval(() => {
GPIO.toggle(LED);
}, 500);
console.log('Blinking!');
Reset the board. Your script runs automatically.
Open the REPL
Connect at 115200 baud. Example session:
mcujs v0.1.0 on pico
> console.log('Hello!')
Hello!
undefined
Next steps
- Add a second file and try
require()from Runtime Basics - Skim the built-in modules in Built-in Modules
- If you are curious about hardware APIs, start with API Reference