mp3

Dependencies:   SDFileSystem VS1053 mbed

Fork of mp3final by Chaiyaporn Boonyasathian

main.cpp

Committer:
csggreen
Date:
2017-12-09
Revision:
2:4c07da0b530b
Parent:
1:864f2a1d0d88

File content as of revision 2:4c07da0b530b:

#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 playerStatetype  playerState; 
extern char green; 



int main() {
    player.begin(); 
    while(1){

    player.playFile(list[green]);
    player.stop();
    player.playFile(list[green-1]);
    player.stop();
    player.playFile(list[green-2]);

   }
}