       log_e("enable bluedroid failed\n");
       return;
   }
+  while(!player.readyForData()) { delay(100); }
+  
+  // Turn on MP3
+  player.sciWrite(VS1053_REG_WRAMADDR, 0xC017);
+  player.sciWrite(VS1053_REG_WRAM, 3);
+  player.sciWrite(VS1053_REG_WRAMADDR, 0xC019);
+  player.sciWrite(VS1053_REG_WRAM, 0);
+
+  player.softReset();
+  player.sciWrite(VS1053_REG_AUDATA, 44101);
+  player.sciWrite(VS1053_REG_CLOCKF, 6 << 12);
+  
+  player.sciWrite(VS1053_REG_MODE, VS1053_MODE_SM_LINE1 | VS1053_MODE_SM_SDINEW);
 
   /* create application task */
   bt_app_task_start_up();
 
   /* Bluetooth device name, connection mode and profile set up */
   bt_app_work_dispatch(bt_av_hdl_stack_evt, 0, NULL, 0, NULL);
-
-
+  
 }
-
 void loop() {
   // put your main code here, to run repeatedly:
 }

  Serial.println(readbytes);
}

void bt_app_a2d(esp_a2d_cb_event_t event, esp_a2d_cb_param_t *param)
{
  if(once){
    player.playFullFile("/track001.mp3", &on_data_read);
    once = false;

#include "esp_a2dp_api.h"
#include "esp_avrc_api.h"
};
#define VS1053_DATA_SPI_SETTING     SPISettings(8000000, MSBFIRST, SPI_MODE0)
#define SCI_WRAMADDR 7
#define SCI_WRAM 6

#define VS1053_RESET   -1     // VS1053 reset pin (not used!)
// Feather M0 or 32u4
