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.

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 hardware
writeReadWrite and read data from SPI device

Topics

Communicate with a SPI EEPROM Device

Learn how to store and retrieve data from an SPI EEPROM device.

Communicate with SPI Device on Arduino® Hardware

Learn how to communicate with an SPI device on your Arduino hardware.

Arduino and SPI Interface

Learn how Arduino hardware interfaces with the SPI protocol.