Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mklhx/raspberry_pi_master_for_esp32_i2c_slave
Python classes to use Raspberry Pi as master i2c on ESP32 using ESP32_i2c_slave library
https://github.com/mklhx/raspberry_pi_master_for_esp32_i2c_slave
esp32 esp32-arduino i2c-bus i2c-slave python raspberry-pi
Last synced: 2 months ago
JSON representation
Python classes to use Raspberry Pi as master i2c on ESP32 using ESP32_i2c_slave library
- Host: GitHub
- URL: https://github.com/mklhx/raspberry_pi_master_for_esp32_i2c_slave
- Owner: MkLHX
- Created: 2020-09-28T09:58:32.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-09T08:29:59.000Z (over 3 years ago)
- Last Synced: 2024-04-25T07:20:26.064Z (8 months ago)
- Topics: esp32, esp32-arduino, i2c-bus, i2c-slave, python, raspberry-pi
- Language: Python
- Homepage: https://mklhx.github.io/Raspberry_Pi_Master_for_ESP32_I2C_SLAVE/
- Size: 26.4 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raspberry_Pi_Master_for_ESP32_I2C_SLAVE
# This Python lib only works with the v0.2.0 of the c++ library https://github.com/gutierrezps/ESP32_I2C_Slave/releases/tag/v0.2.0## 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_Slavebecause 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-busFollow examples to read data from master RPI to slave ESP32:
[example-read](/example/raspberry_pi_read_esp32.py)
[example-write](/example/raspberry_pi_write_esp32.py)
[example-slave-side](/example/esp32_slave_side.cpp)to install it use pip:
>pip install raspberrypi-esp32-i2c