I get one “problem”:
variable “AS3935” is not a type name
But the other window shows this:
Compiling .pio\build\megaatmega2560\libe1e\Adafruit BusIO@src-1c59a2908cd7e8f991f92381d560d371\Adafruit_I2CDevice.cpp.o
.pio\libdeps\megaatmega2560\ArduinoOTA\src\ArduinoOTA.cpp:4:10: fatal error: functional: No such file or directory
#include <functional>
^~~~~~~~~~~~
compilation terminated.
*** [.pio\build\megaatmega2560\lib298\ArduinoOTA\ArduinoOTA.cpp.o] Error 1
There is no BusIO, and there is no OTA.