Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SDFileSystem mbed
main.cpp
- Committer:
- csggreen
- Date:
- 2017-12-10
- Revision:
- 3:d629019b51b8
- Parent:
- 2:4c07da0b530b
File content as of revision 3:d629019b51b8:
#include "mbed.h"
#include "player.h"
//https://cdn-shop.adafruit.com/datasheets/vs1053.pdfหน้า19
Serial aa(D1, D0);
Player player;
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]);
}
}