This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

A simple interface to GPIO devices with Raspberry Pi.

Words
4
Reading
1 min
Listen
Play
8y

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 :)

A simple interface to GPIO devices with Raspberry Pi. | Ecency