: retval = scanForArduinos (maxCount)
: retval = scanForArduinos ("debug")
: retval = scanForArduinos (maxCount, type)

Scan system for programmed arduino boards.

scanForArduinos will scan the system for programmed arduino boards and return at most maxCount of them as a cell array in retval.

Inputs

maxCount - max number of arduino boards to detect. if maxCount is not specified, or is a less than 1, the function will return as many arduino boards as it can detect.

type - optional board type to match. If specified, the board type must match for the arduino to be added to the return list.

"debug" - if single input parameter is "debug", the scanForArduinos will display debug information as it scans all available ports for arduinos.

Outputs

retval structure cell array of matching detected arduino boards.

Each cell value of the cell array will contain a structure with values of:

port

the serial port the arduino is connected to

board

the board type of the arduino

See also: arduino.

Package: arduino