2019-12-10 21:34:46 +08:00
|
|
|
# Copyright (c) 2019 Linaro Limited
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-09-12 03:33:09 +08:00
|
|
|
if SHIELD_SSD1306_128X64 || SHIELD_SSD1306_128X64_SPI || SHIELD_SSD1306_128X32 || SHIELD_SH1106_128X64
|
2019-12-10 21:34:46 +08:00
|
|
|
|
|
|
|
if DISPLAY
|
|
|
|
|
2020-09-12 03:33:09 +08:00
|
|
|
if SHIELD_SSD1306_128X64_SPI
|
|
|
|
|
|
|
|
config SPI
|
|
|
|
default y
|
|
|
|
|
|
|
|
endif # SHIELD_SSD1306_128X64_SPI
|
|
|
|
|
|
|
|
if SHIELD_SSD1306_128X64 || SHIELD_SSD1306_128X32 || SHIELD_SH1106_128X64
|
|
|
|
|
2019-12-10 21:34:46 +08:00
|
|
|
config I2C
|
|
|
|
default y
|
|
|
|
|
2020-09-12 03:33:09 +08:00
|
|
|
endif # SHIELD_SSD1306_128X64 || SHIELD_SSD1306_128X32 || SHIELD_SH1106_128X64
|
|
|
|
|
2019-12-10 21:34:46 +08:00
|
|
|
config SSD1306
|
|
|
|
default y
|
|
|
|
|
2020-01-07 17:27:47 +08:00
|
|
|
choice SSD1306_CONTROLLER_TYPE
|
|
|
|
default SSD1306_SH1106_COMPATIBLE if SHIELD_SH1106_128X64
|
|
|
|
endchoice
|
|
|
|
|
2019-12-10 21:34:46 +08:00
|
|
|
if LVGL
|
|
|
|
|
|
|
|
config LVGL_DISPLAY_DEV_NAME
|
|
|
|
default "SSD1306"
|
|
|
|
|
2020-07-29 21:39:18 +08:00
|
|
|
config LVGL_HOR_RES_MAX
|
2019-12-10 21:34:46 +08:00
|
|
|
default 128
|
|
|
|
|
2020-07-29 21:39:18 +08:00
|
|
|
config LVGL_VER_RES_MAX
|
2019-12-10 21:34:46 +08:00
|
|
|
default 32 if SHIELD_SSD1306_128X32
|
2020-01-07 17:27:47 +08:00
|
|
|
default 64
|
2019-12-10 21:34:46 +08:00
|
|
|
|
|
|
|
config LVGL_VDB_SIZE
|
|
|
|
default 64
|
|
|
|
|
|
|
|
config LVGL_DPI
|
2020-01-07 17:27:47 +08:00
|
|
|
default 116 if SHIELD_SH1106_128X64
|
2019-12-10 21:34:46 +08:00
|
|
|
default 148
|
|
|
|
|
|
|
|
config LVGL_BITS_PER_PIXEL
|
|
|
|
default 1
|
|
|
|
|
|
|
|
choice LVGL_COLOR_DEPTH
|
|
|
|
default LVGL_COLOR_DEPTH_1
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
endif # LVGL
|
|
|
|
|
|
|
|
endif # DISPLAY
|
|
|
|
|
2020-09-12 03:33:09 +08:00
|
|
|
endif # SHIELD_SSD1306_128X64 || SHIELD_SSD1306_128X64_SPI || SHIELD_SSD1306_128X32 || SHIELD_SH1106_128X64
|