Main Content

getSPITerminals

Get terminals that have SPI functionality

Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.

Description

terminals = getSPITerminals(arduinoObj) returns terminals that have SPI functionality on the Arduino® board

example

Examples

collapse all

Get terminals on an Arduino Uno device with specific SPI functionality.

arduinoObj = obj.Parent;
terminals = getSPITerminals(arduinoObj)
terminals = 
10 11 12 13

Input Arguments

collapse all

Arduino object, specified as an object that is an internal variable called from within classes that derive from matlabshared.addon.LibraryBase.

Output Arguments

collapse all

SPI terminals, returned as an array of doubles. For more information on terminal and pin numbers, see Physical Terminals and Pin Numbers.

Version History

Introduced in R2015b