require("neopixel").write(pin, [0,0,63, 55,77,0, 55,0,77]);
What should the value of 'pin' be for the ESP8266?
For the ESP8266, the data wire is connected to silkscreened text 'D2' which is four pins over from the 5V input pin.
We know from the data sheets that D2 is GPIO4 and shares SDA of the I2C bus. I've removed the module that worked using I2C, so I can confirm that D2 is SDA on this board.
We also know that Espruino has a naming convention of an alpha char followed by a numeral. But that doesn't work for ESP32 or ESP8266.
So to fill in the pin value for Neopixels, should it be:
c) 4 // GPIO4 which is D2
e) other pin as SDA on the I2C bus may not be used as a general GPIO pin
or, restating the request . . .
Does someone have a working ESP8266 example that can share the pin value used in code and the printed pin silkscreen designator please.
© Espruino, powered by microcosm.
Report a problem