diff options
| author | nachie <me@nachie.com> | 2021-09-28 21:35:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-28 21:35:14 -0700 |
| commit | 6779d5b990bf94cba28a74246c2378e5bb5047b4 (patch) | |
| tree | 33bf073641d9ba92d49d97ef7c50aba4441aa599 /keyboards/kapcave/arya | |
| parent | 77e4b07fb5f2b0b5dc1df03b1233773073c65674 (diff) | |
| download | qmk_firmware-6779d5b990bf94cba28a74246c2378e5bb5047b4.tar.gz qmk_firmware-6779d5b990bf94cba28a74246c2378e5bb5047b4.zip | |
[Keyboard] Add support for PaladinPad, Arya pcb and move keyboards by KapCave into their own directory (#14194)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Nachiket Kulkarni <nachiket_kulkarni@apple.com>
Diffstat (limited to 'keyboards/kapcave/arya')
| -rw-r--r-- | keyboards/kapcave/arya/arya.c | 27 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/arya.h | 43 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/chconf.h | 25 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/config.h | 68 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/halconf.h | 23 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/info.json | 77 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/keymaps/default/keymap.c | 34 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/keymaps/via/keymap.c | 56 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/keymaps/via/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/mcuconf.h | 33 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/readme.md | 23 | ||||
| -rw-r--r-- | keyboards/kapcave/arya/rules.mk | 25 |
14 files changed, 437 insertions, 0 deletions
diff --git a/keyboards/kapcave/arya/arya.c b/keyboards/kapcave/arya/arya.c new file mode 100644 index 000000000..af5d19be4 --- /dev/null +++ b/keyboards/kapcave/arya/arya.c | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 KapCave | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | #include "arya.h" | ||
| 18 | |||
| 19 | bool encoder_update_kb(uint8_t index, bool clockwise) { | ||
| 20 | if (!encoder_update_user(index, clockwise)) { return false; } | ||
| 21 | if (clockwise) { | ||
| 22 | tap_code(KC_VOLU); | ||
| 23 | } else { | ||
| 24 | tap_code(KC_VOLD); | ||
| 25 | } | ||
| 26 | return true; | ||
| 27 | } | ||
diff --git a/keyboards/kapcave/arya/arya.h b/keyboards/kapcave/arya/arya.h new file mode 100644 index 000000000..ea1d1916c --- /dev/null +++ b/keyboards/kapcave/arya/arya.h | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 KapCave | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT_alice_split_bs( \ | ||
| 22 | K81, K36, K37, K46, K47, K56, K57, K66, K67, K76, K77, K06, K07, K17, K26, K27, \ | ||
| 23 | K80, K34, K35, K44, K45, K54, K55, K64, K65, K75, K05, K15, K16, K25, K24, \ | ||
| 24 | K82, K32, K33, K43, K52, K53, K63, K73, K74, K03, K04, K13, K14, K23, \ | ||
| 25 | K31, K41, K42, K51, K61, K62, K71, K72, K01, K02, K11, K12, K21, K22, \ | ||
| 26 | K30, K40, K50, K60, K00, K10, K20 \ | ||
| 27 | ) \ | ||
| 28 | { \ | ||
| 29 | { K00 , K01 , K02 , K03 , K04 , K05 , K06 , K07 }, \ | ||
| 30 | { K10 , K11 , K12 , K13 , K14 , K15 , K16 , K17 }, \ | ||
| 31 | { K20 , K21 , K22 , K23 , K24 , K25 , K26 , K27 }, \ | ||
| 32 | { K30 , K31 , K32 , K33 , K34 , K35 , K36 , K37 }, \ | ||
| 33 | { K40 , K41 , K42 , K43 , K44 , K45 , K46 , K47 }, \ | ||
| 34 | { K50 , K51 , K52 , K53 , K54 , K55 , K56 , K57 }, \ | ||
| 35 | { K60 , K61 , K62 , K63 , K64 , K65 , K66 , K67 }, \ | ||
| 36 | { KC_NO , K71 , K72 , K73 , K74 , K75 , K76 , K77 }, \ | ||
| 37 | { K80 , K81 , K82 , KC_NO, KC_NO, KC_NO, KC_NO, KC_NO} \ | ||
| 38 | } | ||
| 39 | |||
| 40 | |||
| 41 | |||
| 42 | |||
| 43 | #define LAYOUT_all LAYOUT_alice_split_bs | ||
diff --git a/keyboards/kapcave/arya/chconf.h b/keyboards/kapcave/arya/chconf.h new file mode 100644 index 000000000..d5c78af07 --- /dev/null +++ b/keyboards/kapcave/arya/chconf.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 KapCave | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #define CH_CFG_ST_RESOLUTION 16 | ||
| 21 | |||
| 22 | #define CH_CFG_INTERVALS_SIZE 16 | ||
| 23 | |||
| 24 | #include_next <chconf.h> | ||
| 25 | |||
diff --git a/keyboards/kapcave/arya/config.h b/keyboards/kapcave/arya/config.h new file mode 100644 index 000000000..62df795ff --- /dev/null +++ b/keyboards/kapcave/arya/config.h | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 KapCave | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0x4B43 | ||
| 22 | #define PRODUCT_ID 0x4152 | ||
| 23 | #define DEVICE_VER 0x0001 | ||
| 24 | #define MANUFACTURER KapCave | ||
| 25 | #define PRODUCT Arya | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 9 | ||
| 29 | #define MATRIX_COLS 8 | ||
| 30 | |||
| 31 | #define MATRIX_COL_PINS { B0, B5, B4, B2, C13, F1, F0, A14} | ||
| 32 | #define MATRIX_ROW_PINS { B8, A13, B1, A15, B9, B10, B11, A0, A8 } | ||
| 33 | #define DIODE_DIRECTION COL2ROW | ||
| 34 | |||
| 35 | |||
| 36 | /* Set 0 if debouncing isn't needed */ | ||
| 37 | #define DEBOUNCE 5 | ||
| 38 | |||
| 39 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 40 | #define LOCKING_SUPPORT_ENABLE | ||
| 41 | /* Locking resynchronize hack */ | ||
| 42 | #define LOCKING_RESYNC_ENABLE | ||
| 43 | |||
| 44 | #define ENCODERS_PAD_A { B12, B14, C15 } | ||
| 45 | #define ENCODERS_PAD_B { B13, B15, C14 } | ||
| 46 | |||
| 47 | #define ENCODER_RESOLUTION 2 | ||
| 48 | #define TAP_CODE_DELAY 25 | ||
| 49 | |||
| 50 | #define DYNAMIC_KEYMAP_LAYER_COUNT 3 | ||
| 51 | |||
| 52 | /* | ||
| 53 | * Feature disable options | ||
| 54 | * These options are also useful to firmware size reduction. | ||
| 55 | */ | ||
| 56 | |||
| 57 | /* disable debug print */ | ||
| 58 | //#define NO_DEBUG | ||
| 59 | |||
| 60 | /* disable print */ | ||
| 61 | //#define NO_PRINT | ||
| 62 | |||
| 63 | /* disable action features */ | ||
| 64 | //#define NO_ACTION_LAYER | ||
| 65 | //#define NO_ACTION_TAPPING | ||
| 66 | //#define NO_ACTION_ONESHOT | ||
| 67 | //#define NO_ACTION_MACRO | ||
| 68 | //#define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/kapcave/arya/halconf.h b/keyboards/kapcave/arya/halconf.h new file mode 100644 index 000000000..dffa322d1 --- /dev/null +++ b/keyboards/kapcave/arya/halconf.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 KapCave | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #define HAL_USE_PWM TRUE | ||
| 21 | |||
| 22 | #include_next <halconf.h> | ||
| 23 | |||
diff --git a/keyboards/kapcave/arya/info.json b/keyboards/kapcave/arya/info.json new file mode 100644 index 000000000..fb220aa07 --- /dev/null +++ b/keyboards/kapcave/arya/info.json | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Arya", | ||
| 3 | "url": "https://kapcave.com/products/arya", | ||
| 4 | "maintainer": "nachie", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"Esc", "x":2.75, "y":5.9}, | ||
| 9 | {"label":"\u00ac", "x":4, "y":6.0}, | ||
| 10 | {"label":"!", "x":5, "y":6.0}, | ||
| 11 | {"label":"\"", "x":6, "y":6.0}, | ||
| 12 | {"label":"_", "x":15.25, "y":6.0}, | ||
| 13 | {"label":"+", "x":16.25, "y":6.0}, | ||
| 14 | {"label":"", "x":17.25, "y":6.0}, | ||
| 15 | {"label":"", "x":18.25, "y":6.0}, | ||
| 16 | {"label":"Pg Up", "x":2.5, "y":6.9}, | ||
| 17 | {"label":"Tab", "x":3.75, "y":7.0, "w":1.5}, | ||
| 18 | {"label":"Q", "x":5.25, "y":7.0}, | ||
| 19 | {"label":"P", "x":15, "y":7.0}, | ||
| 20 | {"label":"{", "x":16, "y":7.0}, | ||
| 21 | {"label":"}", "x":17, "y":7.0}, | ||
| 22 | {"label":"|", "x":18, "y":7.0, "w":1.5}, | ||
| 23 | {"label":"Pg Dn", "x":2.25, "y":7.9}, | ||
| 24 | {"label":"Caps Lock", "x":3.5, "y":8.0, "w":1.75}, | ||
| 25 | {"label":"A", "x":5.25, "y":8.0}, | ||
| 26 | {"label":":", "x":15.5, "y":8.0}, | ||
| 27 | {"label":"\"", "x":16.5, "y":8.0}, | ||
| 28 | {"label":"Enter", "x":17.5, "y":8.0, "w":2.25}, | ||
| 29 | {"label":"Shift", "x":3.25, "y":9.0, "w":2.25}, | ||
| 30 | {"label":"Z", "x":5.5, "y":9.0}, | ||
| 31 | {"label":">", "x":15.25, "y":9.0}, | ||
| 32 | {"label":"?", "x":16.25, "y":9.0}, | ||
| 33 | {"label":"Shift", "x":17.25, "y":9.0, "w":1.75}, | ||
| 34 | {"label":"Fn", "x":19, "y":9.0}, | ||
| 35 | {"label":"Ctrl", "x":3.25, "y":10.0, "w":1.5}, | ||
| 36 | {"label":"Ctrl", "x":18.25, "y":10.0, "w":1.5}, | ||
| 37 | {"label":"\u00a3", "x":8.25, "y":4.5}, | ||
| 38 | {"label":"$", "x":9.25, "y":4.5}, | ||
| 39 | {"label":"%", "x":10.25, "y":4.5}, | ||
| 40 | {"label":"^", "x":11.25, "y":4.5}, | ||
| 41 | {"label":"W", "x":7.75, "y":5.5}, | ||
| 42 | {"label":"E", "x":8.75, "y":5.5}, | ||
| 43 | {"label":"R", "x":9.75, "y":5.5}, | ||
| 44 | {"label":"T", "x":10.75, "y":5.5}, | ||
| 45 | {"label":"S", "x":8, "y":6.5}, | ||
| 46 | {"label":"D", "x":9, "y":6.5}, | ||
| 47 | {"label":"F", "x":10, "y":6.5}, | ||
| 48 | {"label":"G", "x":11, "y":6.5}, | ||
| 49 | {"label":"X", "x":8.5, "y":7.5}, | ||
| 50 | {"label":"C", "x":9.5, "y":7.5}, | ||
| 51 | {"label":"V", "x":10.5, "y":7.5}, | ||
| 52 | {"label":"B", "x":11.5, "y":7.5}, | ||
| 53 | {"label":"Alt", "x":8.25, "y":8.5, "w":1.5}, | ||
| 54 | {"label":"", "x":9.75, "y":8.5, "w":2}, | ||
| 55 | {"label":"Fn", "x":11.75, "y":8.5, "w":1.25}, | ||
| 56 | {"label":"&", "x":9.5, "y":9.0}, | ||
| 57 | {"label":"*", "x":10.5, "y":9.0}, | ||
| 58 | {"label":"(", "x":11.5, "y":9.0}, | ||
| 59 | {"label":")", "x":12.5, "y":9.0}, | ||
| 60 | {"label":"Y", "x":9, "y":10.0}, | ||
| 61 | {"label":"U", "x":10, "y":10.0}, | ||
| 62 | {"label":"I", "x":11, "y":10.0}, | ||
| 63 | {"label":"O", "x":12, "y":10.0}, | ||
| 64 | {"label":"H", "x":9.25, "y":11.0}, | ||
| 65 | {"label":"J", "x":10.25, "y":11.0}, | ||
| 66 | {"label":"K", "x":11.25, "y":11.0}, | ||
| 67 | {"label":"L", "x":12.25, "y":11.0}, | ||
| 68 | {"label":"Fn", "x":8.75, "y":12.0}, | ||
| 69 | {"label":"N", "x":9.75, "y":12.0}, | ||
| 70 | {"label":"M", "x":10.75, "y":12.0}, | ||
| 71 | {"label":"<", "x":11.75, "y":12.0}, | ||
| 72 | {"label":"Shift", "x":8.75, "y":13.0, "w":2.75}, | ||
| 73 | {"label":"Alt", "x":11.5, "y":13.0, "w":1.5} | ||
| 74 | ] | ||
| 75 | } | ||
| 76 | } | ||
| 77 | } \ No newline at end of file | ||
diff --git a/keyboards/kapcave/arya/keymaps/default/keymap.c b/keyboards/kapcave/arya/keymaps/default/keymap.c new file mode 100644 index 000000000..b8300b1f4 --- /dev/null +++ b/keyboards/kapcave/arya/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 KapCave | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | LAYOUT_alice_split_bs( | ||
| 21 | KC_ESC, KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_GRV, KC_BSLS, | ||
| 22 | KC_PGUP, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, | ||
| 23 | KC_PGDN, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 25 | KC_LGUI, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL | ||
| 26 | ), | ||
| 27 | LAYOUT_alice_split_bs( | ||
| 28 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP , _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RGHT, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | }; \ No newline at end of file | ||
diff --git a/keyboards/kapcave/arya/keymaps/default/readme.md b/keyboards/kapcave/arya/keymaps/default/readme.md new file mode 100644 index 000000000..9d9894862 --- /dev/null +++ b/keyboards/kapcave/arya/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| The default layout for the KapCave Arya \ No newline at end of file | |||
diff --git a/keyboards/kapcave/arya/keymaps/via/keymap.c b/keyboards/kapcave/arya/keymaps/via/keymap.c new file mode 100644 index 000000000..4b98707da --- /dev/null +++ b/keyboards/kapcave/arya/keymaps/via/keymap.c | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 KapCave | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum layer_names { | ||
| 20 | _BASE, // Default Layer | ||
| 21 | _FN, // Fn Layer 1 | ||
| 22 | _FN2, // Fn Layer 2 | ||
| 23 | _FN3 // Fn Layer 3 | ||
| 24 | }; | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | |||
| 28 | /* QWERTY */ | ||
| 29 | [_BASE] = LAYOUT_alice_split_bs( | ||
| 30 | KC_ESC, KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_GRV, KC_BSLS, | ||
| 31 | KC_PGUP, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, | ||
| 32 | KC_PGDN, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 33 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), | ||
| 34 | KC_LGUI, KC_LALT, KC_SPC, KC_LGUI, KC_SPC, KC_RALT, KC_RCTL | ||
| 35 | ), | ||
| 36 | |||
| 37 | /* FUNCTION */ | ||
| 38 | [_FN] = LAYOUT_alice_split_bs( | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP , _______, _______, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RGHT, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______ | ||
| 44 | ), | ||
| 45 | |||
| 46 | [_FN2] = LAYOUT_alice_split_bs( | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ , _______, _______, | ||
| 49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 50 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 51 | _______, _______, _______, _______, _______, _______, _______ | ||
| 52 | ), | ||
| 53 | |||
| 54 | |||
| 55 | }; | ||
| 56 | |||
diff --git a/keyboards/kapcave/arya/keymaps/via/readme.md b/keyboards/kapcave/arya/keymaps/via/readme.md new file mode 100644 index 000000000..dcf12fbff --- /dev/null +++ b/keyboards/kapcave/arya/keymaps/via/readme.md | |||
| @@ -0,0 +1 @@ | |||
| The VIA Keymap for the KapCave Arya \ No newline at end of file | |||
diff --git a/keyboards/kapcave/arya/keymaps/via/rules.mk b/keyboards/kapcave/arya/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/kapcave/arya/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/kapcave/arya/mcuconf.h b/keyboards/kapcave/arya/mcuconf.h new file mode 100644 index 000000000..5c161dbe3 --- /dev/null +++ b/keyboards/kapcave/arya/mcuconf.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 KapCave | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | #include_next <mcuconf.h> | ||
| 20 | |||
| 21 | /* enable TIM1, used for backlight PWM */ | ||
| 22 | #undef STM32_PWM_USE_TIM1 | ||
| 23 | #define STM32_PWM_USE_TIM1 TRUE | ||
| 24 | |||
| 25 | /* enable TIM2, used for underglow PWM driver */ | ||
| 26 | #undef STM32_PWM_USE_TIM2 | ||
| 27 | #define STM32_PWM_USE_TIM2 TRUE | ||
| 28 | |||
| 29 | /* move system from TIM2 (default) to TIM3 (since TIM2 is needed for underglow) */ | ||
| 30 | #undef STM32_PWM_USE_TIM3 | ||
| 31 | #define STM32_PWM_USE_TIM3 FALSE | ||
| 32 | #undef STM32_ST_USE_TIMER | ||
| 33 | #define STM32_ST_USE_TIMER 3 | ||
diff --git a/keyboards/kapcave/arya/readme.md b/keyboards/kapcave/arya/readme.md new file mode 100644 index 000000000..12fe9684a --- /dev/null +++ b/keyboards/kapcave/arya/readme.md | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # KapCave Arya | ||
| 2 | |||
| 3 | Firmware for the KapCave Arya Keyboard | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [KapCave](https://github.com/nachie) | ||
| 6 | * Hardware Supported: Arya PCB | ||
| 7 | * Hardware Availability: [KapCave](https://kapcave.com/products/arya-pcb) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make kapcave/arya:default | ||
| 12 | |||
| 13 | Or to make and flash: | ||
| 14 | |||
| 15 | make kapcave/arya:default:flash | ||
| 16 | |||
| 17 | |||
| 18 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
| 19 | |||
| 20 | ## Bootloader | ||
| 21 | |||
| 22 | * **Bootmagic reset**: Hold down Right Space key and plug in the keyboard | ||
| 23 | * **Physical reset button**: Briefly press the button labeled "SW_RST1" on the back of the PCB | ||
diff --git a/keyboards/kapcave/arya/rules.mk b/keyboards/kapcave/arya/rules.mk new file mode 100644 index 000000000..473232771 --- /dev/null +++ b/keyboards/kapcave/arya/rules.mk | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = STM32F072 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = stm32-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | AUDIO_ENABLE = no # Audio output | ||
| 22 | ENCODER_ENABLE = yes | ||
| 23 | |||
| 24 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
| 25 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||
