I think you need you application to look something like this:
public static InterruptPort button = new InterruptPort(Pins.GPIO_PIN_D0, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeLevelHigh); public static void Main() { button.OnInterrupt += Button_OnInterrupt; } private static void Button_OnInterrupt(uint data1, uint data2, DateTime time) { throw new NotImplementedException(); }
The IDE generated the code for the interrupt and the attachment when I pressed the tab key following the +=.
Regards,
Mark