ref_i2c/README.md

523 B

I2C Master Send, Slave Receive Example

!IMPORTANT

Use I2C Version 2 (activate it in menuconfig I2C_ENABLE_SLAVE_DRIVER_VERSION_2)

Test Setup

  • 2 x ESP32C3
  • 4 x Jumper Kabel
  • 2 x 4,7kΩ

Example Setup

I2C Bus Pulled Up to 3,3V

Flash the Program and Monitor

idf.py flash -p /dev/ttyACM0
idf.py flash -p /dev/ttyACM1
idf.py monitor -p /dev/ttyACM0
idf.py monitor -p /dev/ttyACM1

You should see Received from master: Hello I2C and Master Sending Data