树莓派4B

https://shumeipai.nxez.com/
https://projects.raspberrypi.org/en/pathways/getting-started-with-raspberry-pi
gpiozero库:https://gpiozero.readthedocs.io/en/stable/

from gpiozero import LED
from time import sleep

led=LED(25)
while True:
    led.on()
    sleep(1)
    led.off()
    sleep(1)

posted on 2020-03-05 01:03  HolaWorld  阅读(241)  评论(0编辑  收藏  举报

导航