audioamp2  2.0.0.0
Functions
main.c File Reference

Audio Amp 2 Click example. More...

#include "board.h"
#include "log.h"
#include "audioamp2.h"

Functions

void application_init (void)
 
void application_task (void)
 
void main (void)
 

Detailed Description

Audio Amp 2 Click example.

Description

This application amplifies the sound on the speakers.

The demo application is composed of two sections :

Application Init

Initializes GPIO driver and puts device in Standby Mode as default operation mode and selects 20dB as default gain selection.

Application Task

Activates Mute operation mode for 4 seconds and after that activates Play mode. When the device is in Play mode then changes the gain selection, first sets the minimum gain (20dB) for 8 seconds and then sets the maximum gain (32dB) for 8 seconds too.

note: Internally, the gain is set by changing the feedback resistors of the amplifier.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void  )

◆ application_task()

void application_task ( void  )

◆ main()

void main ( void  )