Python Library for Buzzer.
Turta_Buzzer library is responsible for generating basic sounds.
Add the following statement to the top of your Python code.
from turta_iothat3 import Turta_Buzzer
Then, create an instance of the BuzzerDriver class.
buzzer = Turta_Buzzer.BuzzerDriver()
Now you're ready to access the library by calling its instance.
- Int freq: Frequency. (1000 to 10000, default is 5000.)
Stops generating sound.
Plays a 'be beep' tone.
When exiting from the program, the library releases the GPIO pin.