arduino / Arduino

Arduino IDE 1.x
https://www.arduino.cc/en/software
Other
14.15k stars 7.01k forks source link

IRremote.h error in 1.6.0 & 1.6.1 #2791

Closed jmcos closed 9 years ago

jmcos commented 9 years ago

I get the following compilation error when referencing IRremote.h:

Arduino: 1.6.1 (Windows 7), Board: "Arduino Uno"

C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope

int RECV_PIN = TKD2; // the pin the IR receiver is connected to

            ^

Error compiling.

PaulStoffregen commented 9 years ago

This was supposed to be fixed in 1.6.1.

Can you please post a copy of the sketch you're compiling?

Are you absolutely certain you installed the IRremote library in a location Arduino can access?

jmcos commented 9 years ago

int receiverpin = 11;#include IRrecv irrecv(receiverpin); decode_results results;void setup() { Serial.begin(9600); irrecv.enableIRIn(); }void loop() { if (irrecv.decode(&results)) { Serial.print(results.value, HEX); Serial.print(" "); irrecv.resume(); }

---------- Original Message ---------- From: Paul Stoffregen notifications@github.com To: arduino/Arduino Arduino@noreply.github.com Cc: jmcos jmcosenza@juno.com Subject: Re: [Arduino] IRremote.h error in 1.6.0 & 1.6.1 (#2791) Date: Wed, 18 Mar 2015 21:19:22 -0700

This was supposed to be fixed in 1.6.1. Can you please post a copy of the sketch you're compiling? Are you absolutely certain you installed the IRremote library in a location Arduino can access? — Reply to this email directly or view it on GitHub.


Man, 63, Avoids Wrinkles 63 Yr Old Man Shares Simple DIY Skin Tightening Method He Uses At Home http://thirdpartyoffers.juno.com/TGL3131/550ad25f980e4525f34d7st04vuc

ffissore commented 9 years ago

It compiles fine with 1.6.1 and the latest IRRemote library from https://github.com/shirriff/Arduino-IRremote

ffissore commented 9 years ago

Actually, a final closing curly brace is missing, but, once added, it compiles fine

jmcos commented 9 years ago

Federico, I downloaded the latest IRRemote library from the website, unzipped it and placed the header file in the correct directory. The file is dated 3/10/2015 1:54 PM. I recompiled and got the same error. I opened IRremote.h and couldn't find TKD2. James

---------- Original Message ---------- From: Federico Fissore notifications@github.com To: arduino/Arduino Arduino@noreply.github.com Cc: jmcos jmcosenza@juno.com Subject: Re: [Arduino] IRremote.h error in 1.6.0 & 1.6.1 (#2791) Date: Thu, 19 Mar 2015 06:49:56 -0700

It compiles fine with 1.6.1 and the latest IRRemote library from https://github.com/shirriff/Arduino-IRremote — Reply to this email directly or view it on GitHub.


What's your flood risk? Find flood maps, interactive tools, FAQs, and agents in your area. http://thirdpartyoffers.juno.com/TGL3131/550b211d8fdfe211d2735st02duc

PaulStoffregen commented 9 years ago

What exactly do you mean by "and placed the header file in the correct directory"?

You're almost certainly installing IRremote incorrectly. You're supposed to unzip the whole thing into Documents/Arduino/libraries. In that folder is a small text file with instructions.

This isn't an issue with Arduino. Version 1.6.0 had trouble. 1.6.1 is fixed. This issue should be closed, and end-user tech support should be done via the forum.

agdl commented 9 years ago

Like @PaulStoffregen said should be closed and the issue should be discussed on the forum in case of necessity