I2C/GPIO multiplexing | Cypress Semiconductor
I'm trying to multiplex GPIO pin functionality with an I2C master, and I can't seem to get it to work as an output.
I can make the pin an input and read it; if I disconnect the I2C module on the schematic from the pin, the pin works just fine, so I know my hardware is good.
Here's my code:
uint8_t temp = A4_BYP;
temp = temp & 0xFE;
A4_BYP = temp;