Skip to content

Commit 7472a79

Browse files
Finomniscfriedt
authored andcommitted
lvgl: Add support for AL_88 color
While both LVGL and Zephyr support AL_88 color, the glue to connect them was still missing. Now AL_88 should be fully supported by Zephyr+LVGL. Signed-off-by: Martin Stumpf <[email protected]>
1 parent f3ea237 commit 7472a79

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/lvgl/lvgl_display.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ int set_lvgl_rendering_cb(lv_display_t *display)
102102
lv_display_add_event_cb(display, lvgl_rounder_cb, LV_EVENT_INVALIDATE_AREA,
103103
display);
104104
break;
105+
case PIXEL_FORMAT_AL_88:
106+
lv_display_set_color_format(display, LV_COLOR_FORMAT_AL88);
107+
lv_display_set_flush_cb(display, lvgl_flush_cb_16bit);
108+
lv_display_add_event_cb(display, lvgl_rounder_cb, LV_EVENT_INVALIDATE_AREA,
109+
display);
110+
break;
105111
case PIXEL_FORMAT_MONO01:
106112
case PIXEL_FORMAT_MONO10:
107113
lv_display_set_color_format(display, LV_COLOR_FORMAT_I1);

0 commit comments

Comments
 (0)