Created by: maxgerhardt
Per PlatformIO forum thread this library can also be used with ESP-IDF. It's just that PlatformIO refuses by default to use this library in a project that has framework = espidf and not arduino because the library.json only advertises arduino compatibility and a user needs to do lib_compat_mode = off to bypass the compatibility check.
Per docs I've expanded the library.json.
You might also want to expand the detection code for
So that the macro ends up having the value 1, the same as in Arduino. The check #if defined(IDF_VER) might e.g. be used for that (defined during build process -DIDF_VER=\"3.40200.210118\"), or check on __xtensa__ (compiler does #define __xtensa__ 1). I left that out in this PR because I'm not 100% sure on what you want this macro value to be in an ESP-IDF environment.