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: SDFileSystem mbed
Diff: main.cpp
- Revision:
- 0:f6ba8cc58bf6
- Child:
- 1:864f2a1d0d88
--- /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