DocumentationHelp Center
Check if terminal can be used as an analog pin
result = isTerminalAnalog(arduinoObj, terminal)
example
result = isTerminalAnalog(arduinoObj, terminal) checks to see if the specified terminal on the Arduino® board can be used as an analog pin.
result
arduinoObj
terminal
collapse all
Check if terminal 14, pin 'A0', on your Arduino Uno device can be used as an analog pin.
'A0'
arduinoObj = obj.Parent result = isTerminalAnalog(obj, 14)
result = 1
Note
Pin 14 on an Arduino Uno device is an analog output pin and returns 1.
1
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. For more information on terminal and pin numbers, see Physical Terminals and Pin Numbers.
Arduino hardware terminal type, returned as a boolean. Returns true if terminal is analog
isTerminalDigital
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