A simple RGB LED library for Micropython, tested on Raspberry Pi Pico.
Define RGBLed object, pin order is RGB. Supports common cathode or anode.
led = RGBLed(15,14,13,RGBLed.Cathode)
Turn off LED:
led.off()
Set custom color:
led.setColor(120,50,75)
Set custom color slowly:
led.slowSet(10,200,195)
Show LED information:
led.show()
Set LED to white:
led.white()
Set LED to yellow:
led.yellow()
This project was originally forked from sonmezarda.