from mangobox import Mango

# 先用 virtual；要改 hardware 或 mirror，先完成實機連線。
MODE = "virtual"
m = Mango(mode=MODE)
try:
    m.clear()
    m.text(MODE, 0, 0)
    m.led_all("#00A86B")
    input("Observe the output, then press Enter to finish: ")
finally:
    m.led_off()
    m.close()
