Skip to content

Commit

Permalink
新增OLED配置
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 2062338 commit cbaf45f
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions config/boards/shields/rolio/rolio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit cbaf45f

Please sign in to comment.