Including existing esp32 library to project

matvic
Posts: 1
Joined: Wed Nov 16, 2022 7:46 am

Including existing esp32 library to project

Postby matvic » 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:

Code: Select all

#include "driver/i2c.c"
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?
Attachments
15.PNG
15.PNG (22.98 KiB) Viewed 732 times

Who is online

Users browsing this forum: No registered users and 99 guests