aboutsummaryrefslogtreecommitdiff
path: root/code/001-blink.js
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-02-20 20:14:38 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-02-20 20:14:38 +0100
commit8d4be06944866d6d8a2dddff16025f590b03765d (patch)
tree99e4c41f7a779960ce4a4a3d83ccbfc3271202dc /code/001-blink.js
parenta58d3bc6761f94308cd1e21ba29c7d746ba15939 (diff)
Some slides
Diffstat (limited to 'code/001-blink.js')
-rw-r--r--code/001-blink.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/001-blink.js b/code/001-blink.js
new file mode 100644
index 0000000..408aeb4
--- /dev/null
+++ b/code/001-blink.js
@@ -0,0 +1,5 @@
+var on = false;
+setInterval(function() {
+ on = !on;
+ LED1.write(on);
+}, 500); \ No newline at end of file