Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no matching function for call to 'IRsend::sendNEC(long int, int)' #3

Open
michaelheard opened this issue Mar 14, 2021 · 0 comments
Open

Comments

@michaelheard
Copy link

Working on Osoyoo robot car kit, Basic Lesson 16: IR Transmitting Module and IR Receiving Module. I attempted to verify the sketch, but I received the following error message. Is there something wrong with my my sketch or am I missing a library?

C:\Users\heard\AppData\Local\Temp\Temp1_IR_transmitting (2).zip\IR_transmitting\IR_transmitting.ino: In function 'void loop()':
IR_transmitting:10:30: error: no matching function for call to 'IRsend::sendNEC(long int, int)'
irsend.sendNEC(0xFF02FD, 32); //The code 'FF02FD' is the received infrared code
^
In file included from C:\Users\heard\Documents\Arduino\libraries\IRremote\src/IRremote.h:94:0,
from C:\Users\heard\AppData\Local\Temp\Temp1_IR_transmitting (2).zip\IR_transmitting\IR_transmitting.ino:1:
C:\Users\heard\Documents\Arduino\libraries\IRremote\src/IRremoteInt.h:380:10: note: candidate: void IRsend::sendNEC(uint16_t, uint8_t, uint_fast8_t, bool)
void sendNEC(uint16_t aAddress, uint8_t aCommand, uint_fast8_t aNumberOfRepeats, bool aIsRepeat = false);
^~~~~~~
C:\Users\heard\Documents\Arduino\libraries\IRremote\src/IRremoteInt.h:380:10: note: candidate expects 4 arguments, 2 provided
Multiple libraries were found for "IRremote.h"
Used: C:\Users\heard\Documents\Arduino\libraries\IRremote
Not used: C:\Users\heard\Documents\Arduino\libraries\Arduino-IRremote-master
exit status 1
no matching function for call to 'IRsend::sendNEC(long int, int)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant