I want to get and change the I²C address of MCP4728 chip. To do this, one has to coordinate I²C communication with another LDAC pin register. After posting the question here, Reading and writing with smbus package, I have realised that the only way to do that is by I²C bit-banging.
The part with I²C communication protocol is easy, as there is plenty of documentation and examples on Internet. However, there is scarce (if any) documentation on Internet about the rest. I therefore decided to start a new question.
How can one bit-bang using Python?
How can one use arbitrary GPIO in open drain mode using Python?
Theoretically, both is achieved by fixing GPIO state to a fixed False and toggle the output enable switch/output register.
Please provide a link to documentation/example or add your own example. It is desirable that as few as possible GPIO libraries are used. Embedding C (if this is the only reasonable solution) is also a possibility.
Thanks a lot!
EDIT:
The problem is finally solved. You can find the library with read/update I2C address for MCP4728 on http://www.pinteric.com/raspberry.html#dac