Code of IR remote

Hello everyone,

I’m very new to arduino and I just ordered the arduino starter kit (KIT DE DÉMARRAGE POUR ARDUINO® - SAS Electronic Loisirs Angers Sono Angers Music Store)

I’ve tried to determine the code of the IR remote that is delivered with it, using the code that is given in the manual :

#include "IRremote.hpp"
int RECV_PIN = 12; // define input pin on Arduino
IRrecv irrecv (RECV_PIN);
decode_results results;


void setup ()
{
Serial.begin (9600);
irrecv.enableIRIn (); // Start the receiver
}

void loop () {
if (irrecv.decode (& results)) {
Serial.println (results.value, HEX);

irrecv.resume (); // Receive the next value

}
}

But when I press any button only “FFFFFF” appears
Has it ever happened to anyone ? Is this linked to the remote or to the script ?

By advance thank you :slight_smile: