Main Content

SPI Devices

Read and write to SPI devices connected to Arduino®hardware

Create an Arduino object usingarduinobefore you use SPI functions. SeeConnect to Arduino Hardwarefor more information.

Note

All functions can be used to generate code using the MATLAB Function block. For more details, seeDeploy Arduino Functions to Arduino Hardware Using MATLAB Function Block.

Functions

device Connection to device on SPI bus onArduinoor ESP32 hardware
writeRead Write and read data from SPI device

Topics