fixes bug in blink example
This commit is contained in:
parent
cf1a5b1872
commit
68502243b1
1 changed files with 1 additions and 1 deletions
2
blink.js
2
blink.js
|
|
@ -18,5 +18,5 @@ setInterval(function() {
|
|||
// get the current state of the LED
|
||||
var state = led.readSync();
|
||||
// write the opposite of the current state to the LED pin
|
||||
led.writeSync(!state);
|
||||
led.writeSync(Number(!state));
|
||||
}, 1000);
|
||||
|
|
|
|||
Loading…
Reference in a new issue