A wave player demo setup for the mbed application board. Reads a wave file from a USB flash drive, and outputs to the onboard speaker (very low volume) and the analog audio out jack that can be connected to a set of PC speakers for more volume. A wave file for the demo is available at http://mbed.org/media/uploads/4180_1/sample.wav. Copy it to the USB drive. See http://mbed.org/users/4180_1/notebook/application-board-waveplayer-demo/ for more details and instructions.
Dependencies: USBHost mbed wave_player_appbd
Fork of USBHostMSD_HelloWorld by
Diff: main.cpp
- Revision:
- 4:f8a5c8aa895a
- Parent:
- 2:3e3df7a79050
- Child:
- 9:f1aebfbe7e78
diff -r 17ca010bda2e -r f8a5c8aa895a main.cpp --- a/main.cpp Wed Mar 13 10:28:43 2013 +0000 +++ b/main.cpp Wed Mar 13 10:30:25 2013 +0000 @@ -15,8 +15,11 @@ Thread::wait(500); } + // in a loop, append a file + // if the device is disconnected, we try to connect it again while(1) { + // append a file FILE * fp = fopen("/usb/test1.txt", "a"); if (fp != NULL) {