0

Ababox 004 Decoding Remote signals
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Ababox 004 Decoding Remote signals

by petran1420 on Sat Jan 20, 2018 11:03 pm

Hi there,

IR newbie here, and I'm having fun programming different mp3s into the example code for the IR remote control example in adabox 004, but I have a question. The code currently has 3 'slots' where I can load up mp3s:
Code: Select all | TOGGLE FULL SIZE
  if (results.value == 0xFD08F7) {
       musicPlayer.stopPlaying();
       Serial.println("playing track #1");
       musicPlayer.startPlayingFile("youlikth.mp3");
    }
    if (results.value == 0xFD8877) {
       musicPlayer.stopPlaying();
       Serial.println("playing track #2");
       musicPlayer.startPlayingFile("howliknw.mp3");
    }
    if (results.value == 0xFD48B7) {
       musicPlayer.stopPlaying();
       Serial.println("playing track #3");
       musicPlayer.startPlayingFile("airhornz.mp3");
    }


I'd like to load more mp3s into buttons 4-9 on the included remote, but how do I figure out what the results.value== ??????? is for each button?

petran1420
 
Posts: 93
Joined: Fri Jan 08, 2016 9:28 pm

Re: Ababox 004 Decoding Remote signals

by adafruit_support_mike on Sun Jan 21, 2018 1:20 am

The code from this page in the Learning System has a list of all the button codes:

https://learn.adafruit.com/using-an-inf ... -with-ir-1

adafruit_support_mike
 
Posts: 50758
Joined: Thu Feb 11, 2010 2:51 pm

Re: Ababox 004 Decoding Remote signals

by petran1420 on Sun Jan 21, 2018 10:01 am

The code from this page in the Learning System has a list of all the button codes:

https://learn.adafruit.com/using-an-inf ... -with-ir-1


Thank you!!

petran1420
 
Posts: 93
Joined: Fri Jan 08, 2016 9:28 pm

Please be positive and constructive with your questions and comments.