Hello,
I’ve a problem with my code :
/*
Example for different sending methods
http://code.google.com/p/rc-switch/
*/
#include <RCSwitch.h>
#include <IRremote.h>
RCSwitch mySwitch = RCSwitch();
IRrecv irrecv(5);
decode_results results;
void setup() {
Serial.begin(9600);
irrecv.enableIRIn();
mySwitch.enableTransmit(6);
mySwitch.setProtocol(2);
}
void loop() {
mySwitch.send(543692032, 32); //Light on
delay(3000);
mySwitch.send(677909760, 32); //Light off
delay(3000);
}
Why this code doesn’t work with irrecv.enableIRIn() and work without ?
Any Idea ?
ps:sorry for my bad english, i’m french