mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-04-04 12:25:17 -05:00
Adds serial VCOM inversion command settings for the Nice! View shield, which fixes the DC biased state the LCD was previously in when using this shield
60 lines
1.2 KiB
Plaintext
60 lines
1.2 KiB
Plaintext
# Copyright (c) 2023 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
if SHIELD_NICE_VIEW
|
|
|
|
config LS0XX_VCOM_THREAD_PRIO
|
|
default 11
|
|
|
|
config LV_Z_VDB_SIZE
|
|
default 100
|
|
|
|
config LV_DPI_DEF
|
|
default 161
|
|
|
|
config LV_Z_BITS_PER_PIXEL
|
|
default 1
|
|
|
|
choice LV_COLOR_DEPTH
|
|
default LV_COLOR_DEPTH_1
|
|
endchoice
|
|
|
|
choice ZMK_DISPLAY_WORK_QUEUE
|
|
default ZMK_DISPLAY_WORK_QUEUE_DEDICATED
|
|
endchoice
|
|
|
|
choice ZMK_DISPLAY_STATUS_SCREEN
|
|
default ZMK_DISPLAY_STATUS_SCREEN_CUSTOM
|
|
endchoice
|
|
|
|
config LV_Z_MEM_POOL_SIZE
|
|
default 8192 if ZMK_DISPLAY_STATUS_SCREEN_CUSTOM
|
|
default 5120 if ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN
|
|
|
|
config ZMK_DISPLAY_STATUS_SCREEN_CUSTOM
|
|
imply NICE_VIEW_WIDGET_STATUS
|
|
|
|
config NICE_VIEW_WIDGET_STATUS
|
|
bool "Custom nice!view status widget"
|
|
select LV_FONT_MONTSERRAT_16
|
|
select LV_USE_IMAGE
|
|
select LV_USE_CANVAS
|
|
|
|
config NICE_VIEW_WIDGET_INVERTED
|
|
bool "Invert custom status widget colors"
|
|
|
|
if !ZMK_SPLIT || ZMK_SPLIT_ROLE_CENTRAL
|
|
|
|
config NICE_VIEW_WIDGET_STATUS
|
|
select LV_FONT_MONTSERRAT_18
|
|
select LV_FONT_MONTSERRAT_14
|
|
select LV_FONT_UNSCII_8
|
|
select ZMK_WPM
|
|
|
|
endif # !ZMK_SPLIT || ZMK_SPLIT_ROLE_CENTRAL
|
|
|
|
config ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN
|
|
select LV_FONT_MONTSERRAT_26
|
|
|
|
endif # SHIELD_NICE_VIEW
|