about summary refs log tree commit diff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/blink.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/blink.py b/python/blink.py
new file mode 100644
index 0000000..8e7da25
--- /dev/null
+++ b/python/blink.py
@@ -0,0 +1,13 @@
+from machine import Pin
+import time
+
+for i in range(0,16):
+    Pin(i, Pin.OUT).off()
+
+while True:
+    for i in range(0,16):
+        Pin(i, Pin.OUT).on()
+    time.sleep(0.1);
+    for i in range(0,16):
+        Pin(i, Pin.OUT).off()
+    time.sleep(0.1);