Skip to content

Instantly share code, notes, and snippets.

@ExReanimator
Created April 17, 2018 20:28
Show Gist options
  • Save ExReanimator/f412906157b5dfc853485c62a2512097 to your computer and use it in GitHub Desktop.
Save ExReanimator/f412906157b5dfc853485c62a2512097 to your computer and use it in GitHub Desktop.
import time
def light_on_and_off(pin_to_on, pin_to_off):
print str(pin_to_on) + " is ON"
print str(pin_to_off) + " is OFF"
time.sleep (0.5)
pins = ["PIN1", "PIN2", "PIN3", "PIN4", "PIN5", "PIN6"]
for i in range(6):
light_on_and_off(pins[i], pins[i-1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment