mp3
Dependencies: SDFileSystem VS1053 mbed
Fork of mp3final by
Revision 2:4c07da0b530b, committed 2017-12-09
- Comitter:
- csggreen
- Date:
- Sat Dec 09 15:08:41 2017 +0000
- Parent:
- 1:864f2a1d0d88
- Commit message:
- green
Changed in this revision
VS1053.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/VS1053.lib Fri Dec 08 07:46:41 2017 +0000 +++ b/VS1053.lib Sat Dec 09 15:08:41 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/cha45689/code/VS1053/#58524d569dfd +https://os.mbed.com/users/csggreen/code/VS1053/#a59255e80c0d
--- a/main.cpp Fri Dec 08 07:46:41 2017 +0000 +++ b/main.cpp Sat Dec 09 15:08:41 2017 +0000 @@ -1,26 +1,27 @@ #include "mbed.h" #include "player.h" +//https://cdn-shop.adafruit.com/datasheets/vs1053.pdfหน้า19 +Serial aa(D1, D0); 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; - +extern playerStatetype playerState; +extern char green; + + + int main() { - player.begin(); - while(1) - { - player.playFile(list[index]); - index++; - player.playFile(list[index]); - index++; - player.playFile(list[index]); - - } + player.begin(); + while(1){ + + player.playFile(list[green]); + player.stop(); + player.playFile(list[green-1]); + player.stop(); + player.playFile(list[green-2]); + + } } \ No newline at end of file