djxom
1
Hi Guys,
Today I tried to read and send signals via an infrared receiver and transmitter. Everything went well except for sending. Then there was this message:
Thank you for using the IRremote library!
It seems, that you are using a old version 2.0 code / example.
This version is no longer supported!
Please use one of the new code examples from the library,
available at "File > Examples > Examples from Custom Libraries / IRremote".
Start with the SimpleReceiver or SimpleSender example.
The examples are documented here:
GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols
A guide how to convert your 2.0 program is here:
GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols
Thanks
The code is from this Video: https://www.youtube.com/watch?v=bketb8PZtuQ&t=208s
Now I understand almost 0 of the code examples and I can't find anything about it on GitHub. Many thanks for your trouble.
Welcome to the forum
There are changes to the functions between version 2 and version 4 of the IRremote library
If the code that you are using was written for version 2 then there is a chance that it will not work with version 4 of the library and vice versa
Which version of the IDE and which version of the IRremote library do you have installed ?
Have you tried the examples that come with the library ?
djxom
3
Ok I found a solution thanks
Please share it for the benefit of others reading this topic
djxom
5
I have downgrade the Version. I dont need the new version. I didn't know it was possible, but now it works. It´s ok for me 
Afdal
6
It would be nice to get the 4.0 version, given the 2.0 below:
#include "IRremote.h"
#define receiverPin 2
IRrecv irrecv(receiverPin); //create instance of 'irrecv'
decode_results results; //create instand of 'decode_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
}
delay(100);
}
system
Closed
7
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.