예제 #1
0
 public void UnregisterCallbackForPinValueChangedEvent(int pinNumber, PinChangeEventHandler callback)
 {
     _controller.UnregisterCallbackForPinValueChangedEvent(pinNumber, callback);
 }
예제 #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)));
 }