-->
Page 1 of 1

blinky

PostPosted: Sun Oct 18, 2015 5:26 am
by hygy
Hi,

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

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

thanks
HyGy

Re: blinky

PostPosted: Sun Oct 18, 2015 7:26 am
by Erni
This will blink the built-in led on nodemcu board

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

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

Re: blinky

PostPosted: Mon Oct 19, 2015 3:01 am
by hygy
Hi,

Sorry, i think this:

http://www.blynk.cc/