From 55776beb142259f55ee0e4db7d28d6f08af6dd94 Mon Sep 17 00:00:00 2001 From: Xmj <146149506+Deer-Xmj@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=88=B0=E8=BF=87=E5=8E=BB?= =?UTF-8?q?=E7=9A=84deconfig=E8=BF=9B=E8=A1=8C=E6=B5=8B=E8=AF=95?= 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/Kconfig.defconfig | 123 +++++++++++++----- 1 file changed, 93 insertions(+), 30 deletions(-) diff --git a/config/boards/shields/rolio/Kconfig.defconfig b/config/boards/shields/rolio/Kconfig.defconfig index 70bb2bf..f18c108 100644 --- a/config/boards/shields/rolio/Kconfig.defconfig +++ b/config/boards/shields/rolio/Kconfig.defconfig @@ -1,47 +1,110 @@ if SHIELD_ROLIO_LEFT - # 定义键盘名称 - config ZMK_KEYBOARD_NAME - default "yz_rolio" + +config ZMK_KEYBOARD_NAME + default "yz_rolio" + +config ZMK_SPLIT_ROLE_CENTRAL + default y + +endif + +if SHIELD_ROLIO_LEFT || SHIELD_ROLIO_RIGHT + + + # 增大堆栈大小至4096 + config ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE + int "Stack size for dedicated UI thread/queue" + default 4096 + + # 启用 OLED 显示支持 + config ZMK_DISPLAY + default y + + # 启用蓝牙功能 + config ZMK_BLE + default y + + # 启用蓝牙配对功能 + config BT + default y + config BT_PERIPHERAL + default y + + # 启用 USB 功能(可选) + config ZMK_USB + default y + + # 启用分体键盘支持 + config ZMK_SPLIT + default y # 配置分体键盘的中心角色 config ZMK_SPLIT_ROLE_CENTRAL default y -endif -if SHIELD_ROLIO_LEFT||SHIELD_ROLIO_RIGHT -config ZMK_SPLIT - default y + # 启用 I2C + config I2C + default y -# 启用蓝牙配对功能 -config BT - default y -config BT_PERIPHERAL - default y -if ZMK_DISPLAY + # 启用 SSD1306 显示驱动 + config SSD1306 + default y -config I2C - default y + # LVGL 显示配置 + config LV_Z_VDB_SIZE + default 64 -config SSD1306 - default y + config LV_DPI_DEF + default 148 -endif # ZMK_DISPLAY + config LV_Z_BITS_PER_PIXEL + default 1 -if LVGL + choice LV_COLOR_DEPTH + default LV_COLOR_DEPTH_1 + endchoice -config LV_Z_VDB_SIZE - default 64 + # 启用 ZMK 自带的 LVGL 画面 + config ZMK_WIDGET_BATTERY + bool "Enable battery widget" + default y -config LV_DPI_DEF - default 148 -config LV_Z_BITS_PER_PIXEL - default 1 + # 启用深度睡眠 + config ZMK_SLEEP + bool "Enable deep sleep support" + default y + # 配置休眠和深度睡眠超时时间(单位为毫秒) + config ZMK_IDLE_TIMEOUT + int "Time before entering sleep mode (ms)" + default 3000 # -choice LV_COLOR_DEPTH - default LV_COLOR_DEPTH_1 -endchoice + config ZMK_IDLE_SLEEP_TIMEOUT + int "Time before entering deep sleep mode (ms)" + default 1000 # -endif # LVGL + # 自动关闭空闲时灯光 + config ZMK_RGB_UNDERGLOW_AUTO_OFF_IDLE + bool "Automatically turn off RGB when idle" + default y + + # 自动关闭 USB 连接变化时灯光 + config ZMK_RGB_UNDERGLOW_AUTO_OFF_USB + bool "Automatically turn off RGB when USB state changes" + default y + config ZMK_IDLE_TIMEOUT + int "Time before entering sleep mode (ms)" + default 3000 # 空闲时进入睡眠模式的时间(毫秒) + + config ZMK_IDLE_SLEEP_TIMEOUT + int "Time before entering deep sleep mode (ms)" + default 4000 # 空闲时进入深度睡眠模式的时间(毫秒) + + config PWM + default y + + config LED_PWM + default y + +endif # ZMK_BACKLIGHT -endif