Skip to main content

WaitForEventResult Struct

NuGet: GHIElectronics.TinyCLR.Devices.Gpio
Assembly: System.Device.Gpio
Namespace: System.Device.Gpio

Result of a GpioController.WaitForEvent(int, PinEventTypes, TimeSpan) call. Same shape as .NET IoT.

public struct WaitForEventResult

Fields

EventTypes

public PinEventTypes EventTypes

The edge that occurred, or PinEventTypes.None if the wait timed out or was cancelled.

TimedOut

public bool TimedOut

True if the wait elapsed (or was cancelled) before the event occurred.