From cbaf45f8e6da350fe6ed31d624a7f2dd3e0777b0 Mon Sep 17 00:00:00 2001 From: Xmj <146149506+Deer-Xmj@users.noreply.github.com> Date: Thu, 5 Sep 2024 11:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EOLED=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Xmj <146149506+Deer-Xmj@users.noreply.github.com> --- config/boards/shields/rolio/rolio.conf | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/config/boards/shields/rolio/rolio.conf b/config/boards/shields/rolio/rolio.conf index a9efe1f..a93e90a 100644 --- a/config/boards/shields/rolio/rolio.conf +++ b/config/boards/shields/rolio/rolio.conf @@ -2,8 +2,7 @@ # CONFIG_ZMK_RGB_UNDERGLOW=y # CONFIG_WS2812_STRIP=y -# Uncomment the following line to enable the Corne OLED Display -CONFIG_ZMK_DISPLAY=y + # 禁用外部电源关闭修复显示器会随灯关闭的问题,临时解决办法 #CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER=n @@ -38,9 +37,23 @@ CONFIG_ZMK_IDLE_TIMEOUT=15000 CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=5 CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=5 -# Confgure Widget Screen + +# Uncomment the following line to enable the Corne OLED Display +CONFIG_ZMK_DISPLAY=y CONFIG_ZMK_DISPLAY_STATUS_SCREEN_BUILT_IN=y CONFIG_ZMK_LV_FONT_DEFAULT_SMALL_MONTSERRAT_20=y CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20=y CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y CONFIG_ZMK_WIDGET_WPM_STATUS=y + +# OLED config + +CONFIG_I2C=y +CONFIG_SSD1306=y +CONFIG_SSD1306_REVERSE_MODE=y +CONFIG_LVGL_HOR_RES_MAX=128 +CONFIG_LVGL_VER_RES_MAX=32 +CONFIG_LVGL_VDB_SIZE=64 +CONFIG_LVGL_DPI=148 +CONFIG_LVGL_BITS_PER_PIXEL=1 +CONFIG_LVGL_COLOR_DEPTH_1=y