mp3 play, wait and sync by semaphore *player thread *volume control thread
Dependencies: mbed VS1053-Semaphore VS1053b
main.cpp
- Committer:
- takashikojo
- Date:
- 2012-03-19
- Revision:
- 0:5c606d6342db
File content as of revision 0:5c606d6342db:
#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 ; } }