View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Alessandro Ghedini > App-duino-0.10 > App::duino::Command::build

Download:
App-duino-0.10.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.10   Source  

NAME ^

App::duino::Command::build - Build an Arduino sketch

VERSION ^

version 0.10

SYNOPSIS ^

   # this will find all *.ino, *.c and *.cpp files
   $ duino build --board uno 

   # explicitly provide the sketch file
   $ duino build --board uno some_sketch.ino

DESCRIPTION ^

This command can be used to build a sketch for a specific Arduino board. The sketch file is automatically detected in the current working directory. If this doesn't work, the path of the sketch file can be explicitly provided on the command-line.

OPTIONS ^

--board, -b

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.

--libs, -l

List of space-separated, non-core Arduino libraries to build. The environment variable ARDUINO_LIBS will be used if present and if the command-line option is not set. If neither of them is set no libraries are built.

Example:

    $ duino build --libs "Wire Wire/utility SPI"
--sketchbook, -s

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.

--root, -d

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.

--hardware, -r

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.

This option is only useful when using MCUs not officially supported by the Arduino platform (e.g. ATTiny).

AUTHOR ^

Alessandro Ghedini <alexbio@cpan.org>

LICENSE AND COPYRIGHT ^

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.

syntax highlighting: