i2cdev one dev per I2C port or one dev per I2C device #426
Answered
by
UncleRus
mbastida123
asked this question in
Q&A
-
Hi, We are using the I2Cdev library to connect to two devices on the same I2C bus. The question is, each I2C has to have a Inspecting how the library is built I would say it's the first one. But then I get to the conclusión that esp-idf's I2C library is not thread-safe when accessing the same device from diferent threads. That's why in i2cdev the mutex is not shared accross diferent I2C devices. Am I right? |
Beta Was this translation helpful? Give feedback.
Answered by
UncleRus
Jul 7, 2022
Replies: 1 comment 1 reply
-
Each I2C device must have its own descriptor. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
UncleRus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Each I2C device must have its own descriptor.