I want to implement an ISR that performs a delay at the end before returning - to ensure that the remote IR triggering device has finished sending its codes (It repeats a variable mumber of times until it either receives a response from the controlled device - I am "sniffing the signal into that device - or it times-out after about 1.5 seconds).
The ISR will create a "windmill effect" with three concentric circles of twelve LEDS so I will need to implement delays with that as well.
I realise that "Delay" is unavailable during an ISR, so how do I achieve this?
I did think about disabling Interrupts at the start of the ISR, using "Delay" and then re-enabling interrupts but I don't know if that would work and I'm not sure I can work out how to do that
I also thought about polling the input pin, rather than using an interrupt, but as I am looking at a 38KHz encoded signal stream it could, in theory, miss the state change every time - so I thought I would use either an edge or a state-change interrupt (I've never used them before).
Simple (even if "belt and braces") responses preferred as I am still a novice with Arduino and I don't think like a programmer.
Thanks for any help...