Piezo Driver Click example.
Description
This example demonstrates the use of Piezo Driver Click board.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger.
Application Task
Plays the Imperial March melody. Also logs an appropriate message on the USB UART.
- Note
- The minimal PWM Clock frequency required for this example is the frequency of tone C6 - 1047 Hz. In order to run this example and play all tones correctly, the user will need to decrease the MCU's main clock frequency in MCU Settings for certain architectures in order to get the required PWM clock frequency.
- Author
- Stefan Ilic