Arduino -D compiler defines and constants

by Visual Micro 13. April 2013 07:35

Optional defines and constants for the Arduino compiler can be specified using either of two project properties.

Defines - Project

Global defines are included in all compilations


Defines - Configuration


Confirguration specific defines are included in the compilation for a specific configuration such as "Release", "Degug" etc.



During compilation all defines are applied as -D compiler options, so you must ensure they are unique