Add blink
This commit is contained in:
1 parent
f5fbc2a1f1
commit
d0d27a6715
1 file changed
+11
@@ -0,0 +1,11 @@
|
||||
from machine import Pin
|
||||
from time import sleep
|
||||
|
||||
led = Pin(2, Pin.OUT)
|
||||
|
||||
while True:
|
||||
led.on()
|
||||
sleep(1)
|
||||
led.off()
|
||||
sleep(1)
|
||||
|
||||
Reference in new issue
Block a user