You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With [email protected] we can't pass the first argument to TwoWire::begin as an unsigned int; it will resolve the four-parameter overload and initialize the bus in slave mode.
We resolve the three-parameter overload for bus master mode by explicitly typing the first and third arguments, the third replacing the call to TwoWire::setClock.
Setting the frequency in TwoWire::begin has the same effect as ::setClock:
arduino-esp32@<2.0.1: i2cInit (esp32-hal-i2c.c) and setClock (Wire.cpp) both call i2cSetFrequency (esp32-hal-i2c.c)
[email protected]: esp-idf does the same clock selection in i2c_param_config and i2c_get_clk_src (driver/i2c.c) that arduino-esp32 does in i2cSetClock (esp32-hal-i2c.c).
0 commit comments