Created
April 17, 2018 20:28
-
-
Save ExReanimator/f412906157b5dfc853485c62a2512097 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
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