zmk: fix display configuration to not glitch anymore
This commit is contained in:
parent
556aba3eba
commit
fd3a8a41f4
4 changed files with 29 additions and 12 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
if SHIELD_PHIBOARD_RIGHT
|
if SHIELD_PHIBOARD_RIGHT
|
||||||
|
|
||||||
# Name must be less than 16 characters long!
|
# Name must be less than 16 characters long!
|
||||||
|
|
@ -8,25 +9,40 @@ config USB_DEVICE_MANUFACTURER
|
||||||
config ZMK_SPLIT_ROLE_CENTRAL
|
config ZMK_SPLIT_ROLE_CENTRAL
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config ZMK_DISPLAY
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# for Debugging purposes, should never advertise itself
|
# for Debugging purposes, should never advertise itself
|
||||||
if SHIELD_PHIBOARD_LEFT
|
if SHIELD_PHIBOARD_LEFT
|
||||||
|
|
||||||
config ZMK_KEYBOARD_NAME
|
config ZMK_KEYBOARD_NAME
|
||||||
default "phiboard slave"
|
default "phiboard slave"
|
||||||
|
|
||||||
config ZMK_DISPLAY
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
if SHIELD_PHIBOARD_LEFT || SHIELD_PHIBOARD_RIGHT
|
if SHIELD_PHIBOARD_LEFT || SHIELD_PHIBOARD_RIGHT
|
||||||
|
|
||||||
config ZMK_SPLIT
|
config ZMK_SPLIT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
if ZMK_DISPLAY
|
||||||
|
config I2C
|
||||||
|
default y
|
||||||
|
config SSD1306
|
||||||
|
default y
|
||||||
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
|
if LVGL
|
||||||
|
config LV_Z_VDB_SIZE
|
||||||
|
default 64
|
||||||
|
config LV_DPI_DEF
|
||||||
|
default 148
|
||||||
|
config LV_Z_BITS_PER_PIXEL
|
||||||
|
default 1
|
||||||
|
choice LV_COLOR_DEPTH
|
||||||
|
default LV_COLOR_DEPTH_1
|
||||||
|
endchoice
|
||||||
|
endif # LVGL
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -39,13 +39,13 @@
|
||||||
compatible = "solomon,ssd1306fb";
|
compatible = "solomon,ssd1306fb";
|
||||||
reg = <0x3c>;
|
reg = <0x3c>;
|
||||||
width = <128>;
|
width = <128>;
|
||||||
height = <80>;
|
height = <32>;
|
||||||
segment-offset = <0>;
|
segment-offset = <0>;
|
||||||
page-offset = <0>;
|
page-offset = <0>;
|
||||||
display-offset = <0>;
|
display-offset = <0>;
|
||||||
multiplex-ratio = <31>;
|
multiplex-ratio = <31>;
|
||||||
//segment-remap;
|
segment-remap;
|
||||||
//com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
inversion-on;
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
|
|
|
||||||
|
|
@ -44,13 +44,13 @@
|
||||||
compatible = "solomon,ssd1306fb";
|
compatible = "solomon,ssd1306fb";
|
||||||
reg = <0x3c>;
|
reg = <0x3c>;
|
||||||
width = <128>;
|
width = <128>;
|
||||||
height = <80>;
|
height = <32>;
|
||||||
segment-offset = <0>;
|
segment-offset = <0>;
|
||||||
page-offset = <0>;
|
page-offset = <0>;
|
||||||
display-offset = <0>;
|
display-offset = <0>;
|
||||||
multiplex-ratio = <31>;
|
multiplex-ratio = <31>;
|
||||||
//segment-remap;
|
segment-remap;
|
||||||
//com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
inversion-on;
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=10
|
||||||
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=10
|
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=10
|
||||||
|
|
||||||
|
|
||||||
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
CONFIG_ZMK_WIDGET_LAYER_STATUS=y
|
CONFIG_ZMK_WIDGET_LAYER_STATUS=y
|
||||||
CONFIG_ZMK_WIDGET_BATTERY_STATUS=y
|
CONFIG_ZMK_WIDGET_BATTERY_STATUS=y
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue