Offline
Jr. Member
Karma: 0
Posts: 52
|
 |
« on: February 24, 2013, 01:46:42 am » |
Hello, I have been trying to use an IR remote i have with my arduino but i have run into a problem. I am trying to use the IRremote library to figure out what my remote is sending to the arduino. After putting the IRremote file into my libraries folder, i include the library but then an error comes up when i try to verify. It says
C:\Program Files (x86)\arduino-1.0.3\libraries\IRremote\IRremote.cpp:271: error: 'volatile struct irparams_t' has no member named 'rawlen'
and basically that over and over but with different file names. Did i mess up somehow?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #1 on: February 24, 2013, 04:00:50 am » |
How to use this forumCan you post your code please?
|
|
|
|
|
Logged
|
|
|
|
|
NE PA
Offline
Full Member
Karma: 5
Posts: 149
|
 |
« Reply #2 on: February 24, 2013, 12:23:07 pm » |
Did you restart the IDE?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 316
Posts: 35521
Seattle, WA USA
|
 |
« Reply #3 on: February 24, 2013, 12:44:24 pm » |
User downloaded libraries do NOT go in the core library folder.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 52
|
 |
« Reply #4 on: February 24, 2013, 01:00:27 pm » |
Here is my code / example 32.1 - IR receiver code repeater // http://tronixstuff.com/tutorials > chapter 32 // based on code by Ken Shirriff - http://arcfn.com #include <IRremote.h> // use the library int receiver = 11; // pin 1 of IR receiver to Arduino digital pin 11 IRrecv irrecv(receiver); // create instance of 'irrecv' decode_results results; void setup() { Serial.begin(9600); // for serial monitor output irrecv.enableIRIn(); // Start the receiver } void loop() { if (irrecv.decode(&results)) // have we received an IR signal? { Serial.println(results.value, HEX); // display it on serial monitor in hexadecimal irrecv.resume(); // receive the next value } // Your loop can do other things while waiting for an IR command } I did restart my IDE but it still does not work. If user downloaded libraries don't go into the core library folder, then where does it go?
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 316
Posts: 35521
Seattle, WA USA
|
 |
« Reply #5 on: February 24, 2013, 01:09:17 pm » |
If user downloaded libraries don't go into the core library folder, then where does it go? In the libraries folder in the folder where sketches are stored.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #6 on: February 24, 2013, 03:15:12 pm » |
If user downloaded libraries don't go into the core library folder, then where does it go?
http://arduino.cc/en/Guide/Libraries
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 52
|
 |
« Reply #7 on: February 24, 2013, 05:11:26 pm » |
I moved the IRremote library file into Documents\Arduino\libraries and then tried again, but i still get the same error.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 316
Posts: 35521
Seattle, WA USA
|
 |
« Reply #8 on: February 24, 2013, 05:44:27 pm » |
I am trying to use the IRremote library The IRremote library? Which one?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 52
|
 |
« Reply #9 on: February 24, 2013, 06:25:23 pm » |
I mean the file that I downloaded.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #10 on: February 24, 2013, 06:30:47 pm » |
<sigh>
Which file? And don't reply "the one on my computer". What is the link to it?
Did you restart the IDE after moving it?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 316
Posts: 35521
Seattle, WA USA
|
 |
« Reply #12 on: February 24, 2013, 07:34:06 pm » |
Same code I have. Compiles and links (and works) on Arduino 1.0.3.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 52
|
 |
« Reply #13 on: February 24, 2013, 07:41:15 pm » |
All i have to do is download the file, unzip it, and put it into documents/arduino/libraries, then open up the IDE right?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Melbourne, Australia
Offline
Shannon Member
Karma: 219
Posts: 13896
Lua rocks!
|
 |
« Reply #14 on: February 24, 2013, 07:52:23 pm » |
The whole folder, yes. Is this how you have it set up? 
|
|
|
|
|
Logged
|
|
|
|
|
|