Skip to content

Instantly share code, notes, and snippets.

@donrestarone
Last active January 18, 2025 21:49
Show Gist options
  • Save donrestarone/79e7a65cdb997206dd7fc56fad52967d to your computer and use it in GitHub Desktop.
Save donrestarone/79e7a65cdb997206dd7fc56fad52967d to your computer and use it in GitHub Desktop.
test raspberry PI GPIO with LED
from gpiozero import LED
from time import sleep
red = LED(17)
while True:
red.on()
sleep(1)
red.off()
sleep(1)
@donrestarone
Copy link
Author

run it with:

python3 led.py

IMG_7173

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment