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 b0b56a6
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 13 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
7 changes: 5 additions & 2 deletions config/boards/shields/ergonaut_one/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# 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

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
Expand Down
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)
2 changes: 1 addition & 1 deletion config/boards/shields/ergonaut_one/ergonaut_one.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
adjust_layer {
bindings = <
&bootloader &none &none &none &none &none &none &none &none &none &none &bootloader
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 4 &bt BT_SEL 3 &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 &bt BT_CLR
&bt BT_CLR &none &none &none &none &none &none &none &none &none &none &bt BT_CLR
&sys_reset &none &none &none &none &none &none &none &none &none &none &sys_reset
&trans &none &trans &none &trans &trans
>;
Expand Down
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
6 changes: 6 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,6 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT

CONFIG_ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS=2
CONFIG_BT_MAX_CONN=7
CONFIG_BT_MAX_PAIRED=7
18 changes: 18 additions & 0 deletions config/boards/shields/ergonaut_one/ergonaut_one_dongle.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

#include "ergonaut_one.dtsi"

&kscan0 {
col-gpios
= <&xiao_d 0 GPIO_ACTIVE_HIGH>
, <&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 5 GPIO_ACTIVE_HIGH>
;
};
2 changes: 0 additions & 2 deletions config/boards/shields/ergonaut_one/ergonaut_one_left.conf

This file was deleted.

2 changes: 0 additions & 2 deletions config/boards/shields/ergonaut_one/ergonaut_one_right.conf

This file was deleted.

6 changes: 0 additions & 6 deletions config/ergonaut_one.conf
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT

CONFIG_BT_MAX_CONN=5
CONFIG_BT_MAX_PAIRED=5

CONFIG_ZMK_IDLE_TIMEOUT=30000
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
CONFIG_ZMK_BATTERY_REPORT_INTERVAL=1800

CONFIG_ZMK_USB=y
CONFIG_ZMK_BLE=y

CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

0 comments on commit b0b56a6

Please sign in to comment.