Create a arduino object with a connection to an arduino board.
port - full path of serial port to connect to. For Linux, usually /dev/ttySXXX, for windows COMXX.
board - name of board to connect (default is ’uno’).
propname, propvalue - property name and value pair for additional properties to pass to the creation of the arduino object.
Currently properties are ignored.
if the arduino function is called without parameters, it will scan for the first available arduino it can find and connect to it.
retval - a successfully connected arduino object.
The arduino object has the following public properties:
name assigned to the arduino object
true / false flag for whether debug in turned on
true / false flag for whether to force show of the arduino IDE to reprogram the arduino
the communications port the board is connected to.
The name of the board type that the arduino connected to
The libraries currently programmed onto the board
The pins available for use on the board
The analog voltage reference
See also: scanForArduinos, arduinosetup.
Package: arduino