Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HeMan/micropython-ws2801
MicroPython library for WS2801
https://github.com/HeMan/micropython-ws2801
Last synced: 3 months ago
JSON representation
MicroPython library for WS2801
- Host: GitHub
- URL: https://github.com/HeMan/micropython-ws2801
- Owner: HeMan
- License: mit
- Created: 2019-09-18T17:42:54.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T07:21:38.000Z (about 5 years ago)
- Last Synced: 2024-07-03T09:12:46.011Z (4 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-ws2801 - A MicroPython library to interface with strands of WS2801 RGB LEDs. (Libraries / Display)
README
# 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.
```bash
$ ampy put ws2801.py
```or use upip
```python
>>> import upip
>>> upip.install('micropython-ws2800')
```**Use a 7 pixel strand and set all LED's red**
```python
from machine import SPI
from ws2801 import WS2801Pixelsspi = SPI(1)
ws = WS2801Pixels(7, spi)ws.set_pixels_rgb(255, 0, 0)
ws.show()
```## Links
* [Adafruit WS2801](https://github.com/adafruit/Adafruit_Python_WS2801)
* [micropython.org](http://micropython.org)
* [Adafruit Ampy](https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy)## License
Licensed under the [MIT License](http://opensource.org/licenses/MIT).