about summary refs log tree commit diff
path: root/python
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-04-21 23:12:25 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-04-21 23:12:25 -0700
commit4f0d99e04c15e999afbe73af3b685a9704927918 (patch)
tree6bdf6ad7545ff546e17013cb3c47e1a659d1d37d /python
parentf7b6653c92b6e20760b79eea49fe21194a7f3e4b (diff)
add new archive files
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);