# RTL8720DN I2C Slave Code

**URL:** <https://forum.amebaiot.com/t/rtl8720dn-i2c-slave-code/1266>\
**Category:** Peripherals\
**Tags:** evb-bw16, rtl872xd\
**Created:** [May 23, 2022, 2:55am UTC](https://forum.amebaiot.com/t/rtl8720dn-i2c-slave-code/1266 "2022-05-23T02:55:31Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![xidameng](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/xidameng/32/18_2.png) [@xidameng](https://forum.amebaiot.com/u/xidameng)\
**Post date:** [May 25, 2022, 3:45am UTC](https://forum.amebaiot.com/t/rtl8720dn-i2c-slave-code/1266/5 "2022-05-25T03:45:07Z")

</div>

Alternatively, you may try to use API directly from the BSP (more specifically the `i2c_api.h`) which give you full control of I2C peripheral, more detailes can be found in this thread

> [@RTL8720DN as I2C slave](https://forum.amebaiot.com/t/rtl8720dn-as-i2c-slave/407/2):
>
> hi Tim, afaik, arduino also only uses i2c in master mode do you mind elaborate?

---

_[View the full topic](https://forum.amebaiot.com/t/rtl8720dn-i2c-slave-code/1266)._
