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

The drawing position of the image shifts 8 pixels to the right. #249

Open
8ga3 opened this issue Oct 12, 2023 · 0 comments
Open

The drawing position of the image shifts 8 pixels to the right. #249

8ga3 opened this issue Oct 12, 2023 · 0 comments

Comments

@8ga3
Copy link

8ga3 commented Oct 12, 2023

https://github.com/cnlohr/ch32v003fun/blob/f1820f2995e146ce8be0e3a94cb34a53d8238061/examples/i2c_oled/ssd1306.h#L268C39-L268C39

I modified the ssd1306_drawImage() function.
working fine, probably.

- x_absolute = x + 8 * (bytes_to_draw - byte) + pixel;
+ x_absolute = x + 8 * (bytes_to_draw - 1 - byte) + pixel;
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