[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>
This commit is contained in:
nachie
2021-09-28 21:35:14 -07:00
committed by GitHub
parent 77e4b07fb5
commit 6779d5b990
65 changed files with 1504 additions and 120 deletions

View File

@@ -0,0 +1,46 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
/* USB Device descriptor parameter */
#define VENDOR_ID 0x4B43
#define PRODUCT_ID 0x5050
#define MANUFACTURER KapCave
#define PRODUCT paladinpad
/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 4
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* number of backlight levels */
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 3
#endif
/* Set 0 if debouncing isn't needed */
#define DEBOUNCE 5
/* prevent stuck modifiers */
#define PREVENT_STUCK_MODIFIERS

View File

@@ -0,0 +1,82 @@
{
"keyboard_name": "PaladinPad",
"url": "https://kapcave.com/products/paladinpad-pcb",
"maintainer": "nachie",
"layouts": {
"LAYOUT_ortho_5x4": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":3, "y":0},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":3, "y":1},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":3, "y":2},
{"x":0, "y":3},
{"x":1, "y":3},
{"x":2, "y":3},
{"x":3, "y":3},
{"x":0, "y":4},
{"x":1, "y":4},
{"x":2, "y":4},
{"x":3, "y":4}
]
},
"LAYOUT_numpad_aek": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":3, "y":0},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":3, "y":1},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":3, "y":2},
{"x":0, "y":3},
{"x":1, "y":3},
{"x":2, "y":3},
{"x":0, "y":4, "w":2},
{"x":2, "y":4},
{"x":3, "y":3, "h":2}
]
},
"LAYOUT_numpad_5x4": {
"layout": [
{"x":0, "y":0},
{"x":1, "y":0},
{"x":2, "y":0},
{"x":3, "y":0},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":3, "y":1, "h":2},
{"x":0, "y":3},
{"x":1, "y":3},
{"x":2, "y":3},
{"x":0, "y":4, "w":2},
{"x":2, "y":4},
{"x":3, "y":3, "h":2}
]
}
}
}

View File

@@ -0,0 +1,38 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* DEFAULT */
LAYOUT_numpad_aek(
MO(1), KC_PEQL, KC_PSLS, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PMNS,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3,
KC_P0, KC_PDOT, KC_PENT),
/* FUNCTION */
LAYOUT_numpad_aek(
KC_TRNS, RGB_TOG, RGB_MOD, KC_TRNS,
RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS,
RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, RESET, KC_NLCK)
};

View File

@@ -0,0 +1 @@
The keymap for PaladinPad which resembles the AEK Numpad

View File

@@ -0,0 +1,38 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* DEFAULT */
LAYOUT_numpad_5x4(
MO(1), KC_PAST, KC_PSLS, KC_PMNS,
KC_P7, KC_P8, KC_P9,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3,
KC_P0, KC_PDOT, KC_PENT),
/* FUNCTION */
LAYOUT_numpad_5x4(
KC_TRNS, RGB_TOG, RGB_MOD, KC_TRNS,
RGB_HUI, RGB_SAI, RGB_VAI,
RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, RESET, KC_NLCK)
};

View File

@@ -0,0 +1 @@
The default keymap for PaladinPad which resembles the AEK Numpad

View File

@@ -0,0 +1,53 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
enum custom_keycodes {
DBLZERO = SAFE_RANGE
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* DEFAULT */
LAYOUT_ortho_5x4(
MO(1), KC_PSLS, KC_PAST, KC_BSPC,
KC_P7, KC_P8, KC_P9, KC_MINS,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3, KC_EQL,
DBLZERO, KC_P0, KC_PDOT, KC_PENT),
/* FUNCTION */
LAYOUT_ortho_5x4(
KC_TRNS, RGB_TOG, RGB_MOD, KC_TRNS,
RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS,
RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, RESET, KC_NLCK)
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case DBLZERO:
if (record->event.pressed) {
SEND_STRING("00");
}
break;
}
return true;
}

View File

@@ -0,0 +1 @@
The ortho keymap for PaladinPad which makes it a 5x4 ortho pad

View File

@@ -0,0 +1,59 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
enum layer_names {
_BASE, // Default Layer
_FN, // Fn Layer 1
_FN2, // Fn Layer 2
_FN3 // Fn Layer 3
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* DEFAULT */
[_BASE] = LAYOUT_ortho_5x4(
MO(1), KC_PSLS, KC_PAST, KC_BSPC,
KC_P7, KC_P8, KC_P9, KC_MINS,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3, KC_EQL,
KC_P0, KC_P0, KC_PDOT, KC_PENT),
/* FUNCTION */
[_FN] = LAYOUT_ortho_5x4(
KC_TRNS, RGB_TOG, RGB_MOD, KC_TRNS,
RGB_HUI, RGB_SAI, RGB_VAI, KC_TRNS,
RGB_HUD, RGB_SAD, RGB_VAD, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, RESET, KC_NLCK),
/* FUNCTION */
[_FN2] = LAYOUT_ortho_5x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______),
/* FUNCTION */
[_FN3] = LAYOUT_ortho_5x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______)
};

View File

@@ -0,0 +1,3 @@
VIA_ENABLE = yes
# Not enough space on ATMega32u4 for RGB + Audio + Via
AUDIO_ENABLE = no

View File

@@ -0,0 +1,17 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "paladinpad.h"

View File

