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
8y
Listen to this post
~1 min

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