I have two constants, but the value of the second one depends on the value of the first constant.
for example:
const int value1 = 10;
const int doubleOfValue1 = 20;
but I don't want to modify the value of the "doubleOfValue1" constant manually every time I change the "value1", I wanted to make the compiler/pre-processor to make that multiplication automatically
I could make this:
const int value1 = 10;
const int doubleOfValue1 = value1*2;
but if I understand it right, that multiplication is computed in run-time in the arduino, but i don't want the arduino to make that multiplication.
There is a way to do what i want? I know #define, but I think it doesn't help with this problem...