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

Feat/ssd1306 partial update #23

Merged
merged 9 commits into from
Jan 24, 2021
Merged

Feat/ssd1306 partial update #23

merged 9 commits into from
Jan 24, 2021

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

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.
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.

lvgl_tft/ssd1306.c Outdated Show resolved Hide resolved
@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.

None yet

3 participants