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

i2c is not very well designed #2

Open
hmaarrfk opened this issue Nov 9, 2019 · 1 comment
Open

i2c is not very well designed #2

hmaarrfk opened this issue Nov 9, 2019 · 1 comment

Comments

@hmaarrfk
Copy link
Member

hmaarrfk commented Nov 9, 2019

The function should be more "stateless"

The user should always have to provide:

  1. The slave address
  2. The slave register size (0 for no slave register)
  3. The slave register MSB/LSB
  4. The slave register itself
  5. The data size
  6. The data transfer direction MSB/LSB
  7. The data to send itself as a single number
@hmaarrfk
Copy link
Member Author

hmaarrfk commented Jun 1, 2021

One potential issue is that there is a 64 character buffer somewhere in the pipeline. I've found that communication with more than 64 characters is often finicky.

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

1 participant