I want to have one executable that can run on different variants of a board. As a absurdly simple example one board has 1 LED and another board has 2 LEDs.
I do not what to use the compile time define as that would require seperate executables.
Source example that will not compile when only LED1 is defined.
I really not understand how this is related to the MbedStudio - feedback section. There are section for Application development or eventually Best practice.
I am not expert, but I am not sure if that is possible only via software.
Maybe you can use a resistor or jumper as hardware identifikator, check its value at the start of program and control the rest of program according to that value.