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

Add address shift #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samikool
Copy link

@samikool samikool commented Jul 12, 2023

Hello,

I was working with the I2C portion of your library with QEmu and found something I wanted to make you aware of.

I believe the address passed to the i2c_start routine should be shifted by one bit to the left. Since I2C addresses are the upper 7 bits of a byte, the 0th bit being a R/W, most I2C libraries will shift the address passed to the routine like this for the user, so the value passed in correctly shows up in the upper 7 bits of the byte that is sent.

Hope that makes sense, let me know if you have any questions.

Sam

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

Successfully merging this pull request may close these issues.

1 participant