ref_i2c/README.md

33 lines
523 B
Markdown

# 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_Example.drawio.png)
I2C Bus Pulled Up to 3,3V
## Flash the Program and Monitor
```bash
idf.py flash -p /dev/ttyACM0
idf.py flash -p /dev/ttyACM1
```
```bash
idf.py monitor -p /dev/ttyACM0
idf.py monitor -p /dev/ttyACM1
```
You should see
`Received from master: Hello I2C`
and
`Master Sending Data`