SPI Plugin for Xojo

SPI.Connection Class (console safe)

Class to connect to SPI slave devices.

Object
   Connection

class SPI.Connection

Constructors

ConnectionPrivate constructor.

Methods

CloseCloses the connection.
shared OpenCreates SPI connection on given device number.
WriteAndReadSends and receives data on the SPI connection.
WriteBlockRepeatSends data block many times (defined by the repeat parameter) and ignores the result bytes. This method is for example used to speed up things like writing LCD SPI screen areas a fixed colour.

Supported Platforms:

  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • Unsupported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit