Re: WS2812B RGB LED Driver
Posted:
Wed Feb 11, 2015 11:40 pm
by Markus Gritsch
It seems you are using the new API, where the code has been moved to its own ws2812 module, but are running an old precompiled firmware, where it was added to the gpio module.
So either flash the firmware from this post
http://dangerousprototypes.com/forum/vi ... =56&t=7026or change the Lua code from ws2812.write(...) to gpio.ws2812(...)
Re: WS2812B RGB LED Driver
Posted:
Thu Feb 12, 2015 2:27 am
by MartijnTiny
Will check that out, thanks!
Re: WS2812B RGB LED Driver
Posted:
Thu Feb 12, 2015 4:16 pm
by robbaker
I've tried both ws2812.write(...) and gpio.ws2812.write(...), neither seem to be working with the latest pre_build.
i'm also getting [attempt to call global 'ws2812' (a nil value)] error.
has ws2812 been added to the latest pre_build?
Re: WS2812B RGB LED Driver
Posted:
Thu Feb 12, 2015 4:25 pm
by Markus Gritsch
Either use
* the firmware from this thread and gpio.ws2812()
* the firmware from this post
http://dangerousprototypes.com/forum/vi ... =56&t=7026 and ws2812.write()
* wait, until the dev branch is merged into the master branch, and use the official pre-compiled firmware with ws2812.write()