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