Go Down

Topic: Can I use this digital IR transmitter to control the robot? (Read 1 time) previous topic - next topic

PaulS

There's a library linked on the transmitter page. What results did you get when you ran the examples?

creativen


There's a library linked on the transmitter page. What results did you get when you ran the examples?

I ran the example after installing the library:
Here is the sample I ran:
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()
{
  Serial.begin(9600);
}

void loop() {
  if (Serial.read() != -1) {
    for (int i = 0; i < 3; i++) {
      irsend.sendSony(0xa90, 12); // Sony TV power code
      delay(100);
    }
  }
}


I use Arduino 1.0.1 but It display errors:
D:\Final Project\arduino-1.0.1]libraries]IRremote\IRremote.cpp:529:error: 'volatile struct irparams_t' has no member named 'rawlen'

But it works when I use Arduino 0023.

How can I fix these error in Arduino 1.0.1 since my projects is about to use Arduino 1.0 higher.

PaulS

My first question is why you put a user-downloaded library in the Arduino library directory. That is NOT where it goes.

creativen


My first question is why you put a user-downloaded library in the Arduino library directory. That is NOT where it goes.


so where I should put this?
But it works in Arduino 0023.

Go Up