mp3 play, wait and sync by semaphore *player thread *volume control thread
Dependencies: mbed VS1053-Semaphore VS1053b
Diff: main.cpp
- Revision:
- 0:5c606d6342db
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 19 12:12:24 2012 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "rtos.h" + +extern void main_mp3(void const *) ; +DigitalOut led1(LED1); + +int main() { + + Thread t(main_mp3 , NULL, osPriorityNormal, (DEFAULT_STACK_SIZE * 2.25)); + + while (true) { + led1 = 1 ; + Thread::wait(1000); + led1 = 0 ; + } +} \ No newline at end of file