Close

We did it!

A project log for Raspberry Pi Pico Emulator

Live-coding an Open-Source Pico Emulator from Scratch

uri-shakedUri Shaked 04/02/2021 at 18:110 Comments

This week we managed to get a Pi Pico program to run start to end in our emulator!

The happy moment happened just as the stream was about to conclude, about 2:29 hours into the stream. You can watch the full recording here:

Or, if you want to try running hello_uart yourself and replicate our success, you can clone the repo and run the code:

git clone https://github.com/wokwi/rp2040js
npm install
npm start 2>&1 | grep UART

The "grep" part takes care of hiding all the debug prints we have in our code... 😜 

Alternatively, you can also run it in the Gitpod cloud. After launching the workspace simply copy the two npm commands above and paste them into the terminal. Enjoy!

Next week, we are going to tidy up the code and publish a first alpha release of rp2040js to npm. So if you are reading this after April 6th and still want to run the hello_uart example, make sure to git checkout 175f616.

So far we spent about 25 hours of coding to unlock our first milestone: running a basic program from start to end in the emulator! 🔓

The next live stream happens on Tuesday, and you'll be able to watch it here.

Discussions