Simulating Open-Drain GPIO in Software
In today's day and age, it's rare to find a modern microcontroller that does not support configurable GPIO. We can easily take these configuration options for granted, especially when interacting with circuits and communication busses (e.g. I2C) that require GPIO to be configured in open-drain mode. As embedded developers we do not always get to …
