Delete comment from: Ken Shirriff's blog
Hello,
I´m trying to create a remote control extention and use the both code together (IRreceive and IRsender).
Below is the code:
#include
int RECV_PIN = 11;
int RECP_VCC = 9;
int RECP_GND = 10;
IRrecv irrecv(RECV_PIN);
IRsend irsend;
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
//Included to use the Receptor directly on Arduino
pinMode(RECP_VCC, OUTPUT);
pinMode(RECP_GND, OUTPUT);
digitalWrite(RECP_VCC, HIGH);
digitalWrite(RECP_GND, LOW);
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irsend.sendNEC(results.value, 32);
delay(100);
irrecv.resume(); // Receive the next value
}
}
If I collect the value from the receiver and print it at serial works good. But if I try to send the code goes just once.
It´s impossible go away from de Sender code.
Can anybody help me?
Thanks.
Jul 9, 2014, 5:52:58 PM
Posted to A Multi-Protocol Infrared Remote Library for the Arduino

