Dear friends,
I want to detect both ON and OFF states of a GPIO pin by means of interrupts. Ideally, this would involve one event handler for ON (triggered by InterruptMode.InterruptEdgeLevelHigh) and a separate handler for OFF (InterruptMode.InterruptEdgeLevelLow). I looks like Netduino doesn't allow attaching two handlers to one pin. Port.InterruptMode.InterruptEdgeBoth might work but then how would I know whether the pin went high or low?
Suggestions?