Page 1 of 1

i2c device on same bus with codec

Posted: Mon Jun 08, 2020 9:15 am
by shotkee
Hi! Im trying to connect sdx1509 with lyra4 board i2c bus with no luck.
uint8_t data = 0;
uint8_t reg_add = SX1509_REG_INTERRUPTMASK;
i2c_bus_read_bytes(i2c_handle, 0x3E, &reg_add, sizeof(reg_add), &data, 1);

fails with
/driver/i2c_bus/i2c_bus.c:155 (i2c_bus_read_bytes):I2C Bus ReadReg Error
But es8388 readings is ok. Pullups only board 2k resistors.Default i2c bus(ESP-ADF) initialization provided.
Can somebody provide any help/information? Thx.