aboutsummaryrefslogtreecommitdiff
path: root/code/002-button.js
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-02-23 22:11:21 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-02-23 22:11:21 +0100
commit6cb056f979f20e895930940c94b05767d081dd61 (patch)
tree9e3ece401941b735b34d090f0d76d11bf4d52d5a /code/002-button.js
parentb44d4c151b0ebc4284122530ac3d6e5f19e15bf5 (diff)
Some additional slides
Diffstat (limited to 'code/002-button.js')
-rw-r--r--code/002-button.js4
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"});