summaryrefslogtreecommitdiff
path: root/app/boards/shields/lily58
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-12-12 23:13:49 -0500
committerPete Johanson <peter@peterjohanson.com>2020-12-28 10:16:24 -0500
commit4db5b169bff1f3de5353324baef5724be4f9a6a5 (patch)
treec690932524a26fb28e20528fe1d2b1745dae195a /app/boards/shields/lily58
parent842aa5a842e117b7b00e49258ca0bde44dc0c789 (diff)
refactor(splits): Ability to override split role.
* Move central/peripheral setting to Kconfig.defconfig files to allow left/right .conf files to override central/peripheral role for splits.
Diffstat (limited to 'app/boards/shields/lily58')
-rw-r--r--app/boards/shields/lily58/Kconfig.defconfig7
-rw-r--r--app/boards/shields/lily58/lily58_left.conf3
-rw-r--r--app/boards/shields/lily58/lily58_right.conf3
3 files changed, 8 insertions, 5 deletions
diff --git a/app/boards/shields/lily58/Kconfig.defconfig b/app/boards/shields/lily58/Kconfig.defconfig
index 81feefd..915cc70 100644
--- a/app/boards/shields/lily58/Kconfig.defconfig
+++ b/app/boards/shields/lily58/Kconfig.defconfig
@@ -4,6 +4,9 @@ if SHIELD_LILY58_LEFT
config ZMK_KEYBOARD_NAME
default "Lily58 Left"
+config ZMK_SPLIT_BLE_ROLE_CENTRAL
+ default y
+
endif
if SHIELD_LILY58_RIGHT
@@ -15,6 +18,9 @@ endif
if SHIELD_LILY58_LEFT || SHIELD_LILY58_RIGHT
+config ZMK_SPLIT
+ default y
+
if ZMK_DISPLAY
config I2C
@@ -52,3 +58,4 @@ endchoice
endif # LVGL
endif
+
diff --git a/app/boards/shields/lily58/lily58_left.conf b/app/boards/shields/lily58/lily58_left.conf
index 6ff95d5..24f8d77 100644
--- a/app/boards/shields/lily58/lily58_left.conf
+++ b/app/boards/shields/lily58/lily58_left.conf
@@ -1,6 +1,3 @@
# Uncomment to enable encoder
# CONFIG_EC11=y
# CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
-
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_CENTRAL=y \ No newline at end of file
diff --git a/app/boards/shields/lily58/lily58_right.conf b/app/boards/shields/lily58/lily58_right.conf
index 990cf7c..8b13789 100644
--- a/app/boards/shields/lily58/lily58_right.conf
+++ b/app/boards/shields/lily58/lily58_right.conf
@@ -1,2 +1 @@
-CONFIG_ZMK_SPLIT=y
-CONFIG_ZMK_SPLIT_BLE_ROLE_PERIPHERAL=y
+