Skip to content

Commit

Permalink
add dongle
Browse files Browse the repository at this point in the history
  • Loading branch information
ironhee committed Oct 15, 2024
1 parent b782f0a commit 67948fe
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 4 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: totem_left
- board: seeeduino_xiao_ble
shield: totem_right
- board: seeeduino_xiao_ble
shield: totem_dongle
- board: seeeduino_xiao_ble
shield: settings_reset
13 changes: 10 additions & 3 deletions config/boards/shields/totem/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# Copyright (c) 2022 The ZMK Contributors
# SPDX-License-Identifier: MIT

if SHIELD_TOTEM_LEFT
if SHIELD_TOTEM_DONGLE

config ZMK_KEYBOARD_NAME
default "TOTEM"

config ZMK_SPLIT_ROLE_CENTRAL
default y

config ZMK_USB
default y

endif

if SHIELD_TOTEM_LEFT || SHIELD_TOTEM_RIGHT

if SHIELD_TOTEM_LEFT || SHIELD_TOTEM_RIGHT || SHIELD_TOTEM_DONGLE

config ZMK_SPLIT
default y

endif
config ZMK_BLE
default y

endif
5 changes: 4 additions & 1 deletion config/boards/shields/totem/Kconfig.shield
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ config SHIELD_TOTEM_LEFT
def_bool $(shields_list_contains,totem_left)

config SHIELD_TOTEM_RIGHT
def_bool $(shields_list_contains,totem_right)
def_bool $(shields_list_contains,totem_right)

config SHIELD_TOTEM_DONGLE
def_bool $(shields_list_contains,totem_dongle)
11 changes: 11 additions & 0 deletions config/boards/shields/totem/totem_dongle.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CONFIG_ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS=2
CONFIG_ZMK_SLEEP=n
# CONFIG_PM_DEVICE=n
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
CONFIG_ZMK_EXT_POWER=y
CONFIG_ZMK_USB_LOGGING=y
CONFIG_LOG_MODE_IMMEDIATE=n
CONFIG_LOG_TIMESTAMP_64BIT=y
CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=2000
CONFIG_ZMK_LOG_LEVEL_DBG=y
CONFIG_KSCAN_LOG_LEVEL_INF=y
15 changes: 15 additions & 0 deletions config/boards/shields/totem/totem_dongle.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include "totem.dtsi"
&kscan0 {
col-gpios
= <&xiao_d 8 GPIO_ACTIVE_HIGH>
, <&xiao_d 9 GPIO_ACTIVE_HIGH>
, <&xiao_d 10 GPIO_ACTIVE_HIGH>
, <&xiao_d 5 GPIO_ACTIVE_HIGH>
, <&xiao_d 4 GPIO_ACTIVE_HIGH>
;
};

0 comments on commit 67948fe

Please sign in to comment.