ss
Dependencies: SDFileSystem VS1053 mbed
Diff: main.cpp
- Revision:
- 0:f6ba8cc58bf6
diff -r 000000000000 -r f6ba8cc58bf6 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Dec 02 19:39:41 2016 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "player.h" +Player player; +Ticker t; +Timer timer; + +extern char list[20][50]; //song list +extern unsigned char vlume; //vlume +extern unsigned char vlumeflag; //set vlume flag +extern char index; //song play index +extern char index_MAX; //how many song in all +extern playerStatetype playerState; + +int falltime; + +int main() { + player.begin(); + while(1) + { + player.playFile(list[index]); + + } +} \ No newline at end of file