11 lines
140 B
Python
11 lines
140 B
Python
|
from machine import Pin
|
||
|
from time import sleep
|
||
|
|
||
|
led = Pin(2, Pin.OUT)
|
||
|
|
||
|
while True:
|
||
|
led.on()
|
||
|
sleep(1)
|
||
|
led.off()
|
||
|
sleep(1)
|
||
|
|