mp3

Dependencies:   SDFileSystem VS1053 mbed

Fork of mp3final by Chaiyaporn Boonyasathian

Committer:
csggreen
Date:
Fri Dec 08 07:46:41 2017 +0000
Revision:
1:864f2a1d0d88
Parent:
0:f6ba8cc58bf6
Child:
2:4c07da0b530b
hh

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 int falltime;
cha45689 0:f6ba8cc58bf6 14
cha45689 0:f6ba8cc58bf6 15 int main() {
cha45689 0:f6ba8cc58bf6 16 player.begin();
cha45689 0:f6ba8cc58bf6 17 while(1)
cha45689 0:f6ba8cc58bf6 18 {
csggreen 1:864f2a1d0d88 19 player.playFile(list[index]);
csggreen 1:864f2a1d0d88 20 index++;
csggreen 1:864f2a1d0d88 21 player.playFile(list[index]);
csggreen 1:864f2a1d0d88 22 index++;
csggreen 1:864f2a1d0d88 23 player.playFile(list[index]);
cha45689 0:f6ba8cc58bf6 24
cha45689 0:f6ba8cc58bf6 25 }
cha45689 0:f6ba8cc58bf6 26 }