Hi.
I am new to this forum and I am a hobbyist experimenter with Arduino and related things as one of the areas in which I dabble. Apologies in advance if I am asking inappropriate questions or questions inappropriately.
Some time back I generated an ESP 32 project
https://github.com/romeo987/TouchDRO_Interface using an Arduino IDE and Vmicro on VS2019. At the time I managed and modified it quite happily on my local GitHub clone.
Recently I had occasion to come back to it; I dutifully (foolish, I now realise) updated my VS2019, Vmicro and libraries and then opened my VS solution, only to be hit with red squiggly lines all over. They all SEEM to relate to failure to find the necessary header files way down the chain.
The Arduino IDE seems to put its headers and low level esp32 stuff in a chain that looks like -release_v5.1-bd2b9390ef\esp32\.....
I'm guessing that when I updated the folders recently this path changed and so my local GitHub clone chain failed. By finding the various header files down in the new chain and copying them individually to a directory immediately under my GitHub repo, I seem to be able to eliminate the squiggly lines one by one - a very painful process. I didn't take it through to completion.
I then copied all my key project files to the Arduino projects directory and opened them from there, expecting the IDE to negotiate the appropriate search path. This was promising, except for one pair of drivers in ESP32_Quad_Encoders.h
#include "driver/gpio.h"
#include "driver/pcnt.h"
which it refuses to find even though I can clearly find them -release_v5.1-bd2b9390ef\esp32\include\driver\pcnt\include\driver\pcnt.h.
-release_v5.1-bd2b9390ef\esp32\include\driver\gpio\include\driver\gpio.h
If I "promote" gpio.h and pcnt.h to a directory just below my Arduino project directory, it finds them OK but
when I look at gpio.h, it has
#include <stdio.h>
#include <stdbool.h>
#include "sdkconfig.h"
#include "esp_err.h"
#include "esp_intr_alloc.h"
#include "soc/soc_caps.h"
#include "hal/gpio_types.h"
#include "esp_rom_gpio.h"
#include "driver/gpio_etm.h"
and about half of these now it cannot find, even though I can find them somewhere in the tree. If it could find NONE of them, that would be something....
I have spent hours googling about search paths etc, but I am not a software guy, so didn't understand some of the discussions, but the bottom line seems to be "Don't worry, the Arduino IDE will take care of all that".
And it probably does, and I am doing something wrong. But I'm at a loss to know what.
Any suggestions gratefully received.