stm32cubemx realizes simulation IIC
https://blog.csdn.net/qq_45467083/article/details/109433847
Thanks to the open source support of Punctual Atom, the following AP3216 driver code comes from Punctual Atom.
This experiment uses analog iic to drive AP3216C, and does not use the INT pin. If you need to receive AP3216C interrupts, you can configure an io input interrupt for processing.