RGB LEDs give us a basic range of just 7 colours by turning each element on and off. But what if we want to get something more specific like amber, and a nicer green, as well as the simple red for a status indicator light? Here's how.
Starting with the basics, I quickly look at how the RGB LED works, then how to set up a Raspberry Pi Pico to control it - including the installation of Micropython - and write the code for basic RGB colour mixing. Finally looking at using Pulse Width Modulation to achieve an almost infinite range of colours - all from a single LED - perfect for my indicator light and loads of other applications.
Follow-up button video can be seen here: • Using buttons to contr...
Негізгі бет Ғылым және технология Mixing RGB LED ‘traffic light’ colours with a Raspberry Pi Pico / Micropython + PWM
Пікірлер: 2