Sitelet https://github.com/HeMan/micropython-ws2801
Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

MicroPython WS2801

A MicroPython library to interface with strands of WS2801 RGB LEDs. It's based on Adafruit WS2801 library for regular Python.

Examples

Copy the file to your device, using ampy, webrepl or compiling and deploying. eg.

$ ampy put ws2801.py

or use upip

>>> import upip
>>> upip.install('micropython-ws2800')

Use a 7 pixel strand and set all LED's red

from machine import SPI
from ws2801 import WS2801Pixels

spi = SPI(1)
ws = WS2801Pixels(7, spi)

ws.set_pixels_rgb(255, 0, 0)
ws.show()

Links

License

Licensed under the MIT License.

About

MicroPython library for WS2801

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages