Created
April 7, 2018 12:32
-
-
Save shahbazahmed1269/3697c448a8d4c8488f3f8906e67a5e51 to your computer and use it in GitHub Desktop.
Raspberry Pi GPIO LED blink
This file contains 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 | |
led = LED(25) | |
while True: | |
led.on() | |
sleep(1) | |
led.off() | |
sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment