Buy the components
Create options in using different variable values with #define
statement. The advantage of this method is that the same codebase can be used for different options.
Run command make a
to put the LOCAL_ADDRESS
value as 0xAA
.
Run make b
to put the LOCAL_ADDRESS
value as 0xBB
.
The make
command will run the arduino-cli compile
with options to #define
the LOCAL_ADDRESS
and DESTINATION_ADDRESS
values.
arduino-cli compile --clean --fqbn $(BOARD) --build-property compiler.cpp.extra_flags="-DLOCAL_ADDRESS=0xBB -DDESTINATION_ADDRESS=0xAA" --output-dir $(BUILD) ./