Skip to content

Commit

Permalink
Only display the blinking and quitting message once
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Oct 26, 2015
1 parent c976c80 commit 53f5e54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ tessel.led[2].on();

// Blink!
setInterval(function () {
console.log("I'm blinking! (Press CTRL + C to stop)");
tessel.led[2].toggle();
tessel.led[3].toggle();
}, 100);

console.log("I'm blinking! (Press CTRL + C to stop)");

0 comments on commit 53f5e54

Please sign in to comment.