16 if(digitalPinToInterrupt(
pin) != NOT_AN_INTERRUPT)
18 Serial.println(
"Attaching ISR");
23 Serial.println(
"Attaching PC_ISR");
28 Serial.println(
"Not an interrupt pin!");
34 uint32_t currUS = micros();
53 if(delta > 8500 && delta < 9500)
65 else if(delta < 500 || delta > 700)
75 if(codeLength < 5300 && codeLength > 4800)
81 else if(codeLength < 3300 && codeLength > 2700)
91 if(codeLength < 1300 && codeLength > 900)
96 else if(codeLength < 2500 && codeLength > 2000)
void handleIRsensor(void)
volatile uint32_t risingEdge
volatile uint32_t lastReceiveTime
void handleIRsensor(void)
volatile uint32_t currCode
volatile uint32_t lastRisingEdge
volatile uint32_t fallingEdge
uint8_t digitalPinToPCInterrupt(uint8_t pin)
void attachPCInt(uint8_t pcInt, void(*pcisr)(void))
Attaches a function to a pin change interrupt.