Chat freely about the open source Javascript projects for ESP8266

User avatar
By hygy
#31634 Hi,

Is there an example, how can I use esp8266 with javascript and blinky?

(I have a nodemc with the latest espruino flashed.)

User avatar
By Erni
#31645 This will blink the built-in led on nodemcu board

Code: Select allvar GPIO2 = new Pin(2);
var toggle=1;

setInterval(function() {
  digitalWrite(GPIO2, toggle);
}, 500);