Skip to content

Commit 49ffca4

Browse files
vanwinkeljannashif
authored andcommitted
display: Added double buffer screen info to display API
Extend display API screen info with double buffer enum entry. Signed-off-by: Jan Van Winkel <[email protected]>
1 parent a26fe1e commit 49ffca4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

drivers/display/ssd1673.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ static void ssd1673_get_capabilities(const struct device *dev,
334334
caps->current_pixel_format = PIXEL_FORMAT_MONO10;
335335
caps->screen_info = SCREEN_INFO_MONO_VTILED |
336336
SCREEN_INFO_MONO_MSB_FIRST |
337-
SCREEN_INFO_EPD;
337+
SCREEN_INFO_EPD |
338+
SCREEN_INFO_DOUBLE_BUFFER;
338339
}
339340

340341
static int ssd1673_set_orientation(const struct device *dev,

include/display.h

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ enum display_screen_info {
4949
* Electrophoretic Display.
5050
*/
5151
SCREEN_INFO_EPD = BIT(2),
52+
/**
53+
* Screen has two alternating ram buffers
54+
*/
55+
SCREEN_INFO_DOUBLE_BUFFER = BIT(3),
5256
};
5357

5458
/**

0 commit comments

Comments
 (0)