Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue of I2C library #7

Open
KK13221 opened this issue Apr 17, 2024 · 3 comments
Open

Issue of I2C library #7

KK13221 opened this issue Apr 17, 2024 · 3 comments

Comments

@KK13221
Copy link

KK13221 commented Apr 17, 2024

Hello @RJRP44,

I have encountered an error when compiling the code and I have tried multiple solutions and searched on Google for hours but I am still unable to solve it. Could you please help me with this issue? I am getting this error message on the serial monitor.

Error Message
"i2c: This driver is an old driver, please migrate your application code to adapt `driver/i2c_master.h"

@RJRP44
Copy link
Owner

RJRP44 commented Apr 20, 2024

Hi @KK13221
This library was developed before the release of the brand new I²C driver. Normally for now this is not a ground breaking feature, it should still work fine. I am looking into the adaptation of this library for this new update.
Have a great day

@illusionfield
Copy link
Contributor

Hello,

We're gradually approaching the need to implement the new i2c driver. I noticed this isn't a minor modification, and it will require an assessment of how far back it can maintain compatibility, including what the minimum version of esp-idf will be affected.

For instance, the new approach necessitates including an i2c_master_bus_config_t structure as part of the VL53L5CX_Platform structure.

Additionally, our current project involves connecting multiple slave sensors to the ESP master i2c bus, which complicates things further. 😅

We'll start working on replacing the i2c driver soon and I’ll update here once we make some progress. I’d appreciate it if anyone could share their experiences or insights on this matter.

@RJRP44
Copy link
Owner

RJRP44 commented May 4, 2024

I worked on it today and got it to work with the new I²C driver, but there's still some testing to be done. The update should be available soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants