When I include the pinMode call to define pins the compile fails. Arduino.h is included in the file.
The stand alone blink program does compile and run successfully.
Please show your platformio.ini
, the minimal test code and the error message.
It is a bit of a ‘kludge’ but I have this problem when using with espressif controllers and when WiFinina.h is included in libdeps.
I delete WiFinina.h and I am able to compile and run without problems.
I am sure someone will tell me I shouldn’t do this but a long time ago I delved into pinmode and my boards were not defined. (If I remember correctly)