Constructor for a single SPI device.
Namespace: IO.Objects.SimpleIO.SPIAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax public Device(
Designator desg,
int mode,
int wordsize,
int speed,
Designator? cspin = null
)
Parameters
- desg Designator
- SPI slave device designator.
- mode Int32
- SPI clock mode.
- wordsize Int32
- SPI transfer word size.
- speed Int32
- SPI transfer speed.
- cspin NullableDesignator (Optional)
- SPI software slave select GPIO pin designator,
or null.
See Also