Ejemplo n.º 1
0
from gpiozero import LED
from time import sleep

led = LED(17)

led.On()
sleep(0.75)
led.Off()
sleep(0.25)
led.On()
sleep(0.75)
led.Off()
sleep(0.75)
Ejemplo n.º 2
0
def beep(time, wait):
    led = LED(17)
    led.On()
    sleep(time)
    led.Off()
    sleep(wait)