Skip to content

Conversation

C47D
Copy link
Collaborator

@C47D C47D commented Jan 20, 2021

I've working on improving the SSD1306 display driver, hopefully this changes also help us to start working on the MCU independent drivers.

TO DO:

  • Update comments
  • Handle errors on data transmission

C47D added 5 commits January 16, 2021 23:49
For monochrome displays each byte of the buffer size can store data for 8 pixels.

We divide LV_VER_RES_MAX by 8 because the display vertical side is grouped in
pages of 1 byte, so we need 1byte times LV_HOR_RES_MAX to represent the data of
one page.
@C47D C47D requested review from embeddedt and kisvegabor January 20, 2021 05:59
Copy link
Member

@kisvegabor kisvegabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a small question.

@C47D
Copy link
Collaborator Author

C47D commented Jan 21, 2021

d504887 changes the display buffer size, from 8192 to 1024 bytes when using the 128*64 px display. As far as I know, the display buffer for monochrome displays should be "in pixels", am I right?

@kisvegabor
Copy link
Member

As far as I know, the display buffer for monochrome displays should be "in pixels", am I right?

Yes, it's in pixels. So 128 x 64 / 8 = 1 kB is correct.

@C47D C47D marked this pull request as ready for review January 22, 2021 16:13
@C47D
Copy link
Collaborator Author

C47D commented Jan 22, 2021

This is ready to be reviewed, I choosed assert over error handling on data transmission because it shouldn't fail.

@C47D C47D merged commit c964496 into master Jan 24, 2021
@C47D C47D deleted the feat/ssd1306_partial_update branch January 24, 2021 17:01
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.

3 participants