from PiRelay8 import Relay
import time

r1 = Relay("RELAY1")
r2 = Relay("RELAY2")
r3 = Relay("RELAY3")
r4 = Relay("RELAY4")
r5 = Relay("RELAY5")
r6 = Relay("RELAY6")
r7 = Relay("RELAY7")
r8 = Relay("RELAY8")


r1.off()
r2.off()
r3.off()
r4.off()
r5.off()
r6.off()
r7.off()
r8.off()

r1.on()
time.sleep(0.5)
r1.off()
time.sleep(0.5)

r2.on()
time.sleep(0.5)
r2.off()
time.sleep(0.5)

r3.on()
time.sleep(0.5)
r3.off()
time.sleep(0.5)

r4.on()
time.sleep(0.5)
r4.off()
time.sleep(0.5)

r5.on()
time.sleep(0.5)
r5.off()
time.sleep(0.5)

r6.on()
time.sleep(0.5)
r6.off()
time.sleep(0.5)

r7.on()
time.sleep(0.5)
r7.off()
time.sleep(0.5)

r8.on()
time.sleep(0.5)
r8.off()
time.sleep(0.5)

[((4, 5, 4, 20), 'PiRelay8.Relay', 'Relay', ({(4, 11, 4, 19): '"""RELAY1"""'}, {}), "('RELAY1')", False, 'from PiRelay8 import Relay\n'), ((5, 5, 5, 20), 'PiRelay8.Relay', 'Relay', ({(5, 11, 5, 19): '"""RELAY2"""'}, {}), "('RELAY2')", False, 'from PiRelay8 import Relay\n'), ((6, 5, 6, 20), 'PiRelay8.Relay', 'Relay', ({(6, 11, 6, 19): '"""RELAY3"""'}, {}), "('RELAY3')", False, 'from PiRelay8 import Relay\n'), ((7, 5, 7, 20), 'PiRelay8.Relay', 'Relay', ({(7, 11, 7, 19): '"""RELAY4"""'}, {}), "('RELAY4')", False, 'from PiRelay8 import Relay\n'), ((8, 5, 8, 20), 'PiRelay8.Relay', 'Relay', ({(8, 11, 8, 19): '"""RELAY5"""'}, {}), "('RELAY5')", False, 'from PiRelay8 import Relay\n'), ((9, 5, 9, 20), 'PiRelay8.Relay', 'Relay', ({(9, 11, 9, 19): '"""RELAY6"""'}, {}), "('RELAY6')", False, 'from PiRelay8 import Relay\n'), ((10, 5, 10, 20), 'PiRelay8.Relay', 'Relay', ({(10, 11, 10, 19): '"""RELAY7"""'}, {}), "('RELAY7')", False, 'from PiRelay8 import Relay\n'), ((11, 5, 11, 20), 'PiRelay8.Relay', 'Relay', ({(11, 11, 11, 19): '"""RELAY8"""'}, {}), "('RELAY8')", False, 'from PiRelay8 import Relay\n'), ((24, 0, 24, 15), 'time.sleep', 'time.sleep', ({(24, 11, 24, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((26, 0, 26, 15), 'time.sleep', 'time.sleep', ({(26, 11, 26, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((29, 0, 29, 15), 'time.sleep', 'time.sleep', ({(29, 11, 29, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((31, 0, 31, 15), 'time.sleep', 'time.sleep', ({(31, 11, 31, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((34, 0, 34, 15), 'time.sleep', 'time.sleep', ({(34, 11, 34, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((36, 0, 36, 15), 'time.sleep', 'time.sleep', ({(36, 11, 36, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((39, 0, 39, 15), 'time.sleep', 'time.sleep', ({(39, 11, 39, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((41, 0, 41, 15), 'time.sleep', 'time.sleep', ({(41, 11, 41, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((44, 0, 44, 15), 'time.sleep', 'time.sleep', ({(44, 11, 44, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((46, 0, 46, 15), 'time.sleep', 'time.sleep', ({(46, 11, 46, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((49, 0, 49, 15), 'time.sleep', 'time.sleep', ({(49, 11, 49, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((51, 0, 51, 15), 'time.sleep', 'time.sleep', ({(51, 11, 51, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((54, 0, 54, 15), 'time.sleep', 'time.sleep', ({(54, 11, 54, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((56, 0, 56, 15), 'time.sleep', 'time.sleep', ({(56, 11, 56, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((59, 0, 59, 15), 'time.sleep', 'time.sleep', ({(59, 11, 59, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n'), ((61, 0, 61, 15), 'time.sleep', 'time.sleep', ({(61, 11, 61, 14): '(0.5)'}, {}), '(0.5)', False, 'import time\n')]