disableSPI
Disable SPI interface
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
Syntax
Description
disableSPI(
disables the SPI bus. You can
then use the Raspberry Pi® SPI pins SPI0_MOSI (GPIO 10), SPI0_MISO (GPIO 9), and SPI0_SCLK (GPIO 11) as
GPIO pins. The SPI bus is enabled by default. To re-enable SPI, use mypi
)enableSPI
.
Note
MATLAB® Support Package for Raspberry Pi Hardware does not support disableSPI
function for the
Bullseye operating system. Under Hardware Setup use the Configure Peripheral Modules
window to disable SPI interface on the Raspberry Pi.
Examples
Input Arguments
Version History
Introduced in R2014a