Page 1 of 1

ESP32S3 : How to include a Driver in My Project please ?

Posted: Thu Feb 22, 2024 10:03 am
by ThomasESP32
Good morning,

I am working with an Esp32S3 WROOM Module.
In order to dialog with some particular chips, I had to modify the I2C esp_idf_component driver
in order to add 2 methods. In order to do that, I have directly modified the I2C.C and I2C.H files
that are in the : C:\Espressif\frameworks\esp-idf-v5.0\components\driver
directory.

I fear I might loose this job. Or I fear I might not compile my project if compiling it on another computer (Wchich will not have the two files modified)...
How can I add these 2 files directly in my project so that the I2C can be compiled with them instead of using the I2C "standard" driver which is in the esp-idf-v5.0 directory ? Is it possible to retrieve the I2C modified driver in my project please ?

Best regards,

Thomas TRUILHE

Re: ESP32S3 : How to include a Driver in My Project please ?

Posted: Thu Feb 22, 2024 10:46 am
by joseMiguel
Hello Thomas,

Try
>idf.py create-component <component name>

I do no know exactly if it is the right solution.
You should have new names of the I2C functions or methods.

Best regards

Jose Michel

Re: ESP32S3 : How to include a Driver in My Project please ?

Posted: Thu Feb 22, 2024 11:03 am
by MicroController
You can simply copy the (modified) driver from the IDF into a "components" directory in your project.

https://docs.espressif.com/projects/esp ... -same-name