Published: 17 Jan 2019 › Updated: 17 Jan 2019

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 :)
Leave A simple interface to GPIO devices with Raspberry Pi. to:
Read more #python posts
Best Posts From linuxmaster
We have not curated any of linuxmaster's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.