i2c device on same bus with codec

shotkee
Posts: 1
Joined: Mon Jun 08, 2020 9:02 am

i2c device on same bus with codec

Postby shotkee » Mon Jun 08, 2020 9:15 am

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.

Who is online

Users browsing this forum: No registered users and 45 guests