RaspberryPiFoundation / picozero

A beginner-friendly library for using common electronics components with the Raspberry Pi Pico.
MIT License
100 stars 26 forks source link

`.beep` method on a passive buzzer clicks rather than beeps #20

Closed MarcScott closed 2 years ago

MarcScott commented 2 years ago

Code used

def beep_passive_buzzer():
    '''Test for beeping an active buzzer on GP15'''
    from picozero import Speaker
    passive_buzzer = Speaker(16)
    passive_buzzer.beep()

Expected

Continuous beep at some default tone

Result

Clicking of the buzzer.

MarcScott commented 2 years ago

Fixed on latest dev branch