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

Why horizontal setting should seperate to 8 #56

Open
B3B3K opened this issue Jul 22, 2023 · 2 comments
Open

Why horizontal setting should seperate to 8 #56

B3B3K opened this issue Jul 22, 2023 · 2 comments

Comments

@B3B3K
Copy link

B3B3K commented Jul 22, 2023

I cant handle the hole pixels for wake cause horizontal miss, how i can change .cpp file to write to directly in y coordinate?
(I had tried it about remove offset but idk what is the mean off offset in this case, lol my fault but i have miss )

@datacute
Copy link
Owner

The hardware requires overwriting 8 pixels (1 byte) at a time, and doesn't allow reading what is already set.
To work out the y coordinate, you need the high bits for the 'page' number, and low 3 bits to identify the bit within the byte, however you need to set or clear all 8 bits in the byte to the required values before you send it to the screen.

@B3B3K
Copy link
Author

B3B3K commented Aug 20, 2023

That means, when i setting coordinate on oled and placing pixel, i should think about its hex value (for serious :D measurements :D), right?

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