2xI2C devices connected simultaneous
Posted: Fri May 31, 2019 8:37 pm
Hello, this is my first post and I am trying to understand ESP32 better.
I have 2xI2C devices, namely MAX30100 and TMP117 , and I want to know how can I make them work with ESP32. The requirement is to read the values from the sensors. I know that I have 2 pins for I2C bus (21 and 22) but I don't know how should I write to configure them in an arduino sketch file for having the results in the terminal.
I've runned the I2C scanner sketch file, and both sensors can be found (connected both to 21 and 22).
May I have some details?
Thanks in advance !
I have 2xI2C devices, namely MAX30100 and TMP117 , and I want to know how can I make them work with ESP32. The requirement is to read the values from the sensors. I know that I have 2 pins for I2C bus (21 and 22) but I don't know how should I write to configure them in an arduino sketch file for having the results in the terminal.
I've runned the I2C scanner sketch file, and both sensors can be found (connected both to 21 and 22).
May I have some details?
Thanks in advance !