Expert Usage

Daniel Bergey edited this page Jul 2, 2013 · 4 revisions
Clone this wiki locally

How to change conf. for your environment.

Arscons needs to know the directories where AVR binaries and Arduino libraries reside. There are several ways to point it at the right directories. The precedence is:

  • scons argument
  • environment variable
  • json config (a file called arscons.json, in the same directory as SConstruct)
  • default value (hardcoded in SConstruct)

Default conf.

to find out default options, find "ARGUMENTS.get(..)"s in SConstruct.

On Windows, or if you installed Arduino somewhere other than the default location for your platform, you will likely need to set ARDUINO_HOME. It's probably easiest to set the environment variable, assuming you plan to have a bunch of Arduino sketches in different directories.

Get supported board list

Give arbitrary board name to ARDUINO_BOARD.

$ scons ARDUINO_BOARD=help

arscons uses Arduino's board.txt to select proper MCU, F_CPU, UPLOAD_PROTOCOL and UPLOAD_SPEED.


For Arduino NG(atmega8), using external reset trigger(, add my_libs/ for arduino library directory.

$ scons upload ARDUINO_BOARD=atmega8 RST_TRIGGER=./ EXTRA_LIB=./my_libs ARDUINO_VER=19