Last active
January 18, 2025 21:49
-
-
Save donrestarone/79e7a65cdb997206dd7fc56fad52967d to your computer and use it in GitHub Desktop.
test raspberry PI GPIO with LED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from gpiozero import LED | |
from time import sleep | |
red = LED(17) | |
while True: | |
red.on() | |
sleep(1) | |
red.off() | |
sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run it with: