rjsberry/rpi_pico_examples.zig
Example project in Zig for the Raspberry Pi Pico.
Example Zig project for the Raspberry Pi Pico microcontroller.
To build the firmware:
zig build
The firmware will be placed in zig-out/bin
.
While you could upload code the USB bootloader, it's more fun to do everything
from zig
instead!
You will need:
picoprobe
. arm-none-eabi-gdb
.Connect your hardware up as follows:
Then run:
zig build xrun
This will flash the firmware onto your device, then monitor for RTT output. You should see:
hello world
Printed to the terminal.
The examples in this repository and all other rp2040.zig
code is dual licensed
under the 0BSD and MIT licenses.
The examples contain binary second stage boot code which is licensed by Raspberry Pi (Trading) Ltd. under the terms of the 3-clause BSD license.