Introduction: Neopixel Strip Control on ESP8266 With MongooseOS in 3 Mins

About: Open source, cross platform OS for low-power connected microcontrollers: ESP32, ESP8266, STM32, TI CC3200. Designed for Internet of Things by Cesanta.com. #MongooseOS #mOS #mJS

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 the video above.

4) init.js code:

<p>load('api_timer.js');<br>load('api_neopixel.js');</p><p>let pin = 5, numPixels = 12, colorOrder = NeoPixel.GRB, cnt = 0;
let s = NeoPixelStrip(pin, numPixels, colorOrder);</p><p>Timer.set(100, 1, function() {
  NeoPixel.clear(s);
  NeoPixel.setPixel(s, ++cnt % 12, 0, 30, 0);
  NeoPixel.show(s);
}, null);</p>

5) Enjoy!

If you like this and find useful, please hit the 'Favourite' 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