1# Copyright (c) 2019 Jan Van Winkel <jan.van_winkel@dxplore.eu>
2# SPDX-License-Identifier: Apache-2.0
3
4if SHIELD_ST7789V_TL019FQV01 || SHIELD_ST7789V_WAVESHARE_240X240
5
6if DISPLAY
7
8config SPI
9	default y
10
11config ST7789V
12	default y
13
14choice ST7789V_PIXEL_FORMAT
15	default ST7789V_RGB888 if SHIELD_ST7789V_TL019FQV01
16	default ST7789V_RGB565 if SHIELD_ST7789V_WAVESHARE_240X240
17endchoice
18
19if LVGL
20
21config LVGL_DISPLAY_DEV_NAME
22	default "ST7789V"
23
24config LVGL_HOR_RES_MAX
25	default 320 if SHIELD_ST7789V_TL019FQV01
26	default 240 if SHIELD_ST7789V_WAVESHARE_240X240
27
28config LVGL_VER_RES_MAX
29	default 170 if SHIELD_ST7789V_TL019FQV01
30	default 240 if SHIELD_ST7789V_WAVESHARE_240X240
31
32config LVGL_BITS_PER_PIXEL
33	default 24 if SHIELD_ST7789V_TL019FQV01
34	default 16 if SHIELD_ST7789V_WAVESHARE_240X240
35
36choice LVGL_COLOR_DEPTH
37	default LVGL_COLOR_DEPTH_16 if SHIELD_ST7789V_WAVESHARE_240X240
38endchoice
39
40config LVGL_COLOR_16_SWAP
41	default y if SHIELD_ST7789V_WAVESHARE_240X240
42
43endif # LVGL
44
45endif # DISPLAY
46
47endif # SHIELD_ST7789V_TL019FQV01 || SHIELD_ST7789V_WAVESHARE_240X240
48