Your First Binaries

The first program anyone writes when using a new microcontroller is to blink an LED on and off. The Raspberry Pi Pico boards come with a single LED on-board. The LED is connected to GP25 on the board’s microcontroller for Pico and Pico 2, and WL_GPIO0 on the Infineon 43439 wireless chip for Pico W and Pico 2 W.

You can blink this on and off by,

  1. Download the Blink UF2 file. This file supports all Pico variants.

  2. Push and hold the BOOTSEL button and plug your Pico into the USB port of your Raspberry Pi or other computer.

  3. It mounts as a Mass Storage Device called RPI-RP2 (Pico) or RP2350 (Pico 2).

  4. Drag and drop the Blink UF2 binary onto the RPI-RP2 volume. Pico reboots.

If it works, the on-board LED blinks.

You can see the code for writing your own blink program on Github.

Say "Hello World"

The next program anyone writes is to say 'Hello World' over a USB serial connection.

  1. Download the 'Hello World' UF2.

  2. Push and hold the BOOTSEL button and plug your Pico into the USB port of your Raspberry Pi or other computer.

  3. It mounts as a Mass Storage Device called RPI-RP2 (Pico) or RP2350 (Pico 2).

  4. Drag and drop the 'Hello World' UF2 binary onto the mounted volume. Pico reboots.

  5. Open a Terminal window and type:

    $ sudo apt install minicom
    $ minicom -b 115200 -o -D /dev/ttyACM0

'Hello, world!' is printed to the Terminal.

You can see the code for writing your own hello_world program on Github