Hi, I have a problem with the IR receive code. In the past, when I had IRremote Library v.2.5.0, it show me this:
and now in the new IRremote library (v. 3.5.0), it shows me this (same program):
This is the code:
#include <IRremote.h>
int input_pin = 2;
IRrecv IRR (input_pin);
decode_results results;
void setup () {
Serial.begin (9600);
IRR.enableIRIn ();
Serial.print ("IR Ready ... @Pin");
Serial.println (input_pin);
}
void loop () {
if (IRR.decode (&results)) {
String code*zdôraznený text*= String(results.value, HEX);
IRR.resume ();
}
}