SeesawGpioDriver Class

Definition

Seesaw GPIO driver

public class SeesawGpioDriver : System.Device.Gpio.GpioDriver
type SeesawGpioDriver = class
    inherit GpioDriver
Public Class SeesawGpioDriver
Inherits GpioDriver
Inheritance
SeesawGpioDriver

Constructors

SeesawGpioDriver(I2cDevice)

Initializes a new instance of the SeesawGpioDriver class that will use the specified I2cDevice to communicate with the Seesaw device.

SeesawGpioDriver(Seesaw)

Initializes a new instance of the SeesawGpioDriver class that will use the specified Seesaw device.

Properties

PinCount

Number of Gpio pins available.

Methods

AddCallbackForPinValueChangedEvent(Int32, PinEventTypes, PinChangeEventHandler)

Adds a handler for a pin value changed event.

ClosePin(Int32)

Closes an open pin.

ConvertPinNumberToLogicalNumberingScheme(Int32)

Converts a board pin number to the driver's logical numbering scheme.

Dispose()

Disposes this instance, closing all open pins

(Inherited from GpioDriver)
Dispose(Boolean)

Disposes this instance

GetPinMode(Int32)

Gets the mode of a pin.

IsPinModeSupported(Int32, PinMode)

Checks if a pin supports a specific mode.

IsPinOpen(Int32)

Checks if a specific pin is open.

OpenPin(Int32)

Opens a pin and in Input mode.

OpenPin(Int32, PinMode)

Opens a pin and sets it to a specific mode.

QueryComponentInformation()

Query information about a component and its children.

(Inherited from GpioDriver)
Read(Int32)

Reads the current value of a pin.

Read(Span<PinValuePair>)

Read the given pins with the given pin numbers.

RemoveCallbackForPinValueChangedEvent(Int32, PinChangeEventHandler)

Removes a handler for a pin value changed event.

SetPinMode(Int32, PinMode)

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.

(Inherited from GpioDriver)
Toggle(Int32)

Toggle the current value of a pin.

Toggle(Int32)

Toggle the current value of a pin.

(Inherited from GpioDriver)
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.

(Inherited from GpioDriver)
Write(Int32, PinValue)

Writes a value to a pin.

Write(ReadOnlySpan<PinValuePair>)

Write the given pins with the given values.

Applies to