App::duino::Command::upload - Upload a sketch to an Arduino
version 0.10
# this will find the *.hex file to upload in the board's build directory $ duino upload --board uno --port /dev/ttyACM0 # explicitly provide the *.hex file $ duino upload --board uno some_file.hex
The Arduino board model. The environment variable ARDUINO_BOARD will be used if present and if the command-line option is not set. If neither of them is set the default value (uno) will be used.
ARDUINO_BOARD
uno
The path to the Arduino serial port. The environment variable ARDUINO_PORT will be used if present and if the command-line option is not set. If neither of them is set the default value (/dev/ttyACM0) will be used.
ARDUINO_PORT
/dev/ttyACM0
Whether to write the fuses bits when uploading. The environment variable ARDUINO_FUSES will be used if present and if the command-line option is not set. If neither of them is set the default value (false) will be used.
ARDUINO_FUSES
false
The uploader to use to upload. The environment variable ARDUINO_UPLOADER will be used if present and if the command-line option is not set. If neither of them is set the default value specified in the boards.txt file will be used.
ARDUINO_UPLOADER
boards.txt
The path to the user's sketchbook directory. The environment variable ARDUINO_SKETCHBOOK will be used if present and if the command-line option is not set. If neither of them is set the default value ($HOME/sketchbook) will be used.
ARDUINO_SKETCHBOOK
$HOME/sketchbook
The path to the Arduino installation directory. The environment variable ARDUINO_DIR will be used if present and if the command-line option is not set. If neither of them is set the default value (/usr/share/arduino) will be used.
ARDUINO_DIR
/usr/share/arduino
The "type" of hardware to target. The environment variable ARDUINO_HARDWARE will be used if present and if the command-line option is not set. If neither of them is set the default value (arduino) will be used.
ARDUINO_HARDWARE
arduino
This option is only useful when using MCUs not officially supported by the Arduino platform (e.g. ATTiny).
Alessandro Ghedini <alexbio@cpan.org>
Copyright 2013 Alessandro Ghedini.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install App::duino, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::duino
CPAN shell
perl -MCPAN -e shell install App::duino
For more information on module installation, please visit the detailed CPAN module installation guide.