from machine import Pin
from utime import sleep
pin = Pin("LED",Pin.OUT)
print("LED starts flashing...")
while True:
pin.toggle()
sleep(1)
树莓派的笔记---2点灯
最新推荐文章于 2024-09-16 21:30:36 发布
from machine import Pin
from utime import sleep
pin = Pin("LED",Pin.OUT)
print("LED starts flashing...")
while True:
pin.toggle()
sleep(1)