Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By krzychb
#43001 Hi xtal,

To detect what Arduino version the sketch was compiled with you can check ARDUINO constant.

Sample sketch:
Code: Select allvoid setup()
{
  Serial.begin(115200);
  Serial.println();
  Serial.print("The 'ARDUINO' constant contains: ");
  Serial.println(ARDUINO);

  if(ARDUINO == 10608)
  {
    Serial.println("You are running Arduino IDE 1.6.8");
  }
}

void loop() {}


Output on serial monitor:
Code: Select allThe 'ARDUINO' constant contains: 10608
You are running Arduino IDE 1.6.8


Krzysztof