UncleRus / esp-idf-lib

Component library for ESP32-xx and ESP8266
https://esp-idf-lib.readthedocs.io/en/latest/
1.33k stars 414 forks source link

I2C driver is old driver in i2cdev #626

Closed FilipVBrugghe closed 1 month ago

FilipVBrugghe commented 2 months ago

The issue

When using the driver i2cdev I got the message "i2c: This driver is an old driver, please migrate your application code to adapt driver/i2c_master.h"

Which SDK are you using?

esp-idf

Which version of SDK are you using?

master

Which build target have you used?

Component causing the issue

ds3231 with i2cdev

Anything in the logs that might be useful for us?

The component i2cdev is using the old driver i2c.h which has a newer version i2c_master.h
Will the component i2cdev updated?

Additional information or context

No response

Confirmation

PaulskPt commented 1 month ago

I encounter the same issue using an AHT20 with aht and i2cdev with an esp32s3 (Lolin S3)

UncleRus commented 1 month ago
  1. This is just a message warning you that you are using an old version of the driver. It does not affect the operation of the library and components in any way.
  2. I am currently working on a painless transition to a new driver version while maintaining compatibility with all existing code.