This sample will play a ".wav" file of the USB root folder. Only RIFF format.
Fork of GR-PEACH_Audio_WAV by
Homepage
Audio sample for GR-PEACH or GR-LYCHEE. This sample will play a ".wav" file in the root of USB memory or SD card. If the USER_BUTTON0 is pressed, the next song is played.
The default setting of serial communication (baud rate etc.) in mbed is shown the following link.
Please refer to the link and change the settings of your PC terminal software.
The default value of baud rate in mbed is 9600, and this application uses baud rate 9600.
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication
Please refer to following link about Audio/Camera Shield.
https://developer.mbed.org/teams/Renesas/wiki/Audio_Camera-shield
For GR-PEACH:
Format | Wav file (RIFF format) ".wav" |
Channel | 2ch |
Frequencies | 32kHz, 44.1kHz, 48kHz, 88.2kHz and 96kHz |
Quantization bit rate | 16bits, 24bits and 32bits |
For GR-LYCHEE:
Format | Wav file (RIFF format) ".wav" |
Channel | 2ch |
Frequencies | 32kHz, 44.1kHz and 48kHz |
Quantization bit rate | 16bits |
- Use USB0 of PEACH:
If you use the USB0 as USB Host, please close GR-PEACH's JP3.
Please select USB0 connector by the following configuration.
mbed_app.json
{ "config": { "usb-host-ch":{ "help": "(for GR-PEACH) 0:ch0 1:ch1", "value": "0" }, "audio-camera-shield":{ "help": "(for GR-PEACH) 0:not use 1:use", "value": "0" } } }
- Use USB1 of GR-PEACH:
If you use the USB1 as USB Host, please close Audio/Camera Shield's JP1.
Please select Audio/Camera Shield and USB1 connector by the following configuration.
mbed_app.json
{ "config": { "usb-host-ch":{ "help": "(for GR-PEACH) 0:ch0 1:ch1", "value": "1" }, "audio-camera-shield":{ "help": "(for GR-PEACH) 0:not use 1:use", "value": "1" } } }