Add blink

This commit is contained in:
Jimmy 2021-04-06 16:12:39 +12:00
parent f5fbc2a1f1
commit d0d27a6715
1 changed files with 11 additions and 0 deletions

11
blink/blink.py Normal file
View File

@ -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)