diff options
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | boards/shields/sweep/Kconfig.defconfig | 30 | ||||
| -rw-r--r-- | boards/shields/sweep/Kconfig.shield | 8 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep.conf (renamed from config/cradio.conf) | 2 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep.dtsi | 56 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep.keymap (renamed from config/cradio.keymap) | 2 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep.zmk.yml | 13 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep_dongle.overlay | 33 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep_left.conf | 2 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep_left.overlay | 7 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep_right.conf | 2 | ||||
| -rw-r--r-- | boards/shields/sweep/sweep_right.overlay | 11 | ||||
| -rw-r--r-- | config/west.yml | 34 |
13 files changed, 168 insertions, 36 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | .* | 1 | .* |
| 2 | *~ | 2 | *~ |
| 3 | *.swp | 3 | *.swp |
| 4 | modules/ | ||
| 5 | venv/ | ||
| 6 | zephyr/ | ||
| 7 | zmk/ | ||
diff --git a/boards/shields/sweep/Kconfig.defconfig b/boards/shields/sweep/Kconfig.defconfig new file mode 100644 index 0000000..5ca9c2e --- /dev/null +++ b/boards/shields/sweep/Kconfig.defconfig | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | # Copyright (c) 2020 The ZMK Contributors | ||
| 2 | # SPDX-License-Identifier: MIT | ||
| 3 | |||
| 4 | if SHIELD_SWEEP_LEFT || SHIELD_SWEEP_RIGHT || SHIELD_SWEEP_DONGLE | ||
| 5 | |||
| 6 | config ZMK_SPLIT | ||
| 7 | default y | ||
| 8 | |||
| 9 | endif | ||
| 10 | |||
| 11 | if SHIELD_SWEEP_DONGLE | ||
| 12 | |||
| 13 | config ZMK_KEYBOARD_NAME | ||
| 14 | default "Sweep" | ||
| 15 | |||
| 16 | config ZMK_SPLIT_ROLE_CENTRAL | ||
| 17 | default y | ||
| 18 | |||
| 19 | config ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS | ||
| 20 | default 2 | ||
| 21 | |||
| 22 | # Set this to ZMK_SPLIT_BLE_CENTRAL_PERIPHERALS + your desired number of BT profiles (default is 5) | ||
| 23 | config BT_MAX_CONN | ||
| 24 | default 5 | ||
| 25 | |||
| 26 | # Set this to the same number as BT_MAX_CONN | ||
| 27 | config BT_MAX_PAIRED | ||
| 28 | default 5 | ||
| 29 | |||
| 30 | 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 @@ | |||
| 1 | # Copyright (c) 2020 The ZMK Contributors | ||
| 2 | # SPDX-License-Identifier: MIT | ||
| 3 | |||
| 4 | config SHIELD_SWEEP_LEFT | ||
| 5 | def_bool $(shields_list_contains,sweep_left) | ||
| 6 | |||
| 7 | config SHIELD_SWEEP_RIGHT | ||
| 8 | def_bool $(shields_list_contains,sweep_right) | ||
diff --git a/config/cradio.conf b/boards/shields/sweep/sweep.conf index 0575c92..d576d11 100644 --- a/config/cradio.conf +++ b/boards/shields/sweep/sweep.conf | |||
| @@ -1,3 +1,3 @@ | |||
| 1 | CONFIG_ZMK_KEYBOARD_NAME="uhhh" | 1 | CONFIG_ZMK_KEYBOARD_NAME="sweep" |
| 2 | CONFIG_ZMK_SLEEP=y | 2 | CONFIG_ZMK_SLEEP=y |
| 3 | CONFIG_ZMK_BLE=y | 3 | CONFIG_ZMK_BLE=y |
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 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2020 The ZMK Contributors | ||
| 3 | * | ||
| 4 | * SPDX-License-Identifier: MIT | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include <dt-bindings/zmk/matrix_transform.h> | ||
| 8 | #include <layouts/cuddlykeyboards/ferris.dtsi> | ||
| 9 | |||
| 10 | &cuddlykeyboards_ferris_layout { | ||
| 11 | transform = <&default_transform>; | ||
| 12 | }; | ||
| 13 | |||
| 14 | / { | ||
| 15 | chosen { | ||
| 16 | zmk,kscan = &kscan0; | ||
| 17 | }; | ||
| 18 | |||
| 19 | default_transform: keymap_transform_0 { | ||
| 20 | compatible = "zmk,matrix-transform"; | ||
| 21 | columns = <34>; | ||
| 22 | rows = <1>; | ||
| 23 | map = < | ||
| 24 | 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) | ||
| 25 | 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) | ||
| 26 | 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) | ||
| 27 | RC(0,15) RC(0,16) RC(0,33) RC(0,32) | ||
| 28 | >; | ||
| 29 | }; | ||
| 30 | |||
| 31 | kscan0: kscan { | ||
| 32 | compatible = "zmk,kscan-gpio-direct"; | ||
| 33 | wakeup-source; | ||
| 34 | |||
| 35 | input-gpios | ||
| 36 | = <&pro_micro 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 37 | , <&pro_micro 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 38 | , <&pro_micro 19 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 39 | , <&pro_micro 20 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 40 | , <&pro_micro 21 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 41 | , <&pro_micro 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 42 | , <&pro_micro 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 43 | , <&pro_micro 16 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 44 | , <&pro_micro 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 45 | , <&pro_micro 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 46 | , <&pro_micro 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 47 | , <&pro_micro 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 48 | , <&pro_micro 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 49 | , <&pro_micro 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 50 | , <&pro_micro 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 51 | , <&pro_micro 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 52 | , <&pro_micro 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
| 53 | ; | ||
| 54 | }; | ||
| 55 | |||
| 56 | }; | ||
diff --git a/config/cradio.keymap b/boards/shields/sweep/sweep.keymap index 510cfb3..80cd46e 100644 --- a/config/cradio.keymap +++ b/boards/shields/sweep/sweep.keymap | |||
| @@ -53,7 +53,7 @@ | |||
| 53 | left_layer { | 53 | left_layer { |
| 54 | bindings = < | 54 | bindings = < |
| 55 | &trans &kp AMPS &kp ASTRK &trans &trans &trans &trans &trans &kp LPAR &kp RPAR | 55 | &trans &kp AMPS &kp ASTRK &trans &trans &trans &trans &trans &kp LPAR &kp RPAR |
| 56 | &trans &kp DLLR &kp PRCNT &kp CARET &kp BLSH &kp GRAVE &kp MINUS &kp EQUAL &kp LBKT &kp RBKT | 56 | &trans &kp DLLR &kp PRCNT &kp CARET &kp BSLH &kp GRAVE &kp MINUS &kp EQUAL &kp LBKT &kp RBKT |
| 57 | &trans &kp EXCL &kp AT &kp HASH &kp PIPE &kp TILDE &kp UNDER &kp PLUS &kp LBRC &kp RBRC | 57 | &trans &kp EXCL &kp AT &kp HASH &kp PIPE &kp TILDE &kp UNDER &kp PLUS &kp LBRC &kp RBRC |
| 58 | &trans &trans &trans &trans | 58 | &trans &trans &trans &trans |
| 59 | >; | 59 | >; |
diff --git a/boards/shields/sweep/sweep.zmk.yml b/boards/shields/sweep/sweep.zmk.yml new file mode 100644 index 0000000..1732d30 --- /dev/null +++ b/boards/shields/sweep/sweep.zmk.yml | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | file_format: "1" | ||
| 2 | id: sweep | ||
| 3 | name: Sweep | ||
| 4 | type: shield | ||
| 5 | url: https://github.com/davidphilipbarr/Sweep | ||
| 6 | requires: [pro_micro] | ||
| 7 | exposes: [i2c_oled] | ||
| 8 | features: | ||
| 9 | - keys | ||
| 10 | - studio | ||
| 11 | siblings: | ||
| 12 | - sweep_left | ||
| 13 | - sweep_right | ||
diff --git a/boards/shields/sweep/sweep_dongle.overlay b/boards/shields/sweep/sweep_dongle.overlay new file mode 100644 index 0000000..16c618f --- /dev/null +++ b/boards/shields/sweep/sweep_dongle.overlay | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | #include <dt-bindings/zmk/matrix_transform.h> | ||
| 2 | |||
| 3 | / { | ||
| 4 | chosen { | ||
| 5 | zmk,kscan = &mock_kscan; | ||
| 6 | zmk,physical-layout = &physical_layout0; | ||
| 7 | }; | ||
| 8 | |||
| 9 | mock_kscan: mock_kscan_0 { | ||
| 10 | compatible = "zmk,kscan-mock"; | ||
| 11 | columns = <0>; | ||
| 12 | rows = <0>; | ||
| 13 | events = <0>; | ||
| 14 | }; | ||
| 15 | |||
| 16 | default_transform: keymap_transform_0 { | ||
| 17 | compatible = "zmk,matrix-transform"; | ||
| 18 | columns = <34>; | ||
| 19 | rows = <1>; | ||
| 20 | map = < | ||
| 21 | 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) | ||
| 22 | 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) | ||
| 23 | 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) | ||
| 24 | RC(0,15) RC(0,16) RC(0,33) RC(0,32) | ||
| 25 | >; | ||
| 26 | }; | ||
| 27 | |||
| 28 | physical_layout0: physical_layout_0 { | ||
| 29 | compatible = "zmk,physical-layout"; | ||
| 30 | display-name = "Default Layout"; | ||
| 31 | transform = <&default_transform>; | ||
| 32 | }; | ||
| 33 | }; | ||
diff --git a/boards/shields/sweep/sweep_left.conf b/boards/shields/sweep/sweep_left.conf new file mode 100644 index 0000000..c9f7988 --- /dev/null +++ b/boards/shields/sweep/sweep_left.conf | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # Copyright (c) 2020 The ZMK Contributors | ||
| 2 | # SPDX-License-Identifier: MIT | ||
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 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2020 The ZMK Contributors | ||
| 3 | * | ||
| 4 | * SPDX-License-Identifier: MIT | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include "sweep.dtsi" | ||
diff --git a/boards/shields/sweep/sweep_right.conf b/boards/shields/sweep/sweep_right.conf new file mode 100644 index 0000000..c9f7988 --- /dev/null +++ b/boards/shields/sweep/sweep_right.conf | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # Copyright (c) 2020 The ZMK Contributors | ||
| 2 | # SPDX-License-Identifier: MIT | ||
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 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2020 The ZMK Contributors | ||
| 3 | * | ||
| 4 | * SPDX-License-Identifier: MIT | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include "sweep.dtsi" | ||
| 8 | |||
| 9 | &default_transform { | ||
| 10 | col-offset = <17>; | ||
| 11 | }; | ||
diff --git a/config/west.yml b/config/west.yml deleted file mode 100644 index 61826bf..0000000 --- a/config/west.yml +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | manifest: | ||
| 2 | remotes: | ||
| 3 | - name: zmkfirmware | ||
| 4 | url-base: https://github.com/zmkfirmware | ||
| 5 | projects: | ||
| 6 | - name: zmk | ||
| 7 | remote: zmkfirmware | ||
| 8 | revision: 4da89bd99716bf6c1d7d788f3cdaec4cee7403e9 # main | ||
| 9 | import: app/west.yml | ||
| 10 | - name: zephyr | ||
| 11 | remote: zmkfirmware | ||
| 12 | revision: 0fa4cc26d8b1e5243570ccc0f7f66c4c428d2961 # v3.5.0+zmk-fixes | ||
| 13 | import: | ||
| 14 | name-blocklist: | ||
| 15 | - ci-tools | ||
| 16 | - hal_altera | ||
| 17 | - hal_cypress | ||
| 18 | - hal_infineon | ||
| 19 | - hal_microchip | ||
| 20 | - hal_nxp | ||
| 21 | - hal_openisa | ||
| 22 | - hal_silabs | ||
| 23 | - hal_xtensa | ||
| 24 | - hal_st | ||
| 25 | - hal_ti | ||
| 26 | - loramac-node | ||
| 27 | - mcuboot | ||
| 28 | - mcumgr | ||
| 29 | - net-tools | ||
| 30 | - openthread | ||
| 31 | - edtt | ||
| 32 | - trusted-firmware-m | ||
| 33 | self: | ||
| 34 | path: config | ||
