Buzz3 Click example.
Description
This example demonstrates the use of Buzz 3 click boards with PAM8904 for play the Imperial March. PAM8904 is piezo-sounder driver with an integrated Multi-Mode charge pump boost converter from Diodes Incorporated.
The demo application is composed of two sections :
Application Init
Initializes GPIO, set AN and RST pin as outputs, begins to write a log. Initialization driver enables - GPIO and configures the appropriate MCU pin for sound generation, also write log.
Application Task
Plays the Imperial March melody. Also logs an appropriate message on the USB UART.
Additional Functions :
- Note
- The minimal PWM Clock frequency required for this example is the frequency of tone C6 - 1047 Hz. So, 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 the certain architectures in order to get the required PWM clock frequency.
- Author
- Jelena Milosavljevic