def play_note(note):
    if (note[0] != 0):
        pwm = pulseio.PWMOut(board.D12, duty_cycle=0, frequency=note[0])
        pwm.duty_cycle = 32767
    time.sleep(note[1])
    if (note[0] != 0):
        pwm.deinit()
def play_note(note):
    if (note[0] != 0):
        pwm = pulseio.PWMOut(board.D12, duty_cycle=0, frequency=note[0])
        pwm.duty_cycle = 32767
    time.sleep(note[1])
    if (note[0] != 0):
        pwm.deinit()