Buzzer Sample
This sample demonstrates using the piezo sounder.
To run the sample:
Download the sample code from https://github.com/Turta-io/IoTHAT3/blob/master/Samples/Python/Buzzer.py
Copy the sample code to a folder on the Raspberry Pi.
Open terminal, and then go to the folder you copied the sample.
Run the sample with the following command:
Sample Code
Buzzer.py
Result
When you run the sample, it generates beep tones using the piezo sounder.
To stop the Python script, just press CTRL + C.
Last updated