示例#1
0
文件: test.py 项目: bennuttall/gpio
from gpiozero import PiLiter
from signal import pause

lite = PiLiter()

lite.blink()

pause()
示例#2
0
from gpiozero import PiLiter

lite = PiLiter()
lite.on()
示例#3
0
from gpiozero import PiLiter
from time import sleep

lite = PiLiter()
lite.off()

while True:
    for led in lite.leds:
        led.on()
        sleep(0.1)
        led.off()