Re: ESP32 I2C power/distance problem?
Posted: Mon Mar 26, 2018 10:23 am
That's really good news.antonyc wrote:Just to confirm, it works with the replacement files!
I have not followed the discussion on GitHub closely, but I am not clear what issue or issues the new library files solve. I get the impression it was problems with real-time multitasking. I've been more focussed on why my I²C fails when I insert a few metres of cable, even when I slow up the clock.
I note in the Technical Reference Manual(page 274):
It would be nice if the Wire library for ESP32 included functions to set these values.Users need to configure the values of I2C_SDA_HOLD_TIME and I2C_SDA_SAMPLE_TIME, according to the host characteristics, for the I2C slave to receive data properly.
Wire.setClock(10000) definitely works here.Hexman64 wrote:. . . . . . I cannot observe any change on my scope after using Wire.setClock(10000); . . . . .