• An experimental build is now up at:

    https://github.com/espruino/EspruinoBuilds/tree/master/ESP8266

    This has the following extra function:

    var esp = require("ESP8266");
    var pin = new Pin(1);
    esp.neopixelWrite(pin, [255, 255, 255, 0, 0, 0, 128,128,128]);
    

    The array can be as long as you like but must be multiple of 3 in size. The pin is the Pin id of the pin you are using for the data line. The timing is hard-coded for the neopixel speeds.

    @tve ... I like the idea but am not yet seeing how it would work for NeoPixels which appear to be our focus de-jure. At the NeoPixel level we want a pixel to be 3 bytes/pixel ... with 8 bits for red, 8 bits for green and 8 bits for blue. Not yet sure how we would turn that into a digital vector ....

About

Avatar for Kolban @Kolban started