I'm working on a sketch which includes a version number defined in a variable. I'd like to modify the compiler recipes so that when the sketch is compiled the version number is used in the name of the final hex file, something like project-1.0.1.hex.
So, is it possible to pass a variable value from the sketch to the build options / compiler at compile time?
Thanks.