Click or drag to resize

Pin Constructor

Create a single MCP23S17 GPIO pin.

Namespace: IO.Devices.MCP23S17.GPIO
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax
C#
public Pin(
	Device dev,
	int channel,
	Direction dir,
	bool state = false
)

Parameters

dev  Device
MCP23S17 device object.
channel  Int32
MCP23S17 I/O channel number.
dir  Direction
GPIO pin data direction.
state  Boolean  (Optional)
Initial GPIO output state.
See Also