Add blink
This commit is contained in:
parent
f5fbc2a1f1
commit
d0d27a6715
|
@ -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)
|
||||
|
Loading…
Reference in New Issue