@@ -0,0 +1,103 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "quantum.h"
/*
* ┌─────┬─────┬─────┬─────┐
* │Num1 │ Eq │Slsh │Star │
* ├─────┼─────┼─────┼─────┤
* │ 7 │ 8 │ 9 │ │
* ├─────┼─────┼─────┤Plus │
* │ 4 │ 5 │ 6 │ │
* ├─────┼─────┼─────┼─────┤
* │ 1 │ 2 │ 3 │ │
* ├─────┴─────┼─────┤ Ent │
* │ 0 │ . │ │
* └───────────┴─────┴─────┘
*/
#define LAYOUT_numpad_5x4( \
K_NUM1, K_SLSH, K_STAR, K_MINUS, \
K_7, K_8, K_9, \
K_4, K_5, K_6, K_PLUS, \
K_1, K_2, K_3, \
K_0, K_DOT, K_ENT \
) { \
{ K_NUM1, K_SLSH, K_STAR, K_MINUS }, \
{ K_7, K_8, K_9, KC_NO }, \
{ K_4, K_5, K_6, K_PLUS }, \
{ K_1, K_2, K_3, K_ENT }, \
{ K_0, K_DOT, KC_NO, KC_NO } \
}
/*
* ┌─────┬─────┬─────┬─────┐
* │Num1 │Eql │Slsh │Star │
* ├─────┼─────┼─────┼─────┤
* │ 7 │ 8 │ 9 │Minus│
* ├─────┼─────┼─────┼─────┤
* │ 4 │ 5 │ 6 │Plus │
* ├─────┼─────┼─────┼─────┤
* │ 1 │ 2 │ 3 │ │
* ├─────┼─────┼─────┤ Ent │
* │ 0 │ 10 │ . │ │
* └─────┴─────┴─────┴─────┘
*/
#define LAYOUT_numpad_aek( \
K_NUM1, K_EQ1, K_SLSH1, K_STAR1, \
K_7, K_8, K_9, K_MINUS1, \
K_4, K_5, K_6, K_PLUS, \
K_1, K_2, K_3, \
K_0, K_DOT1, K_ENT \
) { \
{ K_NUM1, K_EQ1, K_SLSH1, K_STAR1 }, \
{ K_7, K_8, K_9, K_MINUS1 }, \
{ K_4, K_5, K_6, K_PLUS }, \
{ K_1, K_2, K_3, K_ENT }, \
{ K_0, K_DOT1, KC_NO, KC_NO } \
}
/*
* ┌─────┬─────┬─────┬─────┐
* │Num1 │ Eq │Slsh │Star │
* ├─────┼─────┼─────┼─────┤
* │ 7 │ 8 │ 9 │Minus│
* ├─────┼─────┼─────┼─────┤
* │ 4 │ 5 │ 6 │Plus │
* ├─────┼─────┼─────┼─────┤
* │ 1 │ 2 │ 3 │ 11 │
* ├─────┼─────┼─────┼─────┤
* │ 0 │ 10 │ . │ Ent │
* └─────┴─────┴─────┴─────┘
*/
#define LAYOUT_ortho_5x4( \
K_NUM1, K_EQ1, K_SLSH1, K_STAR1, \
K_7, K_8, K_9, K_MINUS1, \
K_4, K_5, K_6, K_PLUS, \
K_1, K_2, K_3, K_11, \
K_0, K_10, K_DOT1, K_ENT \
) { \
{ K_NUM1, K_EQ1, K_SLSH1, K_STAR1 }, \
{ K_7, K_8, K_9, K_MINUS1 }, \
{ K_4, K_5, K_6, K_PLUS }, \
{ K_1, K_2, K_3, K_ENT }, \
{ K_0, K_DOT1, K_10, K_11 } \
}

View File

@@ -0,0 +1,23 @@
# PaladinPad PCB
Firmware for the PaladinPad, with underglow.
* Keyboard Maintainer: [KapCave](https://github.com/nachie)
* Hardware Supported: PaladinPad
* Hardware Availability: [KapCave](https://kapcave.com/products/paladinpad-pcb)
Make example for this keyboard (after setting up your build environment):
make kapcave/paladinpad:default
Or to make and flash:
make kapcave/paladinpad:default:flash
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).
## Bootloader
* **Bootmagic reset**: Hold down NumLock (Top Left) and plug in the keyboard
* **Physical reset button**: Briefly press the button labeled "SW_RST1" on the back of the PCB

View File

@@ -0,0 +1,44 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
#define DEVICE_VER 0x0001
/* key matrix pins */
#define MATRIX_ROW_PINS { C7, B6, B4, D7, D6 }
#define MATRIX_COL_PINS { D4, D5, D3, B7 }
#define RGB_DI_PIN D0
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE
#define RGBLIGHT_EFFECT_KNIGHT
#define RGBLIGHT_EFFECT_CHRISTMAS
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 8
#define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 17
#define RGBLIGHT_VAL_STEP 12
#endif

View File

@@ -0,0 +1,47 @@
/*
Copyright 2021 KapCave
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "config_common.h"
#define DEVICE_VER 0x0002
/* key matrix pins */
#define MATRIX_ROW_PINS { F4, F6, D7, B4, D6 }
#define MATRIX_COL_PINS { F7, F5, D3, B7 }
#define AUDIO_PIN C6
#define RGB_DI_PIN D0
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE
#define RGBLIGHT_EFFECT_KNIGHT
#define RGBLIGHT_EFFECT_CHRISTMAS
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 7
#define RGBLIGHT_HUE_STEP 10
#define RGBLIGHT_SAT_STEP 17
#define RGBLIGHT_VAL_STEP 12
#endif

View File

@@ -0,0 +1,24 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
BOOTLOADER = atmel-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
MOUSEKEY_ENABLE = no # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
DEFAULT_FOLDER = kapcave/paladinpad/rev2
LAYOUTS = numpad_5x4 ortho_5x4