1) Get your ESP8266 development board and NeoPixel strip ready. You can use any NeoPixel made by Adafruit.
2) Download and install mOS tool for Mongoose OS. Follow installation instructions on https://mongoose-os.com/software.html
3) Follow step-by-step instructions from this video:
4) init.js code:
load('api_timer.js');
load('api_neopixel.js');
let pin = 5, numPixels = 12, colorOrder = NeoPixel.GRB, cnt = 0;
let s = NeoPixelStrip(pin, numPixels, colorOrder);
Timer.set(100, 1, function() {
NeoPixel.clear(s);
NeoPixel.setPixel(s, ++cnt % 12, 0, 30, 0);
NeoPixel.show(s);
}, null);
5) Enjoy!
If you like this and find useful, please hit the 'Respect project' button and don't forget to 'Share'. That way we will hear your feedback and bring even more exciting projects to you door.
Check also other projects by Mongoose OS team.
Let us know if any questions or feedback -> forum.cesanta.com
Comments