Skip to content

Instantly share code, notes, and snippets.

@shahbazahmed1269
Created April 7, 2018 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shahbazahmed1269/3697c448a8d4c8488f3f8906e67a5e51 to your computer and use it in GitHub Desktop.
Save shahbazahmed1269/3697c448a8d4c8488f3f8906e67a5e51 to your computer and use it in GitHub Desktop.
Raspberry Pi GPIO LED blink
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