Skip to main content

I2C library for ESP32

Project description

i2c-for-esp32

Extended Arduino Library for I2C Slave on ESP32

This repository contains modifications to the original Arduino library found at https://github.com/gutierrezps/ESP32_I2C_Slave . The key enhancement enables the sending of longer packets.

Packet Format The expected packet format is detailed below:

[0]: start byte (0x02)
[1]: number of packet length bytes (L)
[2:2+L]: packet length (N)
[2+L]: data[0]
[3+L]: data[1]
...
[N+1+L]: data[N-1]
[N+2+L]: CRC8 of packet length and data
[N+3+L]: end byte (0x04)

Feel free to expand on this by adding any installation, usage instructions or any other relevant details as required.

Python library

We provide a Python library for exchanging bytearrays received in Python.

You can install it using the following command:

pip install i2c-for-esp32

For usage instructions, please refer to: https://github.com/iory/i2c-for-esp32/blob/master/examples/radxa_with_atom_echo/radxa_i2c_audio_publisher.py

Sample

Radxa with Atom Echo

A sample that communicates with radxa and atom echo to retrieve audio data from a microphone can be found at: https://github.com/iory/i2c-for-esp32/tree/master/examples/radxa_with_atom_echo

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

i2c-for-esp32-0.4.1.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

i2c_for_esp32-0.4.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file i2c-for-esp32-0.4.1.tar.gz.

File metadata

  • Download URL: i2c-for-esp32-0.4.1.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for i2c-for-esp32-0.4.1.tar.gz
Algorithm Hash digest
SHA256 31efbcb067a13b430ab5f62530d1abf216eeca54fae304293f4b5128c8b337cf
MD5 d56319020b6c57ba748905d34749283c
BLAKE2b-256 6e8ed21339e2687f09acb7137c1e94bed52bd7d537d3e953499c2caf643c6f69

See more details on using hashes here.

File details

Details for the file i2c_for_esp32-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for i2c_for_esp32-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6e067dafa4589d2998e546723c1403fc87e272e33aa52775845dc22fe4db000
MD5 13d7b9787af1f9c5005b887b36a912c2
BLAKE2b-256 6701454ef69b5c50f23fe63ec0e1439f742beb2f9dba8018e418ed59301ad60d

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