软件IIC就是用GPIO口的输入输出,模拟IIC总线通讯协议,可以参考:
https://wenku.baidu.com/view/273786ca1a37f111f1855bcb.html
STM32的模拟I2C代码,见附件
IIC.rar