Skip to content

Commit

Permalink
完善蓝牙配置Kconfig.defconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Xmj <[email protected]>
  • Loading branch information
Deer-Xmj authored Sep 5, 2024
1 parent c76e5aa commit c6fd9c8
Showing 1 changed file with 24 additions and 80 deletions.
104 changes: 24 additions & 80 deletions config/boards/shields/rolio/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c6fd9c8

Please sign in to comment.