--- cont ---
Performing a reset() and then dump() reveals:
reset()
>dump() pinMode(D0, "input_pullup", true); digitalWrite(D2, 1);
Trying to set const pin = NodeMCU.D2; // GPIO4 for pin labeled 'D2'
results in:
>const pin = NodeMCU.D2; =D4
but uploading
require("neopixel").write(pin, [0,0,63, 55,77,0, 55,0,77]);
or even hard coding:
require("neopixel").write(NodeMCU.D2, [0,0,63, 55,77,0, 55,0,77]);
getPinMode(NodeMCU.D2);
Hence the other post to determine which of the coding conventions is required for using neopixels on ESP8266
Sanity Check for Neopixel pin Require statement
@Robin started
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.
--- cont ---
Performing a
reset()
and then dump() reveals:Trying to set const pin = NodeMCU.D2; // GPIO4 for pin labeled 'D2'
results in:
but uploading
require("neopixel").write(pin, [0,0,63, 55,77,0, 55,0,77]);
or even hard coding:
require("neopixel").write(NodeMCU.D2, [0,0,63, 55,77,0, 55,0,77]);
getPinMode(NodeMCU.D2);
Hence the other post to determine which of the coding conventions is required for using neopixels on ESP8266