I am new to Arduino and programming, I tried to assemble a Nano using TSOP1838 IR Receiver to build a Remote controlled switch. I have used the <IRremote.h> library. I have changed the HEX code of the original programme with the HEX code of my remote control.
When I try to operate the circuit, I get the error message "CC40F862' was not declared in this scope" where "CC40F862" is my remote control HEX code.
Hi Moiez,
Welcome to the forum! I have a tutorial for something similar. It explains how to add IR codes in your Arduino code. You can find it here. Read the "Code Changing for IR Receiver Arduino" section. Basically, the hex numbers have to be translated into binary before being used in your code. I have the link to a converter on my tutorial, but you could also look it up.
Please post your code. To make sure that you know how to post code using code tags, please read How to get the best out of this forum if you haven't done so yet.
Without seeing the code, I guess that CC40F862 needs to be 0xCC40F862.