Skip to content

Commit

Permalink
add dongle
Browse files Browse the repository at this point in the history
  • Loading branch information
yumagulovrn committed Dec 21, 2023
1 parent bc84967 commit 55b4953
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ include:
shield: ergonaut_one_left
- board: seeeduino_xiao_ble
shield: ergonaut_one_right
- board: seeeduino_xiao_ble
shield: ergonaut_one_dongle
- board: seeeduino_xiao_ble
shield: settings_reset
13 changes: 11 additions & 2 deletions config/boards/shields/ergonaut_one/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT

if SHIELD_ERGONAUT_ONE_LEFT
if SHIELD_ERGONAUT_ONE_DONGLE

config ZMK_KEYBOARD_NAME
default "Ergonaut One"

config ZMK_SPLIT_ROLE_CENTRAL
default y

config USB_HID_POLL_INTERVAL_MS
default 1

config ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS
default 2

endif

if SHIELD_ERGONAUT_ONE_LEFT || SHIELD_ERGONAUT_ONE_RIGHT
if SHIELD_ERGONAUT_ONE_LEFT || SHIELD_ERGONAUT_ONE_RIGHT || SHIELD_ERGONAUT_ONE_DONGLE

config ZMK_SPLIT
default y

config BT_PERIPHERAL_PREF_MAX_INT
default 6

endif
3 changes: 3 additions & 0 deletions config/boards/shields/ergonaut_one/Kconfig.shield
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ config SHIELD_ERGONAUT_ONE_LEFT

config SHIELD_ERGONAUT_ONE_RIGHT
def_bool $(shields_list_contains,ergonaut_one_right)

config SHIELD_ERGONAUT_ONE_DONGLE
def_bool $(shields_list_contains,ergonaut_one_dongle)
1 change: 1 addition & 0 deletions config/boards/shields/ergonaut_one/ergonaut_one.zmk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ features:
siblings:
- ergonaut_one_left
- ergonaut_one_right
- ergonaut_one_dongle
2 changes: 2 additions & 0 deletions config/boards/shields/ergonaut_one/ergonaut_one_dongle.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

#include "ergonaut_one.dtsi"

0 comments on commit 55b4953

Please sign in to comment.