blood pressure monitor
Dependencies: mbed wave_player mbed-rtos 4DGL-uLCD-SE SDFileSystem_OldbutworkswithRTOS
Diff: main.cpp
- Revision:
- 2:c2afd0c426af
- Parent:
- 1:5b8e223e983d
- Child:
- 3:621f4c21c8f1
--- a/main.cpp Thu Jan 24 02:59:05 2013 +0000 +++ b/main.cpp Tue Apr 18 13:00:09 2017 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" +#include "rtos.h" #include "SDFileSystem.h" #include "wave_player.h" @@ -13,8 +14,10 @@ int main() { FILE *wave_file; - printf("\n\n\nHello, wave world!\n"); + printf("\r\n\nHello, wave world!\n\r"); + Thread::wait(1000); wave_file=fopen("/sd/sample.wav","r"); + if(wave_file==NULL) printf("file open error!\n\n\r"); waver.play(wave_file); fclose(wave_file); } \ No newline at end of file