ss

Dependencies:   SDFileSystem VS1053 mbed

Committer:
cha45689
Date:
Fri Dec 02 19:39:41 2016 +0000
Revision:
0:f6ba8cc58bf6
ss

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cha45689 0:f6ba8cc58bf6 1 #include "mbed.h"
cha45689 0:f6ba8cc58bf6 2 #include "player.h"
cha45689 0:f6ba8cc58bf6 3 Player player;
cha45689 0:f6ba8cc58bf6 4 Ticker t;
cha45689 0:f6ba8cc58bf6 5 Timer timer;
cha45689 0:f6ba8cc58bf6 6
cha45689 0:f6ba8cc58bf6 7 extern char list[20][50]; //song list
cha45689 0:f6ba8cc58bf6 8 extern unsigned char vlume; //vlume
cha45689 0:f6ba8cc58bf6 9 extern unsigned char vlumeflag; //set vlume flag
cha45689 0:f6ba8cc58bf6 10 extern char index; //song play index
cha45689 0:f6ba8cc58bf6 11 extern char index_MAX; //how many song in all
cha45689 0:f6ba8cc58bf6 12 extern playerStatetype playerState;
cha45689 0:f6ba8cc58bf6 13
cha45689 0:f6ba8cc58bf6 14 int falltime;
cha45689 0:f6ba8cc58bf6 15
cha45689 0:f6ba8cc58bf6 16 int main() {
cha45689 0:f6ba8cc58bf6 17 player.begin();
cha45689 0:f6ba8cc58bf6 18 while(1)
cha45689 0:f6ba8cc58bf6 19 {
cha45689 0:f6ba8cc58bf6 20 player.playFile(list[index]);
cha45689 0:f6ba8cc58bf6 21
cha45689 0:f6ba8cc58bf6 22 }
cha45689 0:f6ba8cc58bf6 23 }