Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for Gpio Drivers. A Gpio driver provides methods to read from and write to digital I/O pins.
public abstract class GpioDriver : IDisposable
type GpioDriver = class interface IDisposable
Public MustInherit Class GpioDriver Implements IDisposable
The number of pins provided by the driver.
|AddCallbackForPinValueChangedEvent(Int32, PinEventTypes, PinChangeEventHandler)||
Adds a handler for a pin value changed event.
Closes an open pin.
Converts a board pin number to the driver's logical numbering scheme.
Disposes this instance, closing all open pins
Disposes this instance
Gets the mode of a pin.
Checks if a pin supports a specific mode.
Opens a pin in order for it to be ready to use. The driver attempts to open the pin without changing its mode or value.
Reads the current value of a pin.
Removes a handler for a pin value changed event.
Sets the mode to a pin.
|SetPinMode(Int32, PinMode, PinValue)||
Sets the mode to a pin and sets an initial value for an output pin.
|WaitForEvent(Int32, PinEventTypes, CancellationToken)||
Blocks execution until an event of type eventType is received or a cancellation is requested.
|WaitForEventAsync(Int32, PinEventTypes, CancellationToken)||
Async call until an event of type eventType is received or a cancellation is requested.
Writes a value to a pin.