Skip to main content

GHIElectronics.TinyCLR.Devices.Gpio

NuGet package containing 9 types across 2 namespaces (GHIElectronics.TinyCLR.Devices.Gpio, GHIElectronics.TinyCLR.Devices.Gpio.Provider).

Classes

ClassNamespaceSummary
GpioControllerGHIElectronics.TinyCLR.Devices.GpioRepresents a GPIO controller — the hardware peripheral that owns a set of individually addressable pins. Use GetDefault to obtain the device's primary controller, then OpenPin(int) to acquire pins for input or output.
GpioControllerApiWrapperGHIElectronics.TinyCLR.Devices.Gpio.ProviderConcrete IGpioControllerProvider backed by the native TinyCLR GPIO HAL. Constructed internally by GpioController; you don't normally need to use this type directly.
GpioPinGHIElectronics.TinyCLR.Devices.GpioA single GPIO pin opened from a GpioController. Configure the direction with SetDriveMode(GpioPinDriveMode), then drive it with Write(GpioPinValue) or sample it with Read. Subscribe to ValueChanged for edge-triggered notifications on inputs.
GpioPinValueChangedEventArgsGHIElectronics.TinyCLR.Devices.GpioArguments for the GpioPin.ValueChanged event.

Interfaces

InterfaceNamespaceSummary
IGpioControllerProviderGHIElectronics.TinyCLR.Devices.Gpio.ProviderProvider contract for a GPIO controller. Most users call GpioController / GpioPin directly; implement this interface only when supplying a custom or virtual controller.

Enums

EnumNamespaceSummary
GpioPinDriveModeGHIElectronics.TinyCLR.Devices.GpioElectrical drive mode applied to a GpioPin. Not every mode is available on every pin — call GpioPin.IsDriveModeSupported(GpioPinDriveMode) before GpioPin.SetDriveMode(GpioPinDriveMode) when in doubt.
GpioPinEdgeGHIElectronics.TinyCLR.Devices.GpioWhich edges trigger the GpioPin.ValueChanged event. The flags can be combined to fire on both edges.
GpioPinValueGHIElectronics.TinyCLR.Devices.GpioLogical level of a GpioPin.

Delegates

DelegateNamespaceSummary
GpioPinValueChangedEventHandlerGHIElectronics.TinyCLR.Devices.GpioHandler invoked when a GpioPin configured as an input observes a level change matching its GpioPin.ValueChangedEdge.