Left for archival purposes.

User avatar
By Markus Gritsch
#9527 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=7026
or change the Lua code from ws2812.write(...) to gpio.ws2812(...)
User avatar
By robbaker
#9583 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?
User avatar
By Markus Gritsch
#9584 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()