Skip to main content

use Raspberry Pi as master on ESP32 i2c slave when use ESP32 i2c Slave c++ library

Project description

Raspberry_Pi_Master_for_ESP32_I2C_SLAVE

use Raspberry pi as MASTER of a ESP32 SLAVE on i2c bus

To use ESP32 as slave on i2c bus you have to use ESP32_I2C_Slave c++ library:

platformio lib_deps = ESP32 I2C Slave https://github.com/gutierrezps/ESP32_I2C_Slave

because the esp32-arduino framework not allowed you to use ESP32 as i2c slave.

The ESP32 I2C Slave library do the job on 2 ESP32 or Arduino + ESP32 but not with python master on raspberry pi.

So i convert parts of this library to python classes.

To use these classes you must need to install:

pip install adafruit-blinka
pip install adafruit-extended-bus

Follow examples to read data from master RPI to slave ESP32:
example-read
example-write

to install it use pip:

pip install raspberrypi-esp32-i2c

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raspberrypi-esp32-i2c-0.0.6.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

raspberrypi_esp32_i2c-0.0.6-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page