* Refactor common parts of the Microdox sheild into a separate file. This is in preparation for adding Microdox V2 as another shield in the same directory. * Refactor Microdox keymap into a common file in preparation for Microdox V2 * Add Microdox V2 shield definition * Added a README to explain v1/v2 differences.
49 lines
703 B
Text
49 lines
703 B
Text
# Copyright (c) 2020 The ZMK Contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
if SHIELD_MICRODOX_LEFT || SHIELD_MICRODOX_V2_LEFT
|
|
|
|
config ZMK_KEYBOARD_NAME
|
|
default "Microdox"
|
|
|
|
config ZMK_SPLIT_ROLE_CENTRAL
|
|
default y
|
|
|
|
endif
|
|
|
|
if SHIELD_MICRODOX_LEFT || SHIELD_MICRODOX_RIGHT || SHIELD_MICRODOX_V2_LEFT || SHIELD_MICRODOX_V2_RIGHT
|
|
|
|
config ZMK_SPLIT
|
|
default y
|
|
|
|
if ZMK_DISPLAY
|
|
|
|
config I2C
|
|
default y
|
|
|
|
config SSD1306
|
|
default y
|
|
|
|
config SSD1306_REVERSE_MODE
|
|
default y
|
|
|
|
endif # ZMK_DISPLAY
|
|
|
|
if LVGL
|
|
|
|
config LV_Z_VDB_SIZE
|
|
default 64
|
|
|
|
config LV_Z_DPI
|
|
default 148
|
|
|
|
config LV_Z_BITS_PER_PIXEL
|
|
default 1
|
|
|
|
choice LV_COLOR_DEPTH
|
|
default LV_COLOR_DEPTH_1
|
|
endchoice
|
|
|
|
endif # LVGL
|
|
|
|
endif
|