Buzzer Button Sample
This application demonstrates button reading and tone playing functions of the module.
To run the example:
Open the IoT Node Buzzer Button sketch from the examples menu.
Select Turta IoT Node from Tools > Board menu.
Select your device's COM port from Tools > Port menu.
Open Serial Monitor from Tools > Serial Monitor.
Select 115.200 baud from the Serial Monitor's status bar.
Upload the code to your device.
Sample Code
Result
After the application is uploaded to the device, it generates different tones when the button is pressed and released. The application also writes the following output to the serial monitor:
The application runs forever until you clear it from memory.
Last updated