控制board led

This commit is contained in:
Gary Gan 2025-01-19 14:42:11 +08:00
commit 0a9746a678

8
board_led.py Normal file
View File

@ -0,0 +1,8 @@
import machine
from time import sleep
led = machine.Pin("LED", machine.Pin.OUT)
while True:
led.toggle()
sleep(0.1)