#!/usr/bin/env python3 """BeatSync accepts exactly one of the two copies of each beat - runs on MicroPython.""" import struct from beat_sync import BeatSync def frame(idx, period=500, fire_in=30, flags=0): return struct.pack("