So, questions:
1) Is it not possible to use a pushbutton on an analog port?
2) What are the InterruptPort constructor values I need to use? Here is what I'm currently trying:
button1 = new InterruptPort(Pins.ONBOARD_SW1, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeHigh); button1.OnInterrupt += new NativeEventHandler(button_OnInterrupt); button2 = new InterruptPort(Pins.GPIO_PIN_A0, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeHigh); button2.OnInterrupt += new NativeEventHandler(button_OnInterrupt);
Like I say, button2 is totally sporadic. Thoughts?