Page 1 of 1

I2C read error

Posted: Tue Dec 12, 2017 4:15 am
by Kalki123
We have used GPIO 25 and GPIO 4 as SDA and SCL respectively. Tested separately and it's working.
We have used GPIO 21 as interrupt pin and GPIO 22 as normal GPO(LED). Tested separately and it's working. But when embedded both code into single application i am getting I2C read error.

Is there any particular bit set by default in I2C, which says GPIO 21 and 22 are I2C pins as I2C by default. Even though i am using GPIO 21 as interrupt pin(push button) and GPIO 22 as normal GPIO(LED)?