mp3

Files at this revision

API Documentation at this revision

Comitter:
csggreen
Date:
Sun Dec 10 07:14:12 2017 +0000
Parent:
2:a59255e80c0d
Child:
4:5b1bd3cca8dc
Child:
7:64befc5be354
Commit message:
use this

Changed in this revision

player.cpp Show annotated file Show diff for this revision Revisions of this file
player.h Show annotated file Show diff for this revision Revisions of this file
--- a/player.cpp	Sat Dec 09 15:07:27 2017 +0000
+++ b/player.cpp	Sun Dec 10 07:14:12 2017 +0000
@@ -5,7 +5,6 @@
 vs10xx vs1053(D11, D12, D13, D6, D7, D2, D8);//mosi,miso,sclk,xcs,xdcs,dreq,xreset
 Serial pc(USBTX, USBRX);
 playerStatetype  playerState;
-ctrlStatetype ctrlState;
 static unsigned char fileBuf[32768];
 unsigned char *bufptr;
 char green;
@@ -46,6 +45,8 @@
 		dir->closedir();
 }
 
+
+
 void Player::stop(void){
     playerState =PS_STOP;
     }
--- a/player.h	Sat Dec 09 15:07:27 2017 +0000
+++ b/player.h	Sun Dec 10 07:14:12 2017 +0000
@@ -8,17 +8,6 @@
   PS_PLAY,         // Start to player                                                                    
 } playerStatetype;
 
-/** Control states definations. */
-volatile typedef enum
-{
-  CS_EMPTY = 0,      // Have no control                                     
-  CS_PLAYPAUSE,      // Play/pause button pressed                     
-  CS_RECORDING,      // Play/pause button long pressed               
-  CS_UP,             // Up button pressed                                                          
-  CS_DOWN,           // Down button pressed                                                       
-  CS_NEXT,           // Right button pressed                                                      
-  CS_PREV,           // Left button pressed                                                       
-} ctrlStatetype;
 
 class Player
 {