Hello,
I want to add an audio amplifier controlled by I2C on nrf5340 module.
After referring to some I2C samples, I added the following code to my nrf5340 audio sample:
I write some data via I2C. However,it occurs error:
And i2c_transfer return -5, it seems like an I/O error.
I use default I2C pin in nrf5340 audio sample, and I disabled other devices that use I2C, such as the ina231, in the nrf5340 audio sample, so this error is not caused by sharing I2C.
Here is the config I added to my prj.conf.
Is there anything else that needs to be modified when I use I2C ?