From 7280fe61cdd7cafe011f3c19ab86959585cba71e Mon Sep 17 00:00:00 2001 From: KeebMaker Date: Fri, 19 Jun 2026 15:43:37 -0600 Subject: [PATCH] include new sweep files --- boards/shields/sweep/Kconfig.defconfig | 19 ++++++++ boards/shields/sweep/Kconfig.shield | 8 ++++ boards/shields/sweep/sweep.conf | 2 + boards/shields/sweep/sweep.dtsi | 56 ++++++++++++++++++++++++ boards/shields/sweep/sweep.zmk.yml | 12 +++++ boards/shields/sweep/sweep_left.overlay | 7 +++ boards/shields/sweep/sweep_right.overlay | 11 +++++ build.yaml | 4 +- 8 files changed, 117 insertions(+), 2 deletions(-) create mode 100644 boards/shields/sweep/Kconfig.defconfig create mode 100644 boards/shields/sweep/Kconfig.shield create mode 100644 boards/shields/sweep/sweep.conf create mode 100644 boards/shields/sweep/sweep.dtsi create mode 100644 boards/shields/sweep/sweep.zmk.yml create mode 100644 boards/shields/sweep/sweep_left.overlay create mode 100644 boards/shields/sweep/sweep_right.overlay diff --git a/boards/shields/sweep/Kconfig.defconfig b/boards/shields/sweep/Kconfig.defconfig new file mode 100644 index 0000000..5c7abf0 --- /dev/null +++ b/boards/shields/sweep/Kconfig.defconfig @@ -0,0 +1,19 @@ +# Copyright (c) 2020 The ZMK Contributors +# SPDX-License-Identifier: MIT + +if SHIELD_SWEEP_LEFT + +config ZMK_KEYBOARD_NAME + default "Sweep" + +config ZMK_SPLIT_ROLE_CENTRAL + default y + +endif + +if SHIELD_SWEEP_LEFT || SHIELD_SWEEP_RIGHT + +config ZMK_SPLIT + default y + +endif diff --git a/boards/shields/sweep/Kconfig.shield b/boards/shields/sweep/Kconfig.shield new file mode 100644 index 0000000..a86dd15 --- /dev/null +++ b/boards/shields/sweep/Kconfig.shield @@ -0,0 +1,8 @@ +# Copyright (c) 2020 The ZMK Contributors +# SPDX-License-Identifier: MIT + +config SHIELD_SWEEP_LEFT + def_bool $(shields_list_contains,sweep_left) + +config SHIELD_SWEEP_RIGHT + def_bool $(shields_list_contains,sweep_right) diff --git a/boards/shields/sweep/sweep.conf b/boards/shields/sweep/sweep.conf new file mode 100644 index 0000000..60efba5 --- /dev/null +++ b/boards/shields/sweep/sweep.conf @@ -0,0 +1,2 @@ +# The Sweep has no RGB underglow or OLED display, so no display/lighting +# Kconfig options are needed here. diff --git a/boards/shields/sweep/sweep.dtsi b/boards/shields/sweep/sweep.dtsi new file mode 100644 index 0000000..c2947e5 --- /dev/null +++ b/boards/shields/sweep/sweep.dtsi @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#include +#include + +&cuddlykeyboards_ferris_layout { + transform = <&default_transform>; +}; + +/ { + chosen { + zmk,kscan = &kscan0; + }; + + default_transform: keymap_transform_0 { + compatible = "zmk,matrix-transform"; + columns = <34>; + rows = <1>; + map = < + RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,21) RC(0,20) RC(0,19) RC(0,18) RC(0,17) + RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,26) RC(0,25) RC(0,24) RC(0,23) RC(0,22) + RC(0,10) RC(0,11) RC(0,12) RC(0,13) RC(0,14) RC(0,31) RC(0,30) RC(0,29) RC(0,28) RC(0,27) + RC(0,15) RC(0,16) RC(0,33) RC(0,32) + >; + }; + + kscan0: kscan { + compatible = "zmk,kscan-gpio-direct"; + wakeup-source; + + input-gpios + = <&pro_micro 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 19 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 20 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 21 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 16 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + ; + }; + +}; diff --git a/boards/shields/sweep/sweep.zmk.yml b/boards/shields/sweep/sweep.zmk.yml new file mode 100644 index 0000000..f0ec6aa --- /dev/null +++ b/boards/shields/sweep/sweep.zmk.yml @@ -0,0 +1,12 @@ +file_format: "1" +id: sweep +name: Sweep +type: shield +url: https://keebmaker.com/pages/default-sweep-keymap-wireless +requires: [pro_micro] +features: + - keys + - studio +siblings: + - sweep_left + - sweep_right diff --git a/boards/shields/sweep/sweep_left.overlay b/boards/shields/sweep/sweep_left.overlay new file mode 100644 index 0000000..93ec854 --- /dev/null +++ b/boards/shields/sweep/sweep_left.overlay @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#include "sweep.dtsi" diff --git a/boards/shields/sweep/sweep_right.overlay b/boards/shields/sweep/sweep_right.overlay new file mode 100644 index 0000000..1488e1e --- /dev/null +++ b/boards/shields/sweep/sweep_right.overlay @@ -0,0 +1,11 @@ +/* + * Copyright (c) 2020 The ZMK Contributors + * + * SPDX-License-Identifier: MIT + */ + +#include "sweep.dtsi" + +&default_transform { + col-offset = <17>; +}; diff --git a/build.yaml b/build.yaml index d887c6a..540066e 100644 --- a/build.yaml +++ b/build.yaml @@ -81,13 +81,13 @@ include: ### SWEEP START ### - board: nice_nano_v2 - shield: cradio_left + shield: sweep_left cmake-args: -DCONFIG_ZMK_KEYBOARD_NAME=\"Sweep\" artifact-name: nice_sweep_left snippet: studio-rpc-usb-uart cmake-args: -DCONFIG_ZMK_STUDIO=y - board: nice_nano_v2 - shield: cradio_right + shield: sweep_right cmake-args: -DCONFIG_ZMK_KEYBOARD_NAME=\"Sweep\" artifact-name: nice_sweep_right