RGB LED Cycle Using Raspberry Pi Pico (MicroPython)
🔴🟢🔵 Button-Controlled RGB LED Cycle Using Raspberry Pi Pico (MicroPython) Objective To demonstrate how to use a push button to cycle through three different LEDs (Red, Green, and Blue) connected to a Raspberry Pi Pico. To learn input reading , edge detection , and RGB control in MicroPython. Components Required S.N. Component Quantity 1 Raspberry Pi Pico 1 2 Red LED 1 3 Green LED 1 4 Blue LED 1 5 Push Button 1 6 220Ω Resistors 3 (optional) 7 Breadboard + Jumper Wires As needed 8 Micro USB Cable 1 Circuit Description Red LED → GPIO 2 Green LED → GPIO 1 Blue LED → GPIO 0 All cathodes of the LEDs go to GND through 220Ω resistors . Push Button → GPIO 15, with internal pull-down resistor enabled using Pin.PULL_DOWN . :::::circuit diagram::::: ...