Edit

Share via


Mbi5027 Constructors

Definition

Overloads

Mbi5027(SpiDevice, Int32)

Initializes a new shift register device connected through SPI. Uses 3 pins (SDI -> SDI, SCLK -> SCLK, CE0 -> LE)

Mbi5027(Mbi5027PinMapping, Int32, GpioController, Boolean)

Initialize a new shift register connected through GPIO.

Mbi5027(SpiDevice, Int32)

Initializes a new shift register device connected through SPI. Uses 3 pins (SDI -> SDI, SCLK -> SCLK, CE0 -> LE)

public Mbi5027 (System.Device.Spi.SpiDevice spiDevice, int bitLength = 16);
new Iot.Device.Multiplexing.Mbi5027 : System.Device.Spi.SpiDevice * int -> Iot.Device.Multiplexing.Mbi5027
Public Sub New (spiDevice As SpiDevice, Optional bitLength As Integer = 16)

Parameters

spiDevice
SpiDevice

SpiDevice used for serial communication.

bitLength
Int32

Bit length of register, including chained registers. Default is 8 bits.

Applies to

Mbi5027(Mbi5027PinMapping, Int32, GpioController, Boolean)

Initialize a new shift register connected through GPIO.

public Mbi5027 (Iot.Device.Multiplexing.Mbi5027PinMapping pinMapping, int bitLength = 16, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.Multiplexing.Mbi5027 : Iot.Device.Multiplexing.Mbi5027PinMapping * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Multiplexing.Mbi5027
Public Sub New (pinMapping As Mbi5027PinMapping, Optional bitLength As Integer = 16, Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

pinMapping
Mbi5027PinMapping

The pin mapping to use by the binding.

bitLength
Int32

Bit length of register, including chained registers. Default is 16 bits.

gpioController
GpioController

The GPIO Controller used for interrupt handling.

shouldDispose
Boolean

Option (true by default) to dispose the GPIO controller when disposing this instance.

Applies to