-->
Page 1 of 1

Is there a define for the board support package version?

PostPosted: Sun Jan 27, 2019 5:40 am
by pfeerick
In other words, is there a define like ARDUINO_ESP8266_VERSION that can be used if writing any code needs to behave differently depending on the version of the ESP8266 Arduino core being used? I vaguely seem to think there was, but I could be confusing this with the define for the Arduino IDE version...

i.e.
#if ARDUINO_ESP8266_VERSION >= 230
//do something the v2.3.0 or earlier way
#elif ARDUINO_ESP8266_VERSION >= 240
//do something the v2.4.0 way
#else
//do something post 2.4.0 way
#endif