gutierrezps / ESP32_I2C_Slave

I2C slave library for ESP32
GNU Lesser General Public License v2.1
81 stars 20 forks source link

Frequancy State #4

Closed nedimkivanc closed 3 years ago

nedimkivanc commented 3 years ago

Hello;

Thanks for the library, it works really well. In one of my projects, I need to communicate with stm32 to ı2c. I think I'm having problems with frequencies. I could not find a frequency arrangement in the library. Which frequency does it use for communication or can they change the frequency?

gutierrezps commented 3 years ago

The frequency of SCL line is dictated by the master device, not by the slave. The standard value is 100 kHz, but there are other modes such as fast (400 kHz) and high-speed (3.4 MHz).