Including existing esp32 library to project
Posted: Wed Nov 23, 2022 9:20 am
Hello,
I'm trying to use I2C in my esp32s3 project.
To do so I need the i2c.c and so on... files, witch are located in "C:\Espressif\frameworks\esp-idf-v4.4.2\components\driver\**".
First I tried to add the driver file to my project main file. C:\path\to\the\project\main\driver and include the i2c.c in my code like that:
But when I open the i2c.c vscode tells me that the included files in i2c.c aren't found : Include file not found in browse path.
Thus looking for the browse.path setting (c/c++ Congfig), I found that the esp default settings output errors (attachement).
So do i need to change the way I incorporate the driver folder in my project, or do I need to change the browse.path setting?
I'm trying to use I2C in my esp32s3 project.
To do so I need the i2c.c and so on... files, witch are located in "C:\Espressif\frameworks\esp-idf-v4.4.2\components\driver\**".
First I tried to add the driver file to my project main file. C:\path\to\the\project\main\driver and include the i2c.c in my code like that:
Code: Select all
#include "driver/i2c.c"
Thus looking for the browse.path setting (c/c++ Congfig), I found that the esp default settings output errors (attachement).
So do i need to change the way I incorporate the driver folder in my project, or do I need to change the browse.path setting?