mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-05 14:56:32 +02:00
prevent some devices from locking the SCL line
This commit is contained in:
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
void i2cAttachSCL(i2c_t * i2c, int8_t scl)
|
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);
|
pinMatrixOutAttach(scl, I2C_SCL_IDX(i2c->num), false, false);
|
||||||
pinMatrixInAttach(scl, I2C_SCL_IDX(i2c->num), false);
|
pinMatrixInAttach(scl, I2C_SCL_IDX(i2c->num), false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user