First I had the same problem with all three being white.
But now it works as expected, no idea why.
Only change I did was to add esp.debugLog(true).
From that moment on, it worked, even after setting esp.debugLog(false).
var esp = require("ESP8266");
esp.logDebug(false);
var p = new Pin(D4);
pinMode(p, 'output');
esp.neopixelWrite(p, [0, 255, 255, 0, 0, 255, 0,255,0,255,0,0,128,128,0,255,255,0]);
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.
First I had the same problem with all three being white.
But now it works as expected, no idea why.
Only change I did was to add esp.debugLog(true).
From that moment on, it worked, even after setting esp.debugLog(false).