Hello, everyone.
I would be very grateful if you could help me with this matter. I am a complete beginner and I'm just working through some tutorials. I suffered error "The function decode(&results)) is deprecated and may not work as expected! Just use decode() - without any parameter.". So I write code with reference to new version. Error is gone, but still LED light doesn't turn up. What should I do? I have no idea. Serial monitor prints
0
F30CBF00
Thanks.
How can I send 0xFD30CF code? And why my code send F30CBF00? I change code int F30CBF00 = 0; if(IrReceiver.decodedIRData.decodedRawData == F30CBF00) {
Then led light when push every remote button. But I want to turn on led only when I push 0 button.
If you are still seeing "F30CBF00" on the serial monitor, then, in the original code you posted, change this line: if(IrReceiver.decodedIRData.decodedRawData == 0xFD30CF) {
to if(IrReceiver.decodedIRData.decodedRawData == 0xF30CBF00) {
to see if it now behaves as you want.
If you still have difficulties, post the amended code and the results you see on the serial console.
State also what remote control device you are using to test it with.
If I push 0 button three times serial monitor prints
F30CBF00
0
F30CBF00
If I push 1,
EF10BF00
0
EF10BF00
If I push 2,
EE11BF00
0
EE11BF00
If I push 3,
ED12BF00
ED12BF00
ED12BF00
If I push 4,
EB14BF00
EB14BF00
0
If I push 5,
EA15BF00
EA15BF00
EA15BF00
If I push 6,
E916BF00
E916BF00
E916BF00
If I push 7,
E718BF00
E718BF00
E718BF00
If I push 8,
E718BF00
E718BF00
E718BF00
If I push 9,
E51ABF00
E51ABF00
E51ABF00.
I think they are not HEX code because 0's HEX code is 0xFD30CF.