Hi,
I am a beginner when it comes to PIO. I have an ESP32 and I am trying to use PIO and Espidf with the TFT_eSPI graphics library on Windows 10. I have attempted new projects with different settings, but the issue seems to be with the PIO and VSCode.
The main error I get is:
Cannot find “C:\Users\Username.platformio\packages\framework-espidf\components\esp_hw_support\port\esp32\private_include”.
I think this is due to the auto-generated JSON file that VSCode forces me to make because IntelliSense not working properly with PIO.
So when I go to include my graphics library, it will give me an error saying that it cannon find the library I am trying to include and that it can’t find the folder called “private_include”.
I am able to run basic code with the freeRTOS.h but when I try to include new libraries I get the:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
cannot open source file “TFT_eSPI.h”
I have tried to change versions of the platform and graphics library, but in the end, the error comes when I make that JSON file.
I have also tried uninstalling and reinstalling VSCode and PIO.
When I try to fix the include error, VSCode gives me the option to fix this by changing the settings for the Windows C/C++ Extension, but Im not sure how or what to change here.
Has anyone experienced this issue and knows how to fix it?