wvmarle:
I would consider using two interrupts: a RISING and a FALLING - or even simply a CHANGE followed by detection of what happened - as you need to know both the pulse length and the time between the two pulses, this for the double pulse detection.
I red some examples on how to use RISING and FALLING interrupts and I could understand some of their applications. I could figure out that those interrupts help me detect the change of the state of the input, but I couldn't find how to enter the timing issue. Could you please write some code in order to make your point clearer?
thank you.