SPI 设备
读取和写入连接到 Arduino® 硬件的 SPI 设备
在使用 SPI 函数之前,请使用 arduino
创建一个 Arduino 对象。有关详细信息,请参阅Connect to Arduino Hardware。您还可以使用 Arduino 资源管理器来配置 SPI 通信接口,以便对连接到 Arduino 硬件的 SPI 设备读写数据。
注意
所有函数都可以通过 MATLAB Function 模块生成代码。有关详细信息,请参阅Deploy Arduino Functions to Arduino Hardware Using MATLAB Function Block。
函数
主题
- 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.