Udostępnij za pośrednictwem


GpioPinValueChangedEventArgs Class

Definition

Provides data about the GpioPin.ValueChanged event that 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 ref class GpioPinValueChangedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GpioPinValueChangedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GpioPinValueChangedEventArgs
Public NotInheritable Class GpioPinValueChangedEventArgs
Inheritance
Object Platform::Object IInspectable GpioPinValueChangedEventArgs
Attributes

Windows requirements

Device family
Windows IoT Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced in v1.0)

Remarks

GpioPinValueChangedEventArgs is passed to the event handler that you implement for the GpioPin.ValueChanged event.

Properties

Edge

Gets the type of change that occurred to the value of the general-purpose I/O (GPIO) pin for the GpioPin.ValueChanged event.

Applies to

See also