Left for archival purposes.

User avatar
By shadman1911
#11952 Hello,

Stuck at this error: "init.lua:7: attempt to index global 'ws2812' (a nil value)"

I am using a ESP-11 and a CP2102 serial adapter. Only able to communicate at 9600 baud rate.

Any ideas?

Thanks!
User avatar
By Markus Gritsch
#12081 You are wrong. It is only disabled in the master branch. The dev branch, from which the travis-ci builds are made, has it activated. Your problem is probably that you use write() instead of writergb() as documented at the bottom of this page: https://github.com/nodemcu/nodemcu-firmware/tree/dev

To sum it up:
Use these binaries: https://github.com/nodemcu/nodemcu-firm ... ses/latest
Use this function: ws2812.writergb

Have fun,
Markus