Hi Guys,
I was under the impression that externally initiated events were raised on their own thread (GPIO, CAN etc) hence the need for the dispatcher in NETMF but when I execute the following code the managed thread id in the event handler is always 0.
var controller = GpioController.GetDefault();
var button = controller.OpenPin(G120E.GpioPin.P2_10);
button.SetDriveMode(GpioPinDriveMode.InputPullUp);
button.ValueChanged += delegate {
Debug.WriteLine(Thread.CurrentThread.ManagedThreadId.ToString());
};
Does anybody know why?