Last active
May 7, 2024 17:47
-
-
Save jtuttas/85dbc7ec57eee1b8efc881bb01200355 to your computer and use it in GitHub Desktop.
LED Test
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 | |
# Erstellen Sie ein LED-Objekt, das mit GPIO 17 verbunden ist | |
ledgreen = LED(17) | |
ledblue = LED(18) | |
ledred = LED(19) | |
# LED ein- und ausschalten | |
while True: | |
ledgreen.on() | |
sleep(1) # Warten für 1 Sekunde | |
ledgreen.off() | |
ledblue.on() | |
sleep(1) # Warten für 1 Sekunde | |
ledblue.off() | |
ledred.on() | |
sleep(1) # Warten für 1 Sekunde | |
ledred.off() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment