Hi dialog
I am working on a DA14681 based board. I want to communicate between two DA14681 via I2C. One in Master mode other in slave mode. But i couldnt find documentaton or example in sdk regarding this.
Can you help me in this regard?
Device:
Hi mahmed106,
Let me check it and I’ll get back to you.
Thanks, PM_Dialog
Hi mahmed106,
As you mentioned correctly, there is no example code for configuring the DA1468x as a slave device. You could define the dg_configI2C_ADAPTER_SLAVE_SUPPORT macro in your configuration file and try to use the ad_i2c_start_slave() API. There is a reference code in the comment of the aforementioned API. Please also see some previous forum threads:
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/i2c-slave-using-adapter-pending
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/i2c-adapter-async-write-pending
Thanks, PM_Dialog