Turn on or off the buzzer, and output its status (true or false)
pin: int. the gpio pin which is attached by the buzzer.
on: boolean. true means turn on the buzzer, false means turn off.
status: boolean. the running status of buzzer
It will check whether button is pressed in every 1s, if it is pressed, the buzzer starts buzzing, otherwise, the buzzer stop buzzing.