Hi All,
Having a strange issue again with the ND3.
This code worked fine on my ND+ but will not work on my ND3
public static InterruptPort button = new InterruptPort(Pins.GPIO_PIN_D0, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLevelHigh); public static void Main() { try { button.OnInterrupt += new NativeEventHandler(button_OnInterrupt); } catch (Exception EX) { Debug.Print(EX.Message.ToString()); } ..........
public static void button_OnInterrupt(uint data1, uint data2, DateTime time) { ..........
When I debug it throws an argument exception for "button.OnInterrupt += new NativeEventHandler(button_OnInterrupt);" every single time. Have tried hundreds of little changes and tweaks and I could swear it actually worked a few times but cannot figure out what I am doing wrong.