2021-01-25 16:21:34 +00:00
2021-01-25 16:14:21 +00:00
2021-01-25 16:21:34 +00:00
2021-01-25 16:15:02 +00:00

Micropython RGB LED driver

Tiny driver to control an RGB LED with PWM.

Usage

1. Put the driver file on the board

sudo ampy --port /dev/ttyUSB0 put RGBPWM.py

2. Import and create the object.

from RGBPWM import RGBPWM

rgb_pwm = RGBPWM(5, 21, 19) # red, green and blue pins number

rgb_pwm.set_colors_from_hex("#00eeff")

Description
Tiny driver to control an RGB LED with PWM.
Readme MIT 27 KiB
Languages
Python 100%