DocumentationHelp Center
Get current terminal mode
value = getTerminalMode(arduinoObj, terminal)
example
value = getTerminalMode(arduinoObj, terminal) returns the current mode of the terminal.
value
arduinoObj
terminal
collapse all
Get the mode of terminal 14 on your Arduino® hardware.
14
arduinoObj = obj.Parent; value = getTerminalMode(arduinoObj, 14)
value = 'AnalogInput'
Arduino object, specified as an object that is an internal variable called from within classes that derive from matlabshared.addon.LibraryBase.
matlabshared.addon.LibraryBase
Terminal number on Arduino hardware, specified as a double.
Mode of specified terminal, returned as a character vector. Valid mode values are:
include:
'DigitalInput'
'DigitalOutput'
'AnalogInput'
'PWM'
'I2C'
'Servo'
'Unset'
'SPI'
'Reserved'
'Pullup'
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office