Skip to content

alex27riva/picoRGB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Languages

  • Python 100.0%