| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Stop wasting time looking for files and revisions. Connect your Gmail, DriveDropbox, and Slack accounts and in less than 2 minutes, Dokkio will automatically organize all your file attachments. Learn more and claim your free account.

View
 

labbb6

Page history last edited by Benjamin Tee 8 years, 2 months ago

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

 

 

 

Comments (0)

You don't have permission to comment on this page.