SPI.Connection Class (console safe)
Class to connect to SPI slave devices.
Object
Connection
class SPI.Connection
Constructors
Methods
Close | Closes the connection. |
shared Open | Creates SPI connection on given device number. |
WriteAndRead | Sends and receives data on the SPI connection. |
WriteBlockRepeat | Sends 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 bitLinux ARM 64 bitUnsupported Platforms:
macOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bit