File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
drivers/display/display_read_write/src Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ static inline uint8_t bytes_per_pixel(enum display_pixel_format pixel_format)
34
34
case PIXEL_FORMAT_RGB_565 :
35
35
case PIXEL_FORMAT_BGR_565 :
36
36
return 2 ;
37
+ case PIXEL_FORMAT_L_8 :
37
38
case PIXEL_FORMAT_MONO01 :
38
39
case PIXEL_FORMAT_MONO10 :
39
40
default :
Original file line number Diff line number Diff line change @@ -104,8 +104,9 @@ void *setup_lvgl(void)
104
104
105
105
#if CONFIG_LV_COLOR_DEPTH_1 == 1
106
106
display_set_pixel_format (display_dev , PIXEL_FORMAT_MONO10 );
107
- #elif CONFIG_LV_COLOR_DEPTH_8 == 1 || CONFIG_LV_COLOR_DEPTH_24 == 1
108
- /* No 8bit display pixel format not supported */
107
+ #elif CONFIG_LV_COLOR_DEPTH_8 == 1
108
+ display_set_pixel_format (display_dev , PIXEL_FORMAT_L_8 );
109
+ #elif CONFIG_LV_COLOR_DEPTH_24 == 1
109
110
display_set_pixel_format (display_dev , PIXEL_FORMAT_RGB_888 );
110
111
#elif CONFIG_LV_COLOR_DEPTH_16 == 1
111
112
display_set_pixel_format (display_dev , PIXEL_FORMAT_RGB_565 );
You can’t perform that action at this time.
0 commit comments