volume2 2.0.0.0
|
Volume 2 Click is a compact add-on board that provides the user with complete digital volume control. This board features the NJU72341, a 2-channel I2C configurable electronic volume IC with external mute control from NJRC.
We provide a library for the Volume2 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
This library contains API for Volume2 Click driver.
volume2_cfg_setup
Config Object Initialization function. volume2_init
Initialization function. volume2_default_cfg
Click Default Configuration function. volume2_update_vol_data
This function updates the volume by using direct defined structure options. volume2_device_mute
This function is used to set mute on or off by controlling the mte pin. volume2_generic_write
This function writes a desired number of data bytes starting from the selected register by using I2C serial interface. This example shows how Volume 2 click board can be used
for controlling the audio channels. Thanks to this, a simple audio effect is created by switching volume from right to left and vice versa.
The demo application is composed of two sections :
UART LOG and I2C drivers are initialized, following the
default configuration. By default, both channels are set to 9 dB gain with zero cross detection enabled.
The task performs and effect of switching the volume
from right to left channel and vice versa. Like playing ping-pong with the sound.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on mikroE github account.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all Mikroelektronika compilers.