Experiment with NodeMCU and WS2812B LEDS
New LUA scripts can be uploaded/replaced via telnet within the first 18 seconds after power on:
./upload.sh --ip 192.168.127.126</tt>
Inhibit execution of LED animation (in case of problems) by calling stopstartup()
nc 192.168.127.126 telnet <<< 'stopstartup()'
Change animation, animation parameters or switch of via MQTT:
./inject_mqtt_msg.py "action/PipeLEDs/pattern" '{"pattern":"rainbow","arg":2}'
./inject_mqtt_msg.py "action/PipeLEDs/pattern" '{"pattern":"rainbow","arg":10}'
./inject_mqtt_msg.py "action/PipeLEDs/pattern" '{"pattern":"off","arg":0}'
- pattern_rainbow() takes a long time
- node.task.post(..) needs to be used so MQTT can be used in parallel
- Stop playing with LUA, use Sming instead.