I’m currently trying to use the RTL8720dn chip as I2C Slave. I’ve tried using some functions and implementations of the sdk (i2c_api), but facing some weird issues where the polling mode doesn’t seem to work. Because of this, I’m curious if the Arduino package contains the full implementation. What’s the best practise in this occasion?
Currently I’m programming the chip with a library (self made) on top of the i2c_api.h header which in included in the arduino package (AmebaD/3.0.7/system/libameba/sdk/component/common/mbed/hal/i2c_api.h). But I just had a look into the SDK and faces the rtl8721d_i2c.h header and source (ambd_sdk/rtl8721d_i2c.c at master · ambiot/ambd_sdk · GitHub). Does any of you have experience with this case, and what’s best practise?
Use the i2c_api in the arduino package, or take a look into the official sdk. As told it’s required to use the 8720dn in polling mode (waiting for the master to send a request to respond on).