prevent some devices from locking the SCL line

This commit is contained in:
me-no-dev 2016-10-10 14:10:43 +03:00
parent f3af437774
commit 45f5449fbf

View File

@ -26,7 +26,7 @@
void i2cAttachSCL(i2c_t * i2c, int8_t scl)
{
pinMode(scl, OUTPUT_OPEN_DRAIN);
pinMode(scl, OUTPUT);
pinMatrixOutAttach(scl, I2C_SCL_IDX(i2c->num), false, false);
pinMatrixInAttach(scl, I2C_SCL_IDX(i2c->num), false);
}