Hi, All
What should be coding if several I2C devices are used on a single bus ?
I'm trying to use a sensor IC and LCD display, both are i2C, addresses are different, sure.
And they work OK only once: one measure and next printing to LCD. At next loop the sensor IC is not responding, and no printing also. Display cannot be reset until re-powering.
The sensor is controlled by rWire lib directly, the LCD is controlled by rLiquidCrystal_I2C lib (that uses I2C by C code, i guess). Each module initializes the I2C bus of ESP8266:
SDA = GPIO4 (D2)
SCL = GPIO5 (D1)
Addresses by the scanner are different for sure:
I2C device found at address: 0x27 (39) 'display
I2C device found at address: 0x38 (56) 'sensor
Independently each device works OK in a loop. But how to use them both one by one correctly ?