Connection to SPI device on Raspberry Pi hardware
This object represents a connection from the MATLAB® software to the SPI device on the Raspberry Pi™ hardware. To exchange data with the SPI device, use this object with the functions listed in Object Functions.
sets one or more of the optional Mode, Speed, and BitsPerWord properties.myspidevice
= spidev(mypi
,channel
,mode
,speed
,BitsPerWord
)
writeRead | Write data to and read data from SPI device |