From c6fd9c8f1dd8d3fa5152a1b7a3c7ccae90180846 Mon Sep 17 00:00:00 2001 From: Xmj <146149506+Deer-Xmj@users.noreply.github.com> Date: Thu, 5 Sep 2024 16:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=93=9D=E7=89=99=E9=85=8D?= =?UTF-8?q?=E7=BD=AEKconfig.defconfig?= 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 | 104 ++++-------------- 1 file changed, 24 insertions(+), 80 deletions(-) diff --git a/config/boards/shields/rolio/Kconfig.defconfig b/config/boards/shields/rolio/Kconfig.defconfig index fcc3bf6..0297cc3 100644 --- a/config/boards/shields/rolio/Kconfig.defconfig +++ b/config/boards/shields/rolio/Kconfig.defconfig @@ -9,94 +9,38 @@ if SHIELD_A_YZ_KEYBOARD_LEFT endif if SHIELD_A_YZ_KEYBOARD_LEFT||SHIELD_A_YZ_KEYBOARD_RIGHT +config ZMK_SPLIT + default y +# 启用蓝牙配对功能 +config BT + default y +config BT_PERIPHERAL + default y +if ZMK_DISPLAY - +config I2C + default y - # 增大堆栈大小至4096 - config ZMK_DISPLAY_DEDICATED_THREAD_STACK_SIZE - int "Stack size for dedicated UI thread/queue" - default 4096 +config SSD1306 + default y - # 启用 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 - - - - # 启用 I2C - config I2C - default y - - # 启用 SSD1306 显示驱动 - config SSD1306 - default y - - # LVGL 显示配置 - config LV_Z_VDB_SIZE - default 64 +endif # ZMK_DISPLAY - config LV_DPI_DEF - default 148 +if LVGL - config LV_Z_BITS_PER_PIXEL - default 1 +config LV_Z_VDB_SIZE + default 64 - choice LV_COLOR_DEPTH - default LV_COLOR_DEPTH_1 - endchoice +config LV_DPI_DEF + default 148 - # 启用 ZMK 自带的 LVGL 画面 - config ZMK_WIDGET_BATTERY - bool "Enable battery widget" - default y +config LV_Z_BITS_PER_PIXEL + default 1 +choice LV_COLOR_DEPTH + default LV_COLOR_DEPTH_1 +endchoice - # 启用深度睡眠 - config ZMK_SLEEP - bool "Enable deep sleep support" - 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 1000 # - - # 自动关闭空闲时灯光 - 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 PWM - default y - - config LED_PWM - default y +endif # LVGL endif