A simple interface to GPIO devices with Raspberry Pi.

Link: https://gpiozero.readthedocs.io/en/stable/

from gpiozero import LED
from time import sleep

led = LED(17)

while True:
    led.on()
    sleep(1)
    led.off()
    sleep(1)

good luck :)

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center