add isIdle() method

Add isIdle() method to check if interrupt is receiving a new IR code. If
idle someone could start a long time critical code with a noInterrupts()
block.