fix(display): More LVGL API fixes.
This commit is contained in:
parent
679c152028
commit
5228a716e3
45 changed files with 26 additions and 70 deletions
|
@ -21,9 +21,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -78,6 +78,7 @@ RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,9 +24,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -55,6 +55,7 @@ RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7)
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
|
@ -22,9 +22,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -94,6 +94,7 @@ RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,9 +14,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,9 +22,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -57,5 +57,6 @@
|
||||||
display-offset = <0>;
|
display-offset = <0>;
|
||||||
multiplex-ratio = <63>;
|
multiplex-ratio = <63>;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
|
inversion-on;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -34,9 +34,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -87,6 +87,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,9 +24,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -85,6 +85,7 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(3,4) RC(3,5) RC(2,5) RC(2,6) RC(2,7)
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
|
@ -22,9 +22,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -77,6 +77,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,9 +24,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -86,6 +86,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,9 +24,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -46,6 +46,7 @@ RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9)
|
||||||
display-offset = <0>;
|
display-offset = <0>;
|
||||||
multiplex-ratio = <31>;
|
multiplex-ratio = <31>;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,9 +14,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,9 +14,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -70,6 +70,7 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,6) RC(4,9)
|
||||||
display-offset = <0>;
|
display-offset = <0>;
|
||||||
multiplex-ratio = <31>;
|
multiplex-ratio = <31>;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,9 +24,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -81,6 +81,7 @@ RC(5,7) RC(5,6) RC(5,5) RC(5,4) RC(5,2) RC(5,0) RC(5,15)
|
||||||
display-offset = <0>;
|
display-offset = <0>;
|
||||||
multiplex-ratio = <31>;
|
multiplex-ratio = <31>;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,9 +24,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -86,6 +86,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,9 +30,6 @@ config SSD1306
|
||||||
config I2C
|
config I2C
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -88,6 +88,7 @@ RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) RC(2,10
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,9 +28,6 @@ config SSD1306
|
||||||
config I2C
|
config I2C
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,9 +30,6 @@ config SSD1306
|
||||||
config I2C
|
config I2C
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -74,6 +74,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,1) RC(4,10) RC(3,6) RC(3,7)
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -28,9 +28,6 @@ config SSD1306
|
||||||
config I2C
|
config I2C
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -74,6 +74,7 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,5) RC(4,6) RC(3,6) RC(3,7)
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -30,9 +30,6 @@ config SSD1306
|
||||||
config I2C
|
config I2C
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,9 +15,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -112,6 +112,7 @@
|
||||||
segment-remap;
|
segment-remap;
|
||||||
com-invdir;
|
com-invdir;
|
||||||
com-sequential;
|
com-sequential;
|
||||||
|
inversion-on;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,9 +22,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -106,5 +106,6 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5)
|
||||||
display-offset = <0>;
|
display-offset = <0>;
|
||||||
multiplex-ratio = <63>;
|
multiplex-ratio = <63>;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
|
inversion-on;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,9 +24,6 @@ config I2C
|
||||||
config SSD1306
|
config SSD1306
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config SSD1306_REVERSE_MODE
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # ZMK_DISPLAY
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
|
@ -84,5 +84,6 @@ RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,7) R
|
||||||
display-offset = <0>;
|
display-offset = <0>;
|
||||||
multiplex-ratio = <31>;
|
multiplex-ratio = <31>;
|
||||||
prechargep = <0x22>;
|
prechargep = <0x22>;
|
||||||
|
inversion-on;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -29,11 +29,11 @@ endchoice
|
||||||
config LV_MEM_CUSTOM
|
config LV_MEM_CUSTOM
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config LV_Z_MEM_POOL_MIN_SIZE
|
# config LV_Z_MEM_POOL_MIN_SIZE
|
||||||
default 32
|
# default 32
|
||||||
|
|
||||||
config LV_Z_MEM_POOL_MAX_SIZE
|
# config LV_Z_MEM_POOL_MAX_SIZE
|
||||||
default 8192
|
# default 8192
|
||||||
|
|
||||||
choice ZMK_DISPLAY_STATUS_SCREEN
|
choice ZMK_DISPLAY_STATUS_SCREEN
|
||||||
prompt "Default status screen for displays"
|
prompt "Default status screen for displays"
|
||||||
|
|
Loading…
Add table
Reference in a new issue