提交 be2a26b3 编写于 作者: M Me No Dev 提交者: GitHub

set SCL to OUTPUT_OPEN_DRAIN

fixes: https://github.com/espressif/arduino-esp32/issues/69
上级 d8b22903
......@@ -67,7 +67,7 @@ i2c_err_t i2cAttachSCL(i2c_t * i2c, int8_t scl)
if(i2c == NULL){
return I2C_ERROR_DEV;
}
pinMode(scl, OUTPUT);
pinMode(scl, OUTPUT_OPEN_DRAIN);
pinMatrixOutAttach(scl, I2C_SCL_IDX(i2c->num), false, false);
pinMatrixInAttach(scl, I2C_SCL_IDX(i2c->num), false);
return I2C_ERROR_OK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册