I'm trying to use the IR code at GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols. I'm having no luck compiling the examples. Compiling IRrecvDumpV2.ino gives me this error:
Arduino: 1.6.6 (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp: In member function 'int IRrecv::decode(decode_results*)':
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:459:12: error: 'ERR' was not declared in this scope
return ERR;
^
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:573:12: error: 'DECODED' was not declared in this scope
return DECODED;
^
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:577:10: error: 'ERR' was not declared in this scope
return ERR;
^
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp: In member function 'long int IRrecv::decodeHash(decode_results*)':
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:1308:12: error: 'ERR' was not declared in this scope
return ERR;
^
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:1319:10: error: 'DECODED' was not declared in this scope
return DECODED;
^
exit status 1
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Compiling IRrecvDump.ino gives me this error:
Arduino: 1.6.6 (Windows 10), Board: "Arduino/Genuino Uno"
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp: In member function 'int IRrecv::decode(decode_results*)':
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:459:12: error: 'ERR' was not declared in this scope
return ERR;
^
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:573:12: error: 'DECODED' was not declared in this scope
return DECODED;
^
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:577:10: error: 'ERR' was not declared in this scope
return ERR;
^
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp: In member function 'long int IRrecv::decodeHash(decode_results*)':
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:1308:12: error: 'ERR' was not declared in this scope
return ERR;
^
C:\Users\ken\Documents\Arduino\libraries\IRremote\IRremote2.cpp:1319:10: error: 'DECODED' was not declared in this scope
return DECODED;
^
exit status 1
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Ideas?