Skip to content

Commit

Permalink
Swapped on off
Browse files Browse the repository at this point in the history
  • Loading branch information
mittalshravika authored Jul 26, 2017
1 parent 63c852e commit 45c5103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pin-pull.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ setInterval(function toggle() {

console.log(number);
if (number == 1){
led.on();
led.off();
}
else{
led.off();
led.on();
}

});
Expand Down

0 comments on commit 45c5103

Please sign in to comment.