https://github.com/angiglesias/pca9957
periph.io inspired driver for led stripes based on PCA9957
https://github.com/angiglesias/pca9957
go golang pca9957 periphio
Last synced: 5 months ago
JSON representation
periph.io inspired driver for led stripes based on PCA9957
- Host: GitHub
- URL: https://github.com/angiglesias/pca9957
- Owner: angiglesias
- License: apache-2.0
- Created: 2022-03-06T21:38:12.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-07T00:28:43.000Z (over 4 years ago)
- Last Synced: 2024-06-20T18:32:44.558Z (almost 2 years ago)
- Topics: go, golang, pca9957, periphio
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Periph.io compatible SPI driver for PCA9957 led controller
NXP PCA9957 device driver to work with [periph.io](https://periph.io/)
[](https://pkg.go.dev/github.com/angiglesias/pca9957)
## Driver summary
The PCA9957 is a 24-channel SPI bus constant current programmable LED driver.
This device supports daisy chaining of multiple drivers to build composed led stripes. Driver will expose
the daisy chained stripes as a row of pixels as done in existing [nrzled](https://pkg.go.dev/periph.io/x/devices/v3/nrzled) driver.
## Limitations
* Driver is currently only compatible with RGB strips (max 8 pixels, asigning 3 channels per pixel)
* Driver asumes pixels in BGR configuration (in each pixel, lower channel for blue, higher channel for red and mid for green)
* ie, for the first pixel of the stripe, channel zero would be blue, channel one would green and channel two would be red
* Driver models led stripe as one line of pixels (containing a maximun of eight color pixels)
## Datasheet
* [PCA9957](https://www.nxp.com/docs/en/data-sheet/PCA9957DS.pdf)