Skip to content

Instantly share code, notes, and snippets.

@davelee212
Last active March 1, 2017 10:14
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 davelee212/0a9aee1c2cc9c153c7a81e2f99f48e7a to your computer and use it in GitHub Desktop.
Save davelee212/0a9aee1c2cc9c153c7a81e2f99f48e7a to your computer and use it in GitHub Desktop.
# created as part of the Future Learn course on Physical Computing with Raspberry Pi
# sets off epilepsy inducing LED flashing
from gpiozero import LED
from time import sleep
red_led = LED(17)
blue_led = LED(27)
green_led = LED(22)
red_led.off()
blue_led.off()
green_led.off()
while True:
red_led.toggle()
sleep(0.03)
red_led.toggle()
sleep(0.03)
blue_led.toggle()
sleep(0.03)
blue_led.toggle()
sleep(0.03)
green_led.toggle()
sleep(0.03)
green_led.toggle()
sleep(0.03)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment