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.5.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

raspberrypi_esp32_i2c-0.0.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file raspberrypi-esp32-i2c-0.0.5.tar.gz.

File metadata

  • Download URL: raspberrypi-esp32-i2c-0.0.5.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for raspberrypi-esp32-i2c-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7fde85ece22c21ee7ff444ba1ac83abf371de5773ae1460152a5dd26c2003ebf
MD5 1d84566c4aa545c5ff75b943a11c601a
BLAKE2b-256 0f9669a782f78dc535a36dfabac5f8a1aba174dceb72d42f269e9b4205e5e71d

See more details on using hashes here.

File details

Details for the file raspberrypi_esp32_i2c-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: raspberrypi_esp32_i2c-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for raspberrypi_esp32_i2c-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eaed5923eda87c72aea046582966fc4ab6b3602d735b56d0874e491ca53fba06
MD5 4aa1e37778dc225812a64d296c5b852b
BLAKE2b-256 caf732389e83f294ee579a88201b3bbb68b76068eb738cf1780f0015f518220e

See more details on using hashes here.

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