Hi all, I have 2 interrupt buttons that I have plugged into a breakout board. the buttons are the same as the ones on the board itself that I stole out of an old DVD drive. They look to have a single power in and a ground.
What pins should I use to connect these buttons? I have tried AD5/6 and P1_1+P1_0 via the breakout board.
//slot 4 pin 6 and 7
private InterruptPort leftButton = new InterruptPort(Pin.P1_0, true, Port.ResistorMode.PullDown,
Port.InterruptMode.InterruptEdgeBoth);
private InterruptPort rightButton = new InterruptPort(Pin.P1_1, true, Port.ResistorMode.PullUp,
Port.InterruptMode.InterruptEdgeBoth);
//above throws an System.ArgumentException
I have also tried it on PWM/AD pins.
My question is what type of pin should I be connecting them to? I2C? COM? PWM? Analog?