How to Flash the Onboard LED on Raspberry PI Pico C/C++

How to Flash the Onboard LED on Raspberry PI Pico C/C++

This is the first in a set of beginner guide videos on the Raspberry PI Pico with C/C++. We all begin by flashing the onboard LED on a Pico. This Video is targeted at the Raspberry Pi Pico only. The approach is unfortunately not compatible with the Pico-W or some other RP2040 boards due to hardware differences.

All of the code for this video is included on GitHub. You can clone it to your environment with the command:

git clone https://github.com/jondurrant/RPIPicoBasics 

To build the project we go through the steps

cd 1-PicoFlash 
mkdir build 
cd build 
cmake .. 
make 

On windows use ninja instead of make

I’ve got a course that drill into the setup of the toolchain for your Pico and your development environment. It covers Windows, Mac, Raspberry PI and Linux desktops.

Leave a comment