getPWMTerminals

Get terminals with PWM functionality

Description

example

terminals = getPWMTerminals(arduinoObj) returns terminals that have PWM functionality on the Arduino® board.

Examples

collapse all

arduinoObj = obj.Parent;
terminals = getPWMTerminals(arduinoObj)
terminals = 
 3 5 6 9 10 11

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

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

Introduced in R2015b