I'm using the IRlib library with Arduino with a remote control and a receiver.
In the Serial monitor, I get a whole bunch of info about the button I pressed, including its value.
But what I want is to extract its value in order to use it to move stepper motors.
I just want t extract the value.
Here is the code.
#include <IRLib.h>
IRrecv receiver(11);
IRdecode decoder;
void setup(){
Serial.begin(9600);
receiver.enableIRIn();
}
void loop(){
if(receiver.GetResults(&decoder)){
decoder.decode();
decoder.DumpResults();
receiver.resume();
}
}
It is
my first project including an IR sensor, and I can't find detailed infos about the library.