labbb6


Part B

There are three notes. Low note, high note, the middle note

Part C

lyrics:

a)What A Little Bit Of Love Can Do - Jeff Bridges

b) If extension is mp3, the code plays all the songs. Because program checks the extension before including the file in the eeprom.

Change the 'song' code to save the current volume setting in your EEPROM and fetch and set that value during initialization.

EEPROM.write(521,mp3_vol);

void writee(){

void writee(){
  if(max_num_songs*max_name_len == 520){
    EEPROM.write(max_num_songs*max_name_len,mp3_vol);
  }
}

void readd(){
  if(max_num_songs*max_name_len == 520){
    vol = EEPROM.read(max_num_songs*max_name_len);
  }
}

 

I also modified added and modified some parts in the setup() function:

 

writee();
readd();

 

Mp3.volume(vol); //vol is a variable of type byte

videos

http://www.youtube.com/watch?v=WJDBvdxrmZc&feature=youtu.be

http://www.youtube.com/watch?v=dTe1rgB-ex4&feature=youtu.be