Edit

Share via


Pcx857x Constructors

Definition

Overloads

Pcx857x(I2cDevice, Int32, GpioController)
Pcx857x(I2cDevice, Int32, GpioController, Boolean)

Remote I/O expander for I2C-bus with interrupt.

Pcx857x(I2cDevice, Int32, GpioController)

public Pcx857x (System.Device.I2c.I2cDevice device, int interrupt = -1, System.Device.Gpio.GpioController gpioController = default);
new Iot.Device.Pcx857x.Pcx857x : System.Device.I2c.I2cDevice * int * System.Device.Gpio.GpioController -> Iot.Device.Pcx857x.Pcx857x
Public Sub New (device As I2cDevice, Optional interrupt As Integer = -1, Optional gpioController As GpioController = Nothing)

Parameters

device
I2cDevice
interrupt
Int32
gpioController
GpioController

Applies to

Pcx857x(I2cDevice, Int32, GpioController, Boolean)

Remote I/O expander for I2C-bus with interrupt.

public Pcx857x (System.Device.I2c.I2cDevice device, int interrupt = -1, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.Pcx857x.Pcx857x : System.Device.I2c.I2cDevice * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Pcx857x.Pcx857x
Public Sub New (device As I2cDevice, Optional interrupt As Integer = -1, Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

device
I2cDevice

The I2C device.

interrupt
Int32

The interrupt pin number, if present.

gpioController
GpioController

The GPIO controller for the interrupt. If not specified, the default controller will be used.

shouldDispose
Boolean

True to dispose the Gpio Controller

Applies to