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

Window write support for SSD1673 #11351

Merged
merged 8 commits into from
Dec 10, 2018

Conversation

vanwinkeljan
Copy link
Member

Added support for writing to a window instead of the complete display

@codecov-io
Copy link

codecov-io commented Nov 13, 2018

Codecov Report

Merging #11351 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #11351   +/-   ##
=======================================
  Coverage   48.17%   48.17%           
=======================================
  Files         281      281           
  Lines       43362    43362           
  Branches    10393    10393           
=======================================
  Hits        20889    20889           
  Misses      18318    18318           
  Partials     4155     4155

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ec7c73...bfb11c9. Read the comment docs.

@vanwinkeljan
Copy link
Member Author

Addressed doc changes based on @dbkinder comments on PR #9149

Copy link
Contributor

@dbkinder dbkinder left a comment

Choose a reason for hiding this comment

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

+1 for doc changes

@vanwinkeljan
Copy link
Member Author

@jfischer-phytec-iot any input?

drivers/display/ssd1673.c Outdated Show resolved Hide resolved
drivers/display/ssd1673.c Outdated Show resolved Hide resolved
@@ -48,6 +48,10 @@ enum display_screen_info {
* Electrophoretic Display.
*/
SCREEN_INFO_EPD = BIT(2),
/**
* Screen has two alternating ram buffers
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we do multiple writes to one buffer and then trigger update?

Copy link
Member Author

Choose a reason for hiding this comment

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

No currently there is no display_flush function available in the display API.

But SCREEN_INFO_DOUBLE_BUFFER is jut an indication to the higher layers, e.g. incase only a partial update of the display buffer is performed the same partial update needs to happen on the second buffer to keep the display content consistent.

@vanwinkeljan vanwinkeljan force-pushed the ssd1673_window branch 2 times, most recently from 2dba962 to 5a7cd31 Compare November 27, 2018 17:09
Copy link
Collaborator

@jfischer-no jfischer-no left a comment

Choose a reason for hiding this comment

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

Please split 171c4f440d392618e905eec78d4762ae457476c5 in logical peaces and remove unnecessary code changes, keep the driver design and structure.

drivers/display/ssd1673.c Show resolved Hide resolved
drivers/display/ssd1673.c Show resolved Hide resolved
drivers/display/ssd1673.c Show resolved Hide resolved
drivers/display/ssd1673.c Show resolved Hide resolved
drivers/display/ssd1673.c Show resolved Hide resolved
include/display.h Outdated Show resolved Hide resolved
drivers/display/ssd1673.c Show resolved Hide resolved
drivers/display/ssd1673.c Show resolved Hide resolved
drivers/display/ssd1673.c Show resolved Hide resolved
drivers/display/ssd1673.c Show resolved Hide resolved
@vanwinkeljan vanwinkeljan force-pushed the ssd1673_window branch 2 times, most recently from ee00298 to 4a7db51 Compare November 30, 2018 22:07
@vanwinkeljan
Copy link
Member Author

@jfischer-phytec-iot Splitted commits as requested and provided replies where needed

@vanwinkeljan vanwinkeljan force-pushed the ssd1673_window branch 2 times, most recently from 93af899 to 4326dbc Compare December 1, 2018 18:40
@nashif
Copy link
Member

nashif commented Dec 4, 2018

@jfischer-phytec-iot feedback please

Moved the overlay configuration files to board directory.

Signed-off-by: Jan Van Winkel <[email protected]>
Set width, height and pitch dimensions in character framebuffer before
calling display write API.

Signed-off-by: Jan Van Winkel <[email protected]>
Allow to set supported pixel format in ssd1306 & ssd1673 drivers

Signed-off-by: Jan Van Winkel <[email protected]>
Added missing API function set_orientation to ssd1306 & ssd1673
drivers.

Signed-off-by: Jan Van Winkel <[email protected]>
Return correct error codes in SSD1673 driver instead of -1

Signed-off-by: Jan Van Winkel <[email protected]>
Clear SSD1673 display during display driver initialization instead of
triggering clear via setting contrast.

Signed-off-by: Jan Van Winkel <[email protected]>
Added support to the SSD1673 dipslay for partially writing the display

Signed-off-by: Jan Van Winkel <[email protected]>
Added missing README.rst for character frame buffer sample

Signed-off-by: Jan Van Winkel <[email protected]>
@vanwinkeljan
Copy link
Member Author

@jfischer-phytec-iot any further input?

@nashif nashif merged commit 49466e0 into zephyrproject-rtos:master Dec 10, 2018
@vanwinkeljan vanwinkeljan deleted the ssd1673_window branch December 10, 2018 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants