Basic RGB Led library for micropython - Tested in Raspberry Pi Pico
For use:
Set RGB Led Pins RGBLed(#Red pin,#Green pin, #Blue pin,#RGB Led type -Anode or Cathode)
Turn off all colors
Set color Set(#Red Led,#Green Led,#Blue Led)
Set color slowly SlowSet(#Red Led,#Green Led,#Blue Led,#delay - optional)
Show last color values
Set RGB led to white (255,255,255)
Set RGB led to yellow (255,255,0)
Set RGB led to magenta (255,0,255)
Set RGB led to cyan (0,255,255)
- RGBLed.slowSet() function must be a thread function