Hey Guys,
I'm working on a project with IR and I'm trying to use a pretty extensive, current IR library. It can be found here:
GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols
When I attempt to load an example (I'm still trying to learn the library) I get the following error message:
"Arduino: 1.6.3 (Mac OS X), Board: "Arduino Uno"
Using library Robot IR Remote in folder: /Applications/Arduino.app/Contents/Java/libraries/RobotIRremote
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10603 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Applications/Arduino.app/Contents/Java/libraries/RobotIRremote/src /var/folders/s0/47hcgqc92wl7099m_857kqs40000gn/T/build5578383771192718155.tmp/IRrecord.cpp -o /var/folders/s0/47hcgqc92wl7099m_857kqs40000gn/T/build5578383771192718155.tmp/IRrecord.cpp.o
IRrecord.ino:25:1: error: 'IRsend' does not name a type
IRrecord.ino: In function 'void sendCode(int)':
IRrecord.ino:103:7: error: 'irsend' was not declared in this scope
IRrecord.ino:107:7: error: 'irsend' was not declared in this scope
IRrecord.ino:113:5: error: 'irsend' was not declared in this scope
IRrecord.ino:128:7: error: 'irsend' was not declared in this scope
IRrecord.ino:131:7: error: 'irsend' was not declared in this scope
IRrecord.ino:138:5: error: 'irsend' was not declared in this scope
Multiple libraries were found for "IRremote.h"
Used: /Applications/Arduino.app/Contents/Java/libraries/RobotIRremote
Not used: /Users/Andrew/Documents/Arduino/libraries/Arduino-IRremote-master
Error compiling.
So I realized that there was a conflict with two libraries called by the same name, in different directories. I removed the library from the .app directory, leaving the library I want to use in the /documents/arduino/libraries/IRRemote directory. Now, I get the following error message:
Arduino: 1.6.3 (Mac OS X), Board: "Arduino Uno"
Using library IRremote in folder: /Users/Andrew/Documents/Arduino/libraries/Arduino-IRremote-master
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10603 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/standard -I/Users/Andrew/Documents/Arduino/libraries/Arduino-IRremote-master /var/folders/s0/47hcgqc92wl7099m_857kqs40000gn/T/build8084166764060973196.tmp/IRrecord.cpp -o /var/folders/s0/47hcgqc92wl7099m_857kqs40000gn/T/build8084166764060973196.tmp/IRrecord.cpp.o
IRrecord.ino: In function 'void sendCode(int)':
IRrecord.ino:103:14: error: 'class IRsend' has no member named 'sendNEC'
IRrecord.ino:107:14: error: 'class IRsend' has no member named 'sendNEC'
IRrecord.ino:113:12: error: 'class IRsend' has no member named 'sendSony'
IRrecord.ino:128:14: error: 'class IRsend' has no member named 'sendRC5'
IRrecord.ino:131:14: error: 'class IRsend' has no member named 'sendRC6'
Error compiling.
It's a current library, with its most recent update 7 days ago. Anyone have any idea what these errors reference?
Thanks
Andy