Esempio n. 1
0
 public void UnregisterCallbackForPinValueChangedEvent(int pinNumber, PinChangeEventHandler callback)
 {
     _controller.UnregisterCallbackForPinValueChangedEvent(pinNumber, callback);
 }
Esempio n. 2
0
 public static IDisposable RegisterCallbackForPinValueChangedEventAsDisposable(this IGpioController controller, int pinNumber, PinEventTypes eventTypes, PinChangeEventHandler callback)
 {
     controller.RegisterCallbackForPinValueChangedEvent(pinNumber, eventTypes, callback);
     return(Disposable.Create(() => controller.UnregisterCallbackForPinValueChangedEvent(pinNumber, callback)));
 }