>const PIN = NodeMCU.D7;
>pinMode(PIN, "output", false);
>getPinMode(NodeMCU.D7)
="output"
>
// anomaly: Espruino returns the GPIO port prefixed by 'D' which is not the silkscreened pin value
>PIN
=D13
>
// expected 'D7'
> dump()
> pinMode(D13, "output");
>
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.
Sun 2021.09.12
Weired anomaly with pin mode and NodeMCU board references.
Checking against: