-
-
-
var LED1 = { set : ()=> {D2.reset();}, reset : ()=>{ D2.set();} }; digitalWrite(LED1, true);
____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v06 (c) 2019 G.Williams Espruino is Open Source. Our work is supported only by sales of official boards and donations: http://espruino.com/Donate Flash map 4MB:512/512, manuf 0x20 chip 0x4016 >Uncaught Error: Invalid pin! at line 7 col 24 digitalWrite(LED1, true);
-
Actually I am not frustrated but trying to figure out how can I use esp8266 with espruino firmware, especially digitalRead() and digitalWrite() correctly. Anyways, it seems to be a bit weird that on
or
LED does gets turned off. I tried on multiple esp8266 board but same results.
And
and
Feels much more inconvenient but it works as mentioned by @MaBe.
And I am referring https://www.espruino.com/Reference
for documentation.