Associate II
November 9, 2020
Question
I2C Bit-Banging on STM32F103
- November 9, 2020
- 7 replies
- 8632 views
Hello,
I cannot use the I2C bus pins to do I2C. That is, I can't use I2C1 or I2C2 or any of the alternate pins. I need to use PB5 as SDA and PB4 as SCK. I haven't found a way to do this in cubeMX, so I am wondering if I can bit-bang I2C on those pins. I found the following library for STM32 F4: https://github.com/tobajer/i2cbitbang
But did not find much for STM32F103. Are there any libraries or examples showing how to bit-bang I2C on the STM32F103. Can the library I mentioned be easily tweaked to work on the STM32F103.
Regards,
Mawaba.
