ws2812_i2s: WS2812 leds driver implementation using i2s_dma library
This commit is contained in:
parent
27135d6252
commit
666f821263
6 changed files with 347 additions and 0 deletions
15
extras/ws2812_i2s/README.md
Normal file
15
extras/ws2812_i2s/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# WS2812 led driver
|
||||
|
||||
This driver uses I2S and DMA subsystems to drive WS2812 leds.
|
||||
The idea to use I2S to control WS2812 leds belongs to [CNLohr](https://github.com/CNLohr).
|
||||
|
||||
## Pros
|
||||
|
||||
* Not using CPU to generate pulses.
|
||||
* Interrupt neutral. Reliable operation even with high network load.
|
||||
|
||||
## Cons
|
||||
|
||||
* Using RAM for DMA buffer. 12 bytes per pixel.
|
||||
* Can not change output PIN. Use I2S DATA output pin which is GPIO3.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue