I tried the code from the official Espruino WS2812 example: http://www.espruino.com/WS2811 replacing the calls to SPI by esp.neopixelWrite(), but I get the error
>esp.neopixelWrite(pin, arr);
Uncaught Error: Data must be an array.
at line 1 col 27
esp.neopixelWrite(pin, arr);
^
It would be nice if neopixelWrite would also take an Uint8ClampedArray or Uint8Array.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I tried the code from the official Espruino WS2812 example: http://www.espruino.com/WS2811 replacing the calls to SPI by esp.neopixelWrite(), but I get the error
It would be nice if neopixelWrite would also take an Uint8ClampedArray or Uint8Array.