When it comes to the onboard LED the Pico W is a very different board. At least if you are using it directly in C or C++ via the Pico SDK. Let’s take an easy look at how to use the LED on the Pico-W, and make it flash like we did for the Pico.
⏰Timestamps
- 00:00 Introduction
- 01:05 How LED is connected to Pico-W
- 02:10 Cloning and building the project
- 03:48 The project code
- 05:36 Libraries and a warning
All of the code for this video is included on GitHub RPIPicoBasics
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 2-PicoWFlash
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. Take a look.
If you want to learn more and try some projects why not try out my Pico Microprojects course on Udemy.
