Buzzer
The buzzer is a simple speaker. It can make sounds, and you can use it to make music.
Main Functions
awesome.buzzer.turnOn(frequency)
Turns the buzzer on, so that it makes a sound.
Inputs
It takes an integer frequency
as an input. A higher number will make a higher pitched sound. We usually use between 200-800
.
Example
awesome.buzzer.turnOn(350);
awesome.buzzer.turnOff()
Turns the buzzer off, so that it stops making a sound.
Example
awesome.buzzer.turnOff();
Tips
You can use the buzzer to make music!