Ababox 004 Decoding Remote signals

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
petran1420
 
Posts: 93
Joined: Fri Jan 08, 2016 9:28 pm

Ababox 004 Decoding Remote signals

Post by petran1420 »

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

  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?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Ababox 004 Decoding Remote signals

Post by adafruit_support_mike »

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

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

Re: Ababox 004 Decoding Remote signals

Post by petran1420 »

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!!

Locked
Please be positive and constructive with your questions and comments.

Return to “AdaBox! Show us what you made!”