"I see lots of examples where you can use variable FROM platformio.ini into the program file (main.cpp) But I would like to use opposite: use the variable FROM main.cpp in platformio.ini" -<https://community.platformio.org/t/binary-file-name-depending-on-the-program-variable-s/30875>