Skip to content

Basic example to comunicate 2 ESP32 using the I2C protocol

License

Notifications You must be signed in to change notification settings

antusystem/esp_i2c_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I2C Basic Example

This examples shows how to use 2 ESP32 to work as master-slave. The master send 1 to the slave, then, it increase the number that arrives and put it in its buffer. Afterwards, the master read the slave buffer and sends that value.

Hardware Required

You need 2 ESP32 basic Devboard, this was tested with 2 NodeMCU.

Pin Assignment:

To deploy the website in the SD Card you must have this pin connection for this example.

ESP32-MASTER ESP32-SLAVE DESCRIPTION
GPIO22 GPIO5 I2C SCL
GPIO21 GPIO4 I2C SDA
- GPIO2 LED

Log

  • Last compile: September 09t 2023.
  • Last test: September 09t 2023.
  • Last compile espidf version: v5.1.1

License

Apache License, Version 2.0, January 2004.

Version

v 1.0.0

About

Basic example to comunicate 2 ESP32 using the I2C protocol

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published