Go Down

Topic: irRemote - irSend simple demo not compiling. (Read 1 time) previous topic - next topic

roguehippo

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:
Code: [Select]
/*
 * 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

Robin2

Version 1.0.6 of the Arduino IDE is very old. Is there any reason you are not using the latest version?

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

roguehippo

I had not noticed that the version i was using was so old, im pretty new to this. I will update and see if that helps. thanks!

Go Up