Hi,
Line 95 is supposed to "release" SCL (that is, make it an input pin, and validate that no other device pulls it down).
However, the code keeps this as an output (PORTB PIN is set, rather than unset)...
Unless I am mistaken, this should be a
PORT_USI_CL &= ~(1<<PIN_USI_SCL);
What am I missing?
|
PORT_USI_CL |= 1<<PIN_USI_SCL; // Release SCL. |
Hi,
Line 95 is supposed to "release" SCL (that is, make it an input pin, and validate that no other device pulls it down).
However, the code keeps this as an output (PORTB PIN is set, rather than unset)...
Unless I am mistaken, this should be a
PORT_USI_CL &= ~(1<<PIN_USI_SCL);
What am I missing?
tiny-i2c/TinyI2CMaster.cpp
Line 95 in 1029f6f