# 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
Raw data
{
"_id": null,
"home_page": "https://github.com/iory/i2c-for-esp32",
"name": "i2c-for-esp32",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "iory",
"author_email": "yanokura@jsk.imi.i.u-tokyo.ac.jp",
"download_url": "https://files.pythonhosted.org/packages/6e/8e/d21339e2687f09acb7137c1e94bed52bd7d537d3e953499c2caf643c6f69/i2c-for-esp32-0.4.1.tar.gz",
"platform": null,
"description": "# i2c-for-esp32\n\n## Extended Arduino Library for I2C Slave on ESP32\n\nThis repository contains modifications to the original Arduino library found at https://github.com/gutierrezps/ESP32_I2C_Slave .\nThe key enhancement enables the sending of longer packets.\n\nPacket Format\nThe expected packet format is detailed below:\n\n```\n[0]: start byte (0x02)\n[1]: number of packet length bytes (L)\n[2:2+L]: packet length (N)\n[2+L]: data[0]\n[3+L]: data[1]\n...\n[N+1+L]: data[N-1]\n[N+2+L]: CRC8 of packet length and data\n[N+3+L]: end byte (0x04)\n```\n\nFeel free to expand on this by adding any installation, usage instructions or any other relevant details as required.\n\n## Python library\n\n\nWe provide a Python library for exchanging bytearrays received in Python.\n\nYou can install it using the following command:\n\n```\npip install i2c-for-esp32\n```\n\nFor usage instructions, please refer to:\nhttps://github.com/iory/i2c-for-esp32/blob/master/examples/radxa_with_atom_echo/radxa_i2c_audio_publisher.py\n\n## Sample\n\n### Radxa with Atom Echo\n\nA sample that communicates with radxa and atom echo to retrieve audio data from a microphone can be found at:\nhttps://github.com/iory/i2c-for-esp32/tree/master/examples/radxa_with_atom_echo\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "I2C library for ESP32",
"version": "0.4.1",
"project_urls": {
"Homepage": "https://github.com/iory/i2c-for-esp32"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6701454ef69b5c50f23fe63ec0e1439f742beb2f9dba8018e418ed59301ad60d",
"md5": "13d7b9787af1f9c5005b887b36a912c2",
"sha256": "b6e067dafa4589d2998e546723c1403fc87e272e33aa52775845dc22fe4db000"
},
"downloads": -1,
"filename": "i2c_for_esp32-0.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "13d7b9787af1f9c5005b887b36a912c2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 14806,
"upload_time": "2023-08-17T12:32:43",
"upload_time_iso_8601": "2023-08-17T12:32:43.268714Z",
"url": "https://files.pythonhosted.org/packages/67/01/454ef69b5c50f23fe63ec0e1439f742beb2f9dba8018e418ed59301ad60d/i2c_for_esp32-0.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6e8ed21339e2687f09acb7137c1e94bed52bd7d537d3e953499c2caf643c6f69",
"md5": "d56319020b6c57ba748905d34749283c",
"sha256": "31efbcb067a13b430ab5f62530d1abf216eeca54fae304293f4b5128c8b337cf"
},
"downloads": -1,
"filename": "i2c-for-esp32-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "d56319020b6c57ba748905d34749283c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 13835,
"upload_time": "2023-08-17T12:32:44",
"upload_time_iso_8601": "2023-08-17T12:32:44.940837Z",
"url": "https://files.pythonhosted.org/packages/6e/8e/d21339e2687f09acb7137c1e94bed52bd7d537d3e953499c2caf643c6f69/i2c-for-esp32-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-17 12:32:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "iory",
"github_project": "i2c-for-esp32",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "i2c-for-esp32"
}