• --- cont ---

    Performing a reset() and then dump() reveals:

    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;

    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]);


    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


Avatar for Robin @Robin started