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.
| Parameter | Type | Description |
|---|---|---|
edge | GpioPinEdge | The edge direction that triggered the event. |
timestamp | DateTime | Driver-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.