mp3

Dependencies:   SDFileSystem VS1053 mbed

Fork of mp3final by Chaiyaporn Boonyasathian

main.cpp

Committer:
csggreen
Date:
2017-12-08
Revision:
1:864f2a1d0d88
Parent:
0:f6ba8cc58bf6
Child:
2:4c07da0b530b

File content as of revision 1:864f2a1d0d88:

#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]);
          index++;
          player.playFile(list[index]);
          index++;
          player.playFile(list[index]);
   
    }
}