diff options
Diffstat (limited to 'code/002-button.js')
-rw-r--r-- | code/002-button.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/002-button.js b/code/002-button.js index e98ace2..7fff372 100644 --- a/code/002-button.js +++ b/code/002-button.js @@ -1,7 +1,7 @@ -var on = false; +var on = false; var change = function() { on = !on; LED1.write(on); }; -setWatch(change, BTN1, {repeat:true, edge:"rising"});
\ No newline at end of file +setWatch(change, BTN1, {repeat:true, edge:"rising"}); |