From 24b424c1efd11862d1d649c123f1dffa3bf2bd4a Mon Sep 17 00:00:00 2001 From: schwarzgrau Date: Tue, 13 Sep 2022 01:40:01 +0200 Subject: [PATCH] config update --- config/boards/shields/totem/Kconfig.defconfig | 2 +- config/boards/shields/totem/totem.conf | 3 --- config/boards/shields/totem/totem.dtsi | 11 ++++++----- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/config/boards/shields/totem/Kconfig.defconfig b/config/boards/shields/totem/Kconfig.defconfig index 9871440..d6059f0 100644 --- a/config/boards/shields/totem/Kconfig.defconfig +++ b/config/boards/shields/totem/Kconfig.defconfig @@ -10,7 +10,7 @@ endif # LEFT -if SHIELD_TOTEM_LEFT || SHIELD_TOTEM_RIGHT +if SHIELD_TOTEM config ZMK_SPLIT default y diff --git a/config/boards/shields/totem/totem.conf b/config/boards/shields/totem/totem.conf index 29e2d68..e69de29 100644 --- a/config/boards/shields/totem/totem.conf +++ b/config/boards/shields/totem/totem.conf @@ -1,3 +0,0 @@ -# Uncomment these two line to add support for encoders to your firmware -#CONFIG_EC11=y -#CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y \ No newline at end of file diff --git a/config/boards/shields/totem/totem.dtsi b/config/boards/shields/totem/totem.dtsi index a7d1481..571542d 100644 --- a/config/boards/shields/totem/totem.dtsi +++ b/config/boards/shields/totem/totem.dtsi @@ -12,7 +12,7 @@ zmk,matrix_transform = &default_transform; }; - default_transform: keymap_transform { + default_transform: keymap_transform_0 { compatible = "zmk,matrix-transform"; columns = <10>; rows = <4>; @@ -25,15 +25,16 @@ }; - kscan0: kscan { + kscan0: kscan_0 { compatible = "zmk,kscan-gpio-matrix"; label = "KSCAN"; diode-direction = "col2row"; + row-gpios = <&xiao_d 1 GPIO_ACTIVE_HIGH> - , <&xiao_d 2 GPIO_ACTIVE_HIGH> - , <&xiao_d 3 GPIO_ACTIVE_HIGH> - , <&xiao_d 4 GPIO_ACTIVE_HIGH> + , <&xiao_d 2 GPIO_ACTIVE_HIGH> + , <&xiao_d 3 GPIO_ACTIVE_HIGH> + , <&xiao_d 4 GPIO_ACTIVE_HIGH> ; };