I'm looking at the documentation here: https://github.com/abelectronicsuk/ABElectronics_Win10IOT_Libraries/tree/master/ABElectronics_Win10IOT_Libraries
Particularly this:
ReadInterruptStatus(byte port)
Enable interrupts for the selected pin <---- I'm guessing this is a typo
Parameters: port 0 = pins 1 to 8, port 1 = pins 8 to 16
Returns: status
ReadInterruptCapture(byte port)
Read the value from the selected port at the time of the last interrupt trigger
Parameters: port 0 = pins 1 to 8, port 1 = pins 8 to 16
Returns: status
What I could do with is some sort of example on how this works.
I have configured it so that the INT ports are mirrored and trigger a GPIO interrupt.
I presume I use one of the above commands to read the port status (so would then have to write a function to split it down to individual pin states).
Has anyone managed to achieve this and could give me some basic pointers on using these commands?
Thanks,
Richie