Skip to content

Commit

Permalink
fix dongle build error
Browse files Browse the repository at this point in the history
Co-Authored-By: egokb <156652167+egokb@users.noreply.github.com>
  • Loading branch information
egokb and egokb committed Jul 24, 2024
1 parent bb2be0c commit 666941a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
3 changes: 3 additions & 0 deletions config/boards/shields/ego62/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ config ZMK_KEYBOARD_NAME
config ZMK_SPLIT_ROLE_CENTRAL
default y

config ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS
default 2

endif

if SHIELD_EGO62_DONGLE || SHIELD_EGO62_LEFT || SHIELD_EGO62_RIGHT
Expand Down
3 changes: 0 additions & 3 deletions config/boards/shields/ego62/ego62_dongle.conf
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
CONFIG_ZMK_SPLIT=y
CONFIG_ZMK_SPLIT_ROLE_CENTRAL=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS=2
27 changes: 27 additions & 0 deletions config/boards/shields/ego62/ego62_dongle.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

#include "ego62.dtsi"

&kscan0 {
row-gpios
= <&gpio0 17 GPIO_ACTIVE_HIGH>
, <&gpio0 15 GPIO_ACTIVE_HIGH>
, <&gpio0 24 GPIO_ACTIVE_HIGH>
, <&gpio0 20 GPIO_ACTIVE_HIGH>
, <&gpio1 2 GPIO_ACTIVE_HIGH>
;

col-gpios
= <&gpio1 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 22 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio1 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
1 change: 0 additions & 1 deletion config/boards/shields/ego62/ego62_left.conf
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
CONFIG_ZMK_SPLIT=y
1 change: 0 additions & 1 deletion config/boards/shields/ego62/ego62_right.conf
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
CONFIG_ZMK_SPLIT=y

0 comments on commit 666941a

Please sign in to comment.