Example of using the SOMO-14D and the created libraries.
Dependencies: MessageQueue SOMO14D includes mbed
Application
This application uses SOMO-14D and STM32F030R8 nucleo board for testing the audio module.
A microcontroller is used to act as a serial commander between the Computer and the audio module.
Simple commands are used to proceed and make actions like:
- play
- pause
- stop and low power pode
- previous song
- next song
- volume up
- volume down
Check the wikis of this application and the library wiki for more reference.
Revision 1:e666958b0e85, committed 2015-03-15
- Comitter:
- issaiass
- Date:
- Sun Mar 15 16:57:17 2015 +0000
- Parent:
- 0:b9c385255fc8
- Commit message:
- Added to the help list the STOP command description
Changed in this revision
SOMO14D.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b9c385255fc8 -r e666958b0e85 SOMO14D.lib --- a/SOMO14D.lib Fri Mar 13 01:13:35 2015 +0000 +++ b/SOMO14D.lib Sun Mar 15 16:57:17 2015 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/issaiass/code/SOMO14D/#41f21e0cf86f +http://developer.mbed.org/users/issaiass/code/SOMO14D/#673ecbaff67b
diff -r b9c385255fc8 -r e666958b0e85 main.cpp --- a/main.cpp Fri Mar 13 01:13:35 2015 +0000 +++ b/main.cpp Sun Mar 15 16:57:17 2015 +0000 @@ -22,6 +22,7 @@ * List of available commands: * p play the current song * h hold the current song +* s stop the current song and go to low power mode * n play the next song in the queue * r play the previous song in the queue * a <num> set audio to a specific song, 511 > num > 0 @@ -35,6 +36,7 @@ * 09 03 15 Created. * 09 03 15 Modified. * 12 03 15 Import to mbed platform. +* 15 03 15 Added to the help list the STOP command description ******************************************************************************* */ @@ -167,6 +169,7 @@ MsgPutLine((INT8U *)"List of available commands:\r"); MsgPutLine((INT8U *)"p play the current song\r"); MsgPutLine((INT8U *)"h hold the current song\r"); + MsgPutLine((INT8U *)"s stop the current song\r"); MsgPutLine((INT8U *)"n play the next song in the queue\r"); MsgPutLine((INT8U *)"r play the previous song in the queue\r"); MsgPutLine((INT8U *)"a <num> set audio to a specific song, 511 > num > 0\r");