Click or drag to resize

DeviceGPIO_Create Method

Create an MCP23017 GPIO pin object.

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

Parameters

channel  Int32
MCP23017 channel number (0 to 15).
dir  Direction
GPIO pin data direction.
state  Boolean  (Optional)
Initial GPIO output state.

Return Value

Pin
GPIO pin object.
See Also