Device for controlling a piezo buzzer with configurable frequencies