/picoRGB

RGB Led library for Micropython

Primary LanguagePythonThe UnlicenseUnlicense

picoRGB library

A simple RGB LED library for Micropython, tested on Raspberry Pi Pico.

Usage

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()

About

This project was originally forked from sonmezarda.