Raspberry Pi Pico - Blink multiple LED

This guide teaches you how to program a Raspberry Pi Pico to blink several LEDs at various speeds without using the time.sleep() function. It provides the code in two different methods:

Raspberry Pi Pico blinks multiple LED

We will show how to do this with three LEDs. You can simply change it for two, four, or more LEDs.

Hardware Preparation

1×Raspberry Pi Pico W
1×Raspberry Pi Pico (Alternatively)
1×Micro USB Cable
1×LED
1×220 ohm resistor
1×Breadboard
1×Jumper Wires
1×(Optional) Screw Terminal Expansion Board for Raspberry Pi Pico

Or you can buy the following sensor kits:

1×DIYables Sensor Kit (30 sensors/displays)
1×DIYables Sensor Kit (18 sensors/displays)
Disclosure: Some of the links provided in this section are Amazon affiliate links. We may receive a commission for any purchases made through these links at no additional cost to you.
Additionally, some of these links are for products from our own brand, DIYables.

Overview of LED

Check out our detailed guide on LEDs. Learn about connecting the hardware, understanding how they function, setting them up with Raspberry Iron Pico, and how to program them. Learn more here:

Wiring Diagram

The wiring diagram between Raspberry Pi and Pico multiple LED

This image is created using Fritzing. Click to enlarge image

Video Tutorial

※ OUR MESSAGES

  • As freelancers, We are AVAILABLE for HIRE. See how to outsource your project to us
  • Please feel free to share the link of this tutorial. However, Please do not use our content on any other websites. We invested a lot of effort and time to create the content, please respect our work!