Arduino Forum
>
Using Arduino
>
Sensors
>
IR Reciever deprecation error
Print
Go Down
Pages:
[1]
Topic: IR Reciever deprecation error
(Read 133 times)
previous topic
-
next topic
needlebeard
Newbie
Posts: 1
Karma: 0
[add]
IR Reciever deprecation error
Feb 02, 2021, 08:05 pm
I am trying to map the hex code of the buttons on my remotes and have code widely used for this project. However once I run the project on my Arduino Uno, I get an error "The function decode(&results)) is deprecated and may not work as expected! Just use decode() - without any parameter.". Following these instructions, no error occurs at compile but when I press a button on any of my remotes 0 is all that prints out.
pylon
Shannon Member
Posts: 13,114
Karma: 689
[add]
Re: IR Reciever deprecation error
#1
Feb 03, 2021, 04:09 pm
Never, never post code as an image!
Remove the locally devined results variable and use irrecv.results instead.
Print
Go Up
Pages:
[1]
Loading...