Edit

Share via


GpioController.RegisterCallbackForPinValueChangedEvent Method

Definition

Adds a callback that will be invoked when pinNumber has an event of type eventType.

public void RegisterCallbackForPinValueChangedEvent (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Device.Gpio.PinChangeEventHandler callback);
public virtual void RegisterCallbackForPinValueChangedEvent (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Device.Gpio.PinChangeEventHandler callback);
member this.RegisterCallbackForPinValueChangedEvent : int * System.Device.Gpio.PinEventTypes * System.Device.Gpio.PinChangeEventHandler -> unit
abstract member RegisterCallbackForPinValueChangedEvent : int * System.Device.Gpio.PinEventTypes * System.Device.Gpio.PinChangeEventHandler -> unit
override this.RegisterCallbackForPinValueChangedEvent : int * System.Device.Gpio.PinEventTypes * System.Device.Gpio.PinChangeEventHandler -> unit
Public Sub RegisterCallbackForPinValueChangedEvent (pinNumber As Integer, eventTypes As PinEventTypes, callback As PinChangeEventHandler)
Public Overridable Sub RegisterCallbackForPinValueChangedEvent (pinNumber As Integer, eventTypes As PinEventTypes, callback As PinChangeEventHandler)

Parameters

pinNumber
Int32

The pin number in the controller's numbering scheme.

eventTypes
PinEventTypes

The event types to wait for.

callback
PinChangeEventHandler

The callback method that will be invoked.

Applies to