from mangobox import Mango
import time

m = Mango(mode="hardware")
try:
    m.beep()
    time.sleep(1)
    m.start_bee(period=800, duration=3000)  # 參數單位：毫秒
    time.sleep(3.2)  # Python sleep：秒
finally:
    m.stop_bee()
    m.close()
