Driving WS2812 neopixel led strip
-
Hi all,
I am trying to use the LoPy 1.0r with the latest firmware and some NeoPixels - found this lib:
https://github.com/aureleq/wipy-lopy-WS2812from ws2812 import WS2812 from utime import sleep_ms chain = WS2812( ledNumber=1, brightness=50, dataPin='P22' ) # dataPin is for LoPy board only data = [(255, 102, 0)] chain.show( data ) while True: chain.show( data ) sleep_ms( 150 )
Unfortunately just nothing happens. Has anyone succeeded in using the LoPy with the latest firmware to drive some neopixels?
thx
Sven
-
thx, it worked with this lib!
-
@hansamann
i do not know if above work or not
but try this one (it work)
https://raw.githubusercontent.com/Gadgetoid/wipy-WS2812/master/ws2812alt.py