Last active
August 21, 2017 16:27
-
-
Save uktechreviews/16a4bd8176896c9c01ddb58dc1aab967 to your computer and use it in GitHub Desktop.
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 | |
green = LED(14) | |
amber = LED(15) | |
red = LED(18) | |
list = [red,amber,green] | |
while True: | |
choice = random.choice(list) | |
choice.on() | |
sleep(1) | |
choice.off() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment