micropython-examples/blink/blink.py

11 lines
140 B
Python
Raw Normal View History

2021-04-06 04:12:39 +00:00
from machine import Pin
from time import sleep
led = Pin(2, Pin.OUT)
while True:
led.on()
sleep(1)
led.off()
sleep(1)