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
|
||||
|
||||
# Name must be less than 16 characters long!
|
||||
|
|
@ -8,25 +9,40 @@ config USB_DEVICE_MANUFACTURER
|
|||
config ZMK_SPLIT_ROLE_CENTRAL
|
||||
default y
|
||||
|
||||
config ZMK_DISPLAY
|
||||
default y
|
||||
|
||||
endif
|
||||
|
||||
|
||||
# for Debugging purposes, should never advertise itself
|
||||
if SHIELD_PHIBOARD_LEFT
|
||||
|
||||
config ZMK_KEYBOARD_NAME
|
||||
default "phiboard slave"
|
||||
|
||||
config ZMK_DISPLAY
|
||||
default y
|
||||
|
||||
endif
|
||||
|
||||
|
||||
if SHIELD_PHIBOARD_LEFT || SHIELD_PHIBOARD_RIGHT
|
||||
|
||||
config ZMK_SPLIT
|
||||
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
|
||||
|
|
|
|||
|
|
@ -39,13 +39,13 @@
|
|||
compatible = "solomon,ssd1306fb";
|
||||
reg = <0x3c>;
|
||||
width = <128>;
|
||||
height = <80>;
|
||||
height = <32>;
|
||||
segment-offset = <0>;
|
||||
page-offset = <0>;
|
||||
display-offset = <0>;
|
||||
multiplex-ratio = <31>;
|
||||
//segment-remap;
|
||||
//com-invdir;
|
||||
segment-remap;
|
||||
com-invdir;
|
||||
com-sequential;
|
||||
inversion-on;
|
||||
prechargep = <0x22>;
|
||||
|
|
|
|||
|
|
@ -44,13 +44,13 @@
|
|||
compatible = "solomon,ssd1306fb";
|
||||
reg = <0x3c>;
|
||||
width = <128>;
|
||||
height = <80>;
|
||||
height = <32>;
|
||||
segment-offset = <0>;
|
||||
page-offset = <0>;
|
||||
display-offset = <0>;
|
||||
multiplex-ratio = <31>;
|
||||
//segment-remap;
|
||||
//com-invdir;
|
||||
segment-remap;
|
||||
com-invdir;
|
||||
com-sequential;
|
||||
inversion-on;
|
||||
prechargep = <0x22>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue