Skip to main content

GpioPinValueChangedEventArgs Class

Namespace: GHIElectronics.TinyCLR.Devices.Gpio · Assembly: GHIElectronics.TinyCLR.Devices.Gpio

Arguments for the GpioPin.ValueChanged event.

public class GpioPinValueChangedEventArgs : EventArgs

Constructors

GpioPinValueChangedEventArgs(GpioPinEdge edge, DateTime timestamp)

public GpioPinValueChangedEventArgs(GpioPinEdge edge, DateTime timestamp)

Creates a new GpioPinValueChangedEventArgs.

ParameterTypeDescription
edgeGpioPinEdgeThe edge direction that triggered the event.
timestampDateTimeDriver-captured time of the transition.

Properties

Edge

public GpioPinEdge Edge { get; }

The edge direction (rising or falling) that triggered the event.

Timestamp

public DateTime Timestamp { get; }

Driver-captured time at which the transition was detected.