GPIO Controlled LEDs

Jun 2026

Introduction

For the first three LED examples we have used the onboard LED on the Pico (pin25). But if we want to control other LEDs then we need to start to the use the GPIO pins available on the Pico.
Here is a wiring diagram for the LED setup. This is what we will use when we run the software below.
We have wired the LEDs to GPIO pins 2, 6 & 10. These are the GPIO Pin numbers, not the actual Pi Pico Pin numbers.