#include <IRremote.h>
IRrecv sasu (11);
decode_results results;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
sasu.enableIRIn();
pinMode(8, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if(sasu.decode(&results)){
Serial.println(results.value,DEC);
sasu.resume();
}
delay(100);
long val = results.value;
if(val == 4294967295){
digitalWrite(8, HIGH);
}
}