Skip to content

Instantly share code, notes, and snippets.

@Megabytemb
Last active October 19, 2015 06:02
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 Megabytemb/3d679ead34b810fafdb2 to your computer and use it in GitHub Desktop.
Save Megabytemb/3d679ead34b810fafdb2 to your computer and use it in GitHub Desktop.
from time import sleep
while True:
print "Up Down: Green"
print "Left Right: Red"
sleep((60*5) - 60) #It will take us 1 minute to changes the lights, so 5 minutes - one minute
print "Up Down: Yellow"
print "Left Right: Red"
sleep(30) # Let People Stop
print "Up Down: Red"
print "Left Right: Red"
sleep(30) #30 seconds between Light changes
print "Up Down: Red"
print "Left Right: Green"
sleep((60*5) - 60)
print "Up Down: Red"
print "Left Right: Yellow"
sleep(30)
print "Up Down: Red"
print "Left Right: Red"
sleep(30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment