Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum bytes per message #6

Open
xpeedster opened this issue Apr 2, 2020 · 1 comment
Open

Maximum bytes per message #6

xpeedster opened this issue Apr 2, 2020 · 1 comment

Comments

@xpeedster
Copy link

Hi, in my actual project I need to send a payload of 12 bytes using i2c. I have tried it, but only 4 bytes are sent in a single I2C message. Is there a maximum payload size of 4 bytes? If this is it, can this be changed?

Thank you for the help.

@amaork
Copy link
Owner

amaork commented Apr 3, 2020

Single I2C message, maximum payload is controlled by I2CDevice.page_bytes, read your I2C device datasheet to get this parameter, or just adjust page_bytes to 16 or larger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants