This repository has been archived by the owner on Apr 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial cradio/sweep support I have only made the left hand side currently. There is a high and low version, refering to whether it lives on the 1st and 2nd rows or the 2nd and 3rd rows respectively. Next I will work on adding the right hand side, and maybe adding thumb support. I am not sure what the best way to do that is, I guess when I make a pull request we will see * Fix the trailing offset * Add support for the thumb keys Added a "Custom thumb" define which adds into the standard keymap. The alternative would be to go for the same sort of thing as the ARTSEY_BIG alternate map and add our own one * Add cradio/sweep right * Remove the low versions of cradio left I wasn't sure which way would feel the best since I just got the keyboard but obviously it was the top rows * Quick fix for the KEY_* defines I didn't realise they went off the KSCAN order rather than the RC order
- Loading branch information
Showing
18 changed files
with
458 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
if SHIELD_CRADIO_ARTSEY_LEFT || SHIELD_CRADIO_ARTSEY_THUMB_LEFT | ||
|
||
config ZMK_KEYBOARD_NAME | ||
default "Artsey L" | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
config SHIELD_CRADIO_ARTSEY_LEFT | ||
def_bool $(shields_list_contains,cradio_artsey_left) | ||
|
||
config SHIELD_CRADIO_ARTSEY_THUMB_LEFT | ||
def_bool $(shields_list_contains,cradio_artsey_thumb_left) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Tune combos to allow proper ARTSEY support | ||
CONFIG_ZMK_COMBO_MAX_COMBOS_PER_KEY=16 | ||
CONFIG_ZMK_COMBO_MAX_KEYS_PER_COMBO=8 | ||
CONFIG_ZMK_COMBO_MAX_PRESSED_COMBOS=8 | ||
|
||
# Tune bluetooth profiles for quick select | ||
CONFIG_BT_MAX_CONN=6 | ||
|
||
# Turn on deep sleep | ||
#CONFIG_ZMK_SLEEP=y | ||
#CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000 |
31 changes: 31 additions & 0 deletions
31
config/boards/shields/cradio_left/cradio_artsey_left.keymap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <dt-bindings/zmk/bt.h> | ||
|
||
// Enable ARTSEY Left | ||
#define ARTSEY_LEFT 1 | ||
|
||
// ARTS Row | ||
#define KEY_A 3 | ||
#define KEY_R 2 | ||
#define KEY_T 1 | ||
#define KEY_S 0 | ||
// EYIO Row | ||
#define KEY_E 8 | ||
#define KEY_Y 7 | ||
#define KEY_I 6 | ||
#define KEY_O 5 | ||
|
||
// Define Offsets | ||
#define LEADING_NONES NONE(0,0,0) | ||
#define MIDDLE_NONES NONE(0,0,1) | ||
#define TRAILING_NONES NONE(0,0,8) | ||
|
||
// Include main artsey.io keymap | ||
#include "../../../artsey.dtsi" |
56 changes: 56 additions & 0 deletions
56
config/boards/shields/cradio_left/cradio_artsey_left.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <dt-bindings/zmk/matrix_transform.h> | ||
|
||
/ { | ||
|
||
chosen { | ||
zmk,kscan = &kscan0; | ||
zmk,matrix_transform = &default_transform; | ||
}; | ||
|
||
default_transform: keymap_transform_0 { | ||
compatible = "zmk,matrix-transform"; | ||
columns = <17>; | ||
rows = <1>; | ||
// | SW0 | SW1 | SW2 | SW3 | SW4 | | ||
// | SW5 | SW6 | SW7 | SW8 | SW9 | | ||
// | SW10 | SW11 | SW12 | SW13 | SW14 | | ||
// | SW15 | SW16 | | ||
map = < | ||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) | ||
RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) | ||
RC(0,10) RC(0,11) RC(0,12) RC(0,13) RC(0,14) | ||
RC(0,15) RC(0,16) | ||
>; | ||
}; | ||
|
||
kscan0: kscan { | ||
compatible = "zmk,kscan-gpio-direct"; | ||
label = "KSCAN"; | ||
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)> | ||
; | ||
}; | ||
|
||
}; |
14 changes: 14 additions & 0 deletions
14
config/boards/shields/cradio_left/cradio_artsey_thumb_left.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Tune combos to allow proper ARTSEY support | ||
CONFIG_ZMK_COMBO_MAX_COMBOS_PER_KEY=16 | ||
CONFIG_ZMK_COMBO_MAX_KEYS_PER_COMBO=8 | ||
CONFIG_ZMK_COMBO_MAX_PRESSED_COMBOS=8 | ||
|
||
# Tune bluetooth profiles for quick select | ||
CONFIG_BT_MAX_CONN=6 | ||
|
||
# Turn on deep sleep | ||
#CONFIG_ZMK_SLEEP=y | ||
#CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000 |
34 changes: 34 additions & 0 deletions
34
config/boards/shields/cradio_left/cradio_artsey_thumb_left.keymap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <dt-bindings/zmk/bt.h> | ||
|
||
// Enable ARTSEY Left | ||
#define ARTSEY_LEFT 1 | ||
|
||
// ARTS Row | ||
#define KEY_A 3 | ||
#define KEY_R 2 | ||
#define KEY_T 1 | ||
#define KEY_S 0 | ||
// EYIO Row | ||
#define KEY_E 8 | ||
#define KEY_Y 7 | ||
#define KEY_I 6 | ||
#define KEY_O 5 | ||
|
||
// Define Custom Thumb Keys | ||
#define CUSTOM_THUMB &kp SPACE &kp ENTER | ||
|
||
// Define Offsets | ||
#define LEADING_NONES NONE(0,0,0) | ||
#define MIDDLE_NONES NONE(0,0,1) | ||
#define TRAILING_NONES NONE(0,0,6) | ||
|
||
// Include main artsey.io keymap | ||
#include "../../../artsey.dtsi" |
56 changes: 56 additions & 0 deletions
56
config/boards/shields/cradio_left/cradio_artsey_thumb_left.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <dt-bindings/zmk/matrix_transform.h> | ||
|
||
/ { | ||
|
||
chosen { | ||
zmk,kscan = &kscan0; | ||
zmk,matrix_transform = &default_transform; | ||
}; | ||
|
||
default_transform: keymap_transform_0 { | ||
compatible = "zmk,matrix-transform"; | ||
columns = <17>; | ||
rows = <1>; | ||
// | SW0 | SW1 | SW2 | SW3 | SW4 | | ||
// | SW5 | SW6 | SW7 | SW8 | SW9 | | ||
// | SW10 | SW11 | SW12 | SW13 | SW14 | | ||
// | SW15 | SW16 | | ||
map = < | ||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) | ||
RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) | ||
RC(0,10) RC(0,11) RC(0,12) RC(0,13) RC(0,14) | ||
RC(0,15) RC(0,16) | ||
>; | ||
}; | ||
|
||
kscan0: kscan { | ||
compatible = "zmk,kscan-gpio-direct"; | ||
label = "KSCAN"; | ||
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)> | ||
; | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
if SHIELD_CRADIO_ARTSEY_RIGHT || SHIELD_CRADIO_ARTSEY_THUMB_RIGHT | ||
|
||
config ZMK_KEYBOARD_NAME | ||
default "Artsey R" | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
config SHIELD_CRADIO_ARTSEY_RIGHT | ||
def_bool $(shields_list_contains,cradio_artsey_right) | ||
|
||
config SHIELD_CRADIO_ARTSEY_THUMB_RIGHT | ||
def_bool $(shields_list_contains,cradio_artsey_thumb_right) |
14 changes: 14 additions & 0 deletions
14
config/boards/shields/cradio_right/cradio_artsey_right.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
# Tune combos to allow proper ARTSEY support | ||
CONFIG_ZMK_COMBO_MAX_COMBOS_PER_KEY=16 | ||
CONFIG_ZMK_COMBO_MAX_KEYS_PER_COMBO=8 | ||
CONFIG_ZMK_COMBO_MAX_PRESSED_COMBOS=8 | ||
|
||
# Tune bluetooth profiles for quick select | ||
CONFIG_BT_MAX_CONN=6 | ||
|
||
# Turn on deep sleep | ||
#CONFIG_ZMK_SLEEP=y | ||
#CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000 |
31 changes: 31 additions & 0 deletions
31
config/boards/shields/cradio_right/cradio_artsey_right.keymap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/keys.h> | ||
#include <dt-bindings/zmk/bt.h> | ||
|
||
// Enable ARTSEY Right | ||
#define ARTSEY_RIGHT 1 | ||
|
||
// ARTS Row | ||
#define KEY_A 1 | ||
#define KEY_R 2 | ||
#define KEY_T 3 | ||
#define KEY_S 4 | ||
// EYIO Row | ||
#define KEY_E 6 | ||
#define KEY_Y 7 | ||
#define KEY_I 8 | ||
#define KEY_O 9 | ||
|
||
// Define Offsets | ||
#define LEADING_NONES NONE(0,0,1) | ||
#define MIDDLE_NONES NONE(0,0,1) | ||
#define TRAILING_NONES NONE(0,0,7) | ||
|
||
// Include main artsey.io keymap | ||
#include "../../../artsey.dtsi" |
56 changes: 56 additions & 0 deletions
56
config/boards/shields/cradio_right/cradio_artsey_right.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include <dt-bindings/zmk/matrix_transform.h> | ||
|
||
/ { | ||
|
||
chosen { | ||
zmk,kscan = &kscan0; | ||
zmk,matrix_transform = &default_transform; | ||
}; | ||
|
||
default_transform: keymap_transform_0 { | ||
compatible = "zmk,matrix-transform"; | ||
columns = <17>; | ||
rows = <1>; | ||
// | SW4 | SW3 | SW2 | SW1 | SW0 | | ||
// | SW9 | SW8 | SW7 | SW6 | SW5 | | ||
// | SW14 | SW13 | SW12 | SW11 | SW10 | | ||
// | SW16 | SW15 | | ||
map = < | ||
RC(0,4) RC(0,3) RC(0,2) RC(0,1) RC(0,0) | ||
RC(0,9) RC(0,8) RC(0,7) RC(0,6) RC(0,5) | ||
RC(0,14) RC(0,13) RC(0,12) RC(0,11) RC(0,10) | ||
RC(0,16) RC(0,15) | ||
>; | ||
}; | ||
|
||
kscan0: kscan { | ||
compatible = "zmk,kscan-gpio-direct"; | ||
label = "KSCAN"; | ||
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)> | ||
; | ||
}; | ||
|
||
}; |
Oops, something went wrong.