im using the arduino remote library
here.
im programming on a Lattepanda with an arduino leonardo i think.
im just trying to run the simple irSendDemo.ino in the examples folder.
here it is:
/*
* IRremote: IRsendDemo - demonstrates sending IR codes with IRsend
* An IR LED must be connected to Arduino PWM pin 3.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
for (int i = 0; i < 3; i++) {
irsend.sendSony(0xa90, 12);
delay(40);
}
delay(5000); //5 second delay between each signal burst
}
it stops compiling and gives me the error message
"Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Leonardo"
In file included from IRsendDemo.ino:10:
C:\Users\lattepanda\Documents\Arduino\libraries\IRremote/IRremote.h:365: error: ISO C++ forbids initialization of member 'sendPin'
C:\Users\lattepanda\Documents\Arduino\libraries\IRremote/IRremote.h:365: error: making 'sendPin' static"
i looked through the irremote.h and irsend and they both dont have static variables and im not declaring any static variables so i have no idea why it would be doing this.
I am pretty sure its finding the library correctly. any suggestions? thanks