My program is a test system. It should first set SCL=1, SDA=0. Read some values from other GPIOs. Then set SCL=0, SDA=1. Read some values from other GPIOs. This is in order to verify the integrity of the test system. THEN it should switch to I2C mode and try to do I2C communication.
How do I switch between GPIO-mode and I2C-mode in the same program ?. I am writing the test program in PYTHON, but I think the problem would be the same in C.
Can anyone advise ?
BR Erik
/boot/config.txt
although you might try pulling the kernel module and see what happens that way.