From 6cb056f979f20e895930940c94b05767d081dd61 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Thu, 23 Feb 2017 22:11:21 +0100 Subject: Some additional slides --- code/002-button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/002-button.js') 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"}); -- cgit v1.2.3