mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2025-12-12 17:36:15 +00:00
added isIdle Method for receiving, #48
This commit is contained in:
@@ -133,6 +133,13 @@ void IRrecv::blink13 (int blinkflag)
|
||||
if (blinkflag) pinMode(BLINKLED, OUTPUT) ;
|
||||
}
|
||||
|
||||
//+=============================================================================
|
||||
// Return if receiving new IR signals
|
||||
//
|
||||
bool IRrecv::isIdle ( )
|
||||
{
|
||||
return (irparams.rcvstate == STATE_IDLE || irparams.rcvstate == STATE_STOP) ? true : false;
|
||||
}
|
||||
//+=============================================================================
|
||||
// Restart the ISR state machine
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user