Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FatFileSystem mbed
Fork of WAVEplayer by
Diff: main.cpp
- Revision:
- 1:d80e2eee325a
- Parent:
- 0:4cda52c0c66e
--- a/main.cpp Sat Jan 02 17:07:38 2010 +0000 +++ b/main.cpp Mon Feb 09 16:04:37 2015 +0000 @@ -1,14 +1,13 @@ #include "mbed.h" #include "SDFileSystem.h" -AnalogOut DACout(p18); +AnalogOut DACout(A5); DigitalOut led1(LED1); DigitalOut led2(LED2); DigitalOut led3(LED3); -DigitalOut led4(p8); DigitalOut digout(LED4); Ticker tick; -SDFileSystem sd(p11, p12, p13, p14, "sd"); +SDFileSystem sd(PTD6, PTD7, PTD5, PTD4, "sd"); #define SAMPLE_FREQ 40000 #define BUF_SIZE (SAMPLE_FREQ/10) @@ -68,7 +67,7 @@ DAC_wptr=4; DAC_on=0; - led1=led2=led3=led4=0; + led1=led2=led3=0; printf("Playing wave file '%s'\n",wavname);