首页 > 技术文章 > 树莓派4B

holaworld 2020-03-05 01:03 原文

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)

推荐阅读