GpioPin.ValueChanged GpioPin.ValueChanged GpioPin.ValueChanged GpioPin.ValueChanged GpioPin.ValueChanged Event

Definition

Occurs when the value of the general-purpose I/O (GPIO) pin changes, either because of an external stimulus when the pin is configured as an input, or when a value is written to the pin when the pin in configured as an output.

public : event TypedEventHandler<GpioPin, GpioPinValueChangedEventArgs> ValueChanged
// Register
event_token ValueChanged(TypedEventHandler<GpioPin, GpioPinValueChangedEventArgs> const& handler) const;

// Revoke with event_token
void ValueChanged(event_token const& cookie) const;

// Revoke with event_revoker
ValueChanged_revoker ValueChanged(auto_revoke_t, TypedEventHandler<GpioPin, GpioPinValueChangedEventArgs> const& handler) const;
public event TypedEventHandler<GpioPin, GpioPinValueChangedEventArgs> ValueChanged
Public Event ValueChanged As TypedEventHandler (Of GpioPin, GpioPinValueChangedEventArgs)
function onValueChanged(eventArgs){/* Your code */}


gpioPin.addEventListener("valuechanged", onValueChanged);
gpioPin.removeEventListener("valuechanged", onValueChanged);

See also