Ftx232HDevice.CreateSimpleSpiDevice(SpiConnectionSettings, Int32[]) Method

Definition

Creates SPI device related to this device

C#
protected override System.Device.Spi.SpiDevice CreateSimpleSpiDevice (System.Device.Spi.SpiConnectionSettings settings, int[] pins);

Parameters

settings
SpiConnectionSettings

The SPI settings

pins
Int32[]

The pins to use

Returns

a SPI device

Remarks

You can create either an I2C, either an SPI device. You can create multiple SPI devices, the first one will be the one used for the clock frequency. They all have to have different Chip Select. You can use any of the 3 to 15 pin for this function.

Applies to

Tuote Versiot
.NET IoT Libraries 2.2.0