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)

[((48, 63), 'PiRelay8.Relay', 'Relay', (['"""RELAY1"""'], {}), "('RELAY1')\n", (53, 63), False, 'from PiRelay8 import Relay\n'), ((70, 85), 'PiRelay8.Relay', 'Relay', (['"""RELAY2"""'], {}), "('RELAY2')\n", (75, 85), False, 'from PiRelay8 import Relay\n'), ((92, 107), 'PiRelay8.Relay', 'Relay', (['"""RELAY3"""'], {}), "('RELAY3')\n", (97, 107), False, 'from PiRelay8 import Relay\n'), ((114, 129), 'PiRelay8.Relay', 'Relay', (['"""RELAY4"""'], {}), "('RELAY4')\n", (119, 129), False, 'from PiRelay8 import Relay\n'), ((136, 151), 'PiRelay8.Relay', 'Relay', (['"""RELAY5"""'], {}), "('RELAY5')\n", (141, 151), False, 'from PiRelay8 import Relay\n'), ((158, 173), 'PiRelay8.Relay', 'Relay', (['"""RELAY6"""'], {}), "('RELAY6')\n", (163, 173), False, 'from PiRelay8 import Relay\n'), ((180, 195), 'PiRelay8.Relay', 'Relay', (['"""RELAY7"""'], {}), "('RELAY7')\n", (185, 195), False, 'from PiRelay8 import Relay\n'), ((202, 217), 'PiRelay8.Relay', 'Relay', (['"""RELAY8"""'], {}), "('RELAY8')\n", (207, 217), False, 'from PiRelay8 import Relay\n'), ((314, 329), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (324, 329), False, 'import time\n'), ((341, 356), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (351, 356), False, 'import time\n'), ((369, 384), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (379, 384), False, 'import time\n'), ((396, 411), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (406, 411), False, 'import time\n'), ((424, 439), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (434, 439), False, 'import time\n'), ((451, 466), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (461, 466), False, 'import time\n'), ((479, 494), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (489, 494), False, 'import time\n'), ((506, 521), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (516, 521), False, 'import time\n'), ((534, 549), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (544, 549), False, 'import time\n'), ((561, 576), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (571, 576), False, 'import time\n'), ((589, 604), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (599, 604), False, 'import time\n'), ((616, 631), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (626, 631), False, 'import time\n'), ((644, 659), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (654, 659), False, 'import time\n'), ((671, 686), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (681, 686), False, 'import time\n'), ((699, 714), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (709, 714), False, 'import time\n'), ((726, 741), 'time.sleep', 'time.sleep', (['(0.5)'], {}), '(0.5)\n', (736, 741), False, 'import time\n')]