PyRasp

← All practice problems

Raspberry Pi Pico practice problem · Raspberry Pi Pico

One LED, three colours

MediumBudget $6MicroPython

An RGB LED has three LEDs in one lens. Its red, green and blue legs are on GP20, GP21 and GP22, through 220 Ω resistors.

Show red for 0.5 s, then green for 0.5 s, then blue for 0.5 s, repeating. Only the colour that is showing may be on.

More in Raspberry Pi Pico