ss

Dependencies:   SDFileSystem VS1053 mbed

main.cpp

Committer:
cha45689
Date:
2016-12-02
Revision:
0:f6ba8cc58bf6

File content as of revision 0:f6ba8cc58bf6:

#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]); 
   
    }
}