b99bee4018bf6225c4b5fe21d41ca02326945a8b
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Ω
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
Languages
C
85%
CMake
10.8%
Makefile
4.2%
