#153Premium
Classic "chasing LED" animation with Pico — 6 LED version! 🌊 6 LEDs light up left-to-right sequentially — like light walking down the row. Learn Python list, list comprehension ([Pin(p, Pin.OUT) for p in LED_PINS]), for loop with pin control and enumerate(). 6 LEDs on GP9-GP14, each with 220Ω current-limiting resistor. Very clean code: instead of defining 6 LEDs one by one, we use a list — even 100 LEDs would keep the code the same. Simulate on Wokwi or build in 5-7 minutes on breadboard. Change

Become Premium to view the source code
Unlock Everything with Premium
All project code, FAQ sections, and troubleshooting guides for Premium members. Buy in the mobile app.