Main Content

SPI Devices

Read and write to SPI devices connected to Arduino® hardware

Create an Arduino object using arduino before you use SPI functions. See Connect to Arduino Hardware for more information. You can also use Arduino Explorer app to configure SPI communication interface to read and write data to SPI devices connected to the Arduino hardware.

Note

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

Functions

deviceConnection to device on SPI bus on Arduino or ESP32 hardware (Since R2019a)
writeReadWrite and read data from SPI device

Topics