Skip to content

Commit

Permalink
Merge pull request #403 from rwaldron/only-tell-me-once
Browse files Browse the repository at this point in the history
Only display the blinking and quitting message once
  • Loading branch information
rwaldron committed Nov 16, 2015
2 parents b92a848 + 53f5e54 commit 4ca7adc
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 4ca7adc

Please sign in to comment.