I have been doing some testing with PlatformIO for programming our FPGA-based XLR8 development board. I would like to give our customers a quick tutorial on how to use it, as well. However, I'd like to see one more portion of the process automated for them if possible.
Our XLR8 board needs a specific define passed as a command line argument in order to use our libraries. For example:
; ARDUINO_XLR8 flag is required for the XLR8 libraries
; It is intended to ensure that an XLR8 board is the target
build_flags = -DARDUINO_XLR8
I have been adding it manually to the platform.ini file, but I have to believe that there is a way to automate the process. Since I am new to PlatformIO, I thought I'd ask the community for some assistance.