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

Moderator: igrr

User avatar
By Touliloup
#27720 Maybe you could simply do:

Code: Select all  #if defined(ESP8266)
    Serial.println(F("Version compiled for ESP8266. Now monitoring changes on ESP8266 GPIO2"));
    intpin=2;
#else
    Serial.println();
    Serial.println(F("Now monitoring changes on Arduino INT0/D2"));
    intpin=0;
  #endif


(Sorry if it's a total non-sense, I don't have my arduino IDE installed here)