Main Content

getMCU

Get microcontroller of Arduino board

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

Description

example

result = getMCU(arduinoObj) gets the microcontroller name on the connected Arduino® hardware.

Examples

collapse all

arduinoObj = obj.Parent;
result = getMCU(arduinoObj)
result
		'atmega328p'

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

Name of Arduino microcontroller, returned as a character vector. For example, 'atmega328p'.

Version History

Introduced in R2015b