We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2019-08-01
Package Version: 1.0.0.1
mikroSDK Library: 1.0.0.0
Category: BT/BLE
Downloaded: 3606 times
Not followed.
License: MIT license
If you are getting tired of all those cables you need just to listen to your favorite song over speakers, what you need is BT Audio click with Microchip’s RN52 Bluetooth audio module. With onboard 3.5mm jacks for both a microphone and a speaker, this is a complete solution for streaming audio from a smartphone or PC over a wireless connection.
Do you want to subscribe in order to receive notifications regarding "BT Audio click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "BT Audio click" changes.
Do you want to report abuse regarding "BT Audio click".
Library Description
The library covers all the necessary functions to control BT Audio Click board.
Key functions:
void btaudio_uartWrite( uint8_t *txData )
- UART write data function.BTAUDIO_STATUS_T btaudio_increaseVolume()
- Increase volume function.BTAUDIO_STATUS_T btaudio_nextTrack()
- Play next track function.Examples description
The application is composed of the three sections :
void applicationTask() { char receivedData; if ( UART_Rdy_Ptr() ) { receivedData = UART_Rd_Ptr(); switch ( receivedData ) { case '+' : { btaudio_increaseVolume(); mikrobus_logWrite( " - Volume Up -", _LOG_LINE ); break; } case '-' : { btaudio_decreaseVolume(); mikrobus_logWrite( " - Volume Down -", _LOG_LINE ); break; } case '>' : { btaudio_nextTrack(); mikrobus_logWrite( "--------------------", _LOG_LINE ); mikrobus_logWrite( " Next Track ", _LOG_LINE ); mikrobus_logWrite( "--------------------", _LOG_LINE ); break; } case '<' : { btaudio_previousTrack(); mikrobus_logWrite( "--------------------", _LOG_LINE ); mikrobus_logWrite( " Previous Track ", _LOG_LINE ); mikrobus_logWrite( "--------------------", _LOG_LINE ); break; } case '*' : { btaudio_pausePlayTrack(); mikrobus_logWrite( "--------------------", _LOG_LINE ); mikrobus_logWrite( " Play/Pause Track ", _LOG_LINE ); mikrobus_logWrite( "--------------------", _LOG_LINE ); break; } } } }
Other mikroE Libraries used in the example:
UART
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.