{"repo":"wokwi/rp2040js","free":true,"listed":false,"github":"https://github.com/wokwi/rp2040js","clone":"git clone https://github.com/wokwi/rp2040js.git","description":"A Raspberry Pi Pico Emulator in JavaScript","language":"TypeScript","stars":525,"topics":["raspberry-pi","rp2040","emulator","simulator","simulation","raspberry-pi-pico","javascript","typescript","wokwi"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"rp2040js Raspberry Pi Pico Emulator for the Wokwi Simulation Platform. It blinks, runs Arduino code, and even the MicroPython REPL! Online examples If you are just looking to play around with the Raspberry Pi Pico Simulator, check out the Wokwi Simulator: - Raspberry Pi Pico Traffic Light - LCD1602 Hello World - MicroPython Blink - MicroPython 7-Segment Counter For more information, take a look at the wokwi-pi-pico docs and the Pi Pico MicroPython Guide. If you want to develop your own application using the Raspberry Pi Pico simulator, the following examples may be helpful: - Blink LEDs with RP2040js, from scratch - Press \"Run\" and patiently wait for the code to compile ;-) Run the demo project Native code You'd need to get hello uart.hex by building it from the pico-examples repo, then copy it to the rp2040js root directory and run: You can also specify the path to the image on the command line and/or load an UF2 image: A GDB server will be available on port 3333, and the data written to UART0 will be printed to the console. MicroPython code To run the MicroPython demo, first download RPI PICO-20230426-v1.20.0.uf2, place it in the rp2040js root directory, then run: and enjoy the MicroPython REPL! Quit the REPL with Ctrl+X. A different MicroPython UF2 image can be loaded by supplying the --image option: A GDB server on port 3333 can be enabled by specifying the --gdb flag: For using the MicroPython demo code in tests, the --expect-text can come handy: it will look for the giv","default_branch":null,"files":null,"tree":[],"storefront":"/r/wokwi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wokwi/rp2040js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}