from mangobox import Mango
import time

m = Mango(mode="hardware")
try:
    for cycle in range(2):
        for index, color, seconds in [
            (0, "#FF0000", 5),
            (1, "#00FF00", 5),
            (2, "#FFFF00", 2),
        ]:
            m.led_off()
            m.led(index, color)
            time.sleep(seconds)
finally:
    m.led_off()
    m.close()
