IRremote - Bad IR receive code

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 ();

Did you look at the reference for the IRremote library? There were changes introduced in the newer versions (> 3.0). The reference explains the differences and how to change older code to work with the new versions.

Using the String class can cause memory problems. See the evils of Strings.

and can I change this to 32 bit HEX code?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.