Assign values before run-time

Hi, @arturzahn5
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

This will help with advice on how to present your code and problems.

Try it,
Use this code and look in the IDE monitor, set baud to 9600.

const int value1 = 10;
const int doubleOfValue1 = value1 * 2;

void setup()
{
  Serial.begin(9600);
  Serial.print("value1 = ");
  Serial.print(value1);
  Serial.print("\t doubleOfValue1 = ");
  Serial.println(doubleOfValue1);
}

void loop()
{
  // put your main code here, to run repeatedly:
}

Tom... :grinning: :+1: :coffee: :australia:

1 Like