Edit

Share via


GoPiGo(SpiDevice, Byte, Boolean, Boolean) Constructor

Definition

Create a GoPiGo class

public GoPiGo (System.Device.Spi.SpiDevice spiDevice, byte spiAddress = 8, bool autoDetect = true, bool autoDispose = true);
public GoPiGo (System.Device.Spi.SpiDevice spiDevice, byte spiAddress = 8, bool autoDetect = true, bool shouldDispose = true);
new Iot.Device.GoPiGo3.GoPiGo : System.Device.Spi.SpiDevice * byte * bool * bool -> Iot.Device.GoPiGo3.GoPiGo
new Iot.Device.GoPiGo3.GoPiGo : System.Device.Spi.SpiDevice * byte * bool * bool -> Iot.Device.GoPiGo3.GoPiGo
Public Sub New (spiDevice As SpiDevice, Optional spiAddress As Byte = 8, Optional autoDetect As Boolean = true, Optional autoDispose As Boolean = true)
Public Sub New (spiDevice As SpiDevice, Optional spiAddress As Byte = 8, Optional autoDetect As Boolean = true, Optional shouldDispose As Boolean = true)

Parameters

spiDevice
SpiDevice

The SpiDevice

spiAddress
Byte

The SPI address, by default 8

autoDetect
Boolean

Try to autodetect the board

autoDisposeshouldDispose
Boolean

True to dispose the SpiDevice when disposing the class

Applies to