alex27riva / picoRGB

RGB Led library for Micropython

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

RGB Led library for Micropython

License:The Unlicense


Languages

Language:Python 100.0%