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
MYDEFINE=10;MYDEFINE2=30;SOMETHING
Defines - Configuration
Confirguration specific defines are included in the compilation for a specific configuration such as "Release", "Degug" etc.
MYDEFINE=10;MYDEFINE2=30;SOMETHING
Note
During compilation all defines are applied as -D compiler options, so you must ensure they are unique
-DMYDEFINE=10 -DMYDEFINE2=30 -DSOMETHING