Simple test application for the STMicroelectronics X-NUCLEO-CCA01M1 Sound Terminal Expansion Board, built against mbed classic.

Dependencies:   X_NUCLEO_CCA01M1 ST_Events-old mbed

Fork of HelloWorld_CCA01M1_mbedOS by ST

Playing audio with the X-NUCLEO-CCA01M1 Expansion Board

This application provides a simple example of usage of the X-NUCLEO-CCA01M1 Sound Terminal Expansion Board, built against mbed classic.

It shows how to play a 2-channel stereo signal stored in an array of PCM samples directly on the speakers connected to the expansion board.

It also allows to stop/play the audio by pressing the user button on the Nucleo board.


Platform compatibility

  • This board can be currently used with a Nucleo-F401RE board only and has been tested with the default configuration provided by this example.
  • Please note that the main application makes use of the "events" library, which is not included into the "mbed" library.
  • The application built against mbed OS 5.x can be found here.

Files at this revision

API Documentation at this revision

Comitter:
Davidroid
Date:
Mon Apr 10 13:16:41 2017 +0000
Parent:
3:a047fe654239
Child:
5:ac729170df5f
Commit message:
Removed setting of PullUp mode in I2C initialization due to changes of default settings in mbed-os library.

Changed in this revision

X_NUCLEO_CCA01M1.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
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- a/X_NUCLEO_CCA01M1.lib	Thu Feb 23 17:08:52 2017 +0000
+++ b/X_NUCLEO_CCA01M1.lib	Mon Apr 10 13:16:41 2017 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/teams/ST/code/X_NUCLEO_CCA01M1/#097d364116d1
+https://developer.mbed.org/teams/ST/code/X_NUCLEO_CCA01M1/#edc4558a75b7
--- a/main.cpp	Thu Feb 23 17:08:52 2017 +0000
+++ b/main.cpp	Mon Apr 10 13:16:41 2017 +0000
@@ -131,10 +131,7 @@
     /*----- Initialization. -----*/
 
     /* Initializing I2C bus. */
-    DevI2C *dev_i2c = new DevI2C(
-        PB_9, PullUp,
-        PB_8, PullUp
-    );
+    DevI2C *dev_i2c = new DevI2C(PB_9, PB_8);
 
     /* Initializing Sound Terminal Component. */
 #ifndef USE_I2S2
--- a/mbed-os.lib	Thu Feb 23 17:08:52 2017 +0000
+++ b/mbed-os.lib	Mon Apr 10 13:16:41 2017 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#aa6d673d703a099b36d21ad879de7e28e9681cb4
+https://github.com/ARMmbed/mbed-os/#42be5c01a7f91292d5e27124ad9584236025f6ab