while True:
for i in range(0, 8):
servo.position(i, 0)
time.sleep_ms(500)
for i in range(0, 8):
servo.position(i, 180)
time.sleep_ms(500)
while True:
for i in range(0, 8):
servo.position(i, 0)
time.sleep_ms(500)
for i in range(0, 8):
servo.position(i, 180)
time.sleep_ms(500)