-
Notifications
You must be signed in to change notification settings - Fork 29
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
How do I access the display buffer? #10
Comments
Well you can access the buffer directly. See https://github.com/daschr/pico-ssd1306/blob/main/ssd1306.c#L143 to get an idea how to access a pixel. The buffer is horizontally line by line encoded where You could use something like this:
|
Hey, sorry for the late reply, so if I understand it correctly, you store the pixels in an array of uint8_t, where each 1 or 0 is a pixel except the most significant digit, which stores the y value? |
Do you like reserve the most significant nibble for all 64 lines of y ? |
I think my explanation was a bad. |
Hey,
is there a way to directly access the data stored in the framebuffer that is created in the
ssd1306_init()
?I tried
printf("%d", *oled.buffer);
, but it prints zeros for me.The text was updated successfully, but these errors were encountered: