Driver for WS2812 RGB LEDs (NeoPixels, ...)
Driver for WS2812 RGB LEDs (NeoPixels, ...)
Hi, I made driver for WS2812 (and compatible) RGB LEDs. Those are popular RGB LEDs used for example in AdaFruit NeoPixels.
Driver: https://github.com/JanBednarik/micropython-ws2812
MicroPython and NeoPixels ring demo: http://youtu.be/ADYxiG40UJ0
Driver: https://github.com/JanBednarik/micropython-ws2812
MicroPython and NeoPixels ring demo: http://youtu.be/ADYxiG40UJ0
Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)
Nice! I'll give it a try...
Thanks for sharing!
Thanks for sharing!
Frédéric
Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)
I have played with 4 meters of NeoPixels Strip which has 240 RGB LEDs in total.
Driver works fine. I just released v1.1 with some speed optimizations. Should work for much more RGB LEDs
In action: http://youtu.be/vb5l3h1-TqA
Driver works fine. I just released v1.1 with some speed optimizations. Should work for much more RGB LEDs
In action: http://youtu.be/vb5l3h1-TqA
Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)
Thanks for the effort!
Larry
Larry
Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)
DMA transfers are now supported by the SPI bus, so you should no longer need to disable interrupts while doing the spi.send call.
Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)
Thank's for info. I have updated the driver.Damien wrote:DMA transfers are now supported by the SPI bus, so you should no longer need to disable interrupts while doing the spi.send call.
Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)
Yes. If interrupts are enabled it uses DMA, otherwise it uses polling.fma wrote:So, DMA usage is totally transparent?
Re: Driver for WS2812 RGB LEDs (NeoPixels, ...)
Great! But as I understand from your post on the other thread, the call to send() is still blocking during transfert, so CPU is not availabe for other tasks. Am I right?
Frédéric