summaryrefslogtreecommitdiff
path: root/keyboards/kprepublic/cospad
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kprepublic/cospad')
-rw-r--r--keyboards/kprepublic/cospad/config.h38
-rw-r--r--keyboards/kprepublic/cospad/info.json1
-rw-r--r--keyboards/kprepublic/cospad/keymaps/detrus/keymap.c100
-rw-r--r--keyboards/kprepublic/cospad/rules.mk2
4 files changed, 51 insertions, 90 deletions
diff --git a/keyboards/kprepublic/cospad/config.h b/keyboards/kprepublic/cospad/config.h
index de567ca0d1..b5a87c93a6 100644
--- a/keyboards/kprepublic/cospad/config.h
+++ b/keyboards/kprepublic/cospad/config.h
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#include "config_common.h"
/* key matrix size */
#define MATRIX_ROWS 6
@@ -48,7 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN F7
-// #define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 3
#define BACKLIGHT_ON_STATE 0
@@ -78,43 +76,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
#endif
-/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
-#define DEBOUNCE 5
-
-/* define if matrix has ghost (lacks anti-ghosting diodes) */
-//#define MATRIX_HAS_GHOST
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
-/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
- * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
- */
-// #define GRAVE_ESC_CTRL_OVERRIDE
-
-/*
- * Force NKRO
- *
- * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
- * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
- * makefile for this to work.)
- *
- * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
- * until the next keyboard reset.
- *
- * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
- * fully operational during normal computer usage.
- *
- * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
- * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
- * bootmagic, NKRO mode will always be enabled until it is toggled again during a
- * power-up.
- *
- */
-//#define FORCE_NKRO
-
/*
* Feature disable options
* These options are also useful to firmware size reduction.
@@ -130,7 +96,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
-
-/* Bootmagic Lite key configuration */
-// #define BOOTMAGIC_LITE_ROW 0
-// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/kprepublic/cospad/info.json b/keyboards/kprepublic/cospad/info.json
index 3009e986fa..d110a78b7d 100644
--- a/keyboards/kprepublic/cospad/info.json
+++ b/keyboards/kprepublic/cospad/info.json
@@ -8,6 +8,7 @@
"pid": "0xB1E5",
"device_version": "0.0.1"
},
+ "community_layouts": ["numpad_6x4", "ortho_6x4"],
"layouts": {
"LAYOUT_ortho_6x4": {
"layout": [
diff --git a/keyboards/kprepublic/cospad/keymaps/detrus/keymap.c b/keyboards/kprepublic/cospad/keymaps/detrus/keymap.c
index 9172ab8a93..c3fc1a2925 100644
--- a/keyboards/kprepublic/cospad/keymaps/detrus/keymap.c
+++ b/keyboards/kprepublic/cospad/keymaps/detrus/keymap.c
@@ -62,18 +62,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----------------------'
*/
[_QWERTY_LAYER] = LAYOUT_gamepad_6x4(
- KC_T, KC_G, KC_B, KC_LALT, \
- KC_R, KC_F, KC_V, MO(_QWERTY_LOWER_LAYER),\
- KC_E, KC_D, KC_C, \
- KC_W, KC_S, KC_X, KC_SPACE, \
- KC_Q, KC_A, KC_Z, MO(_RAISE_LAYER),\
+ KC_T, KC_G, KC_B, KC_LALT,
+ KC_R, KC_F, KC_V, MO(_QWERTY_LOWER_LAYER),
+ KC_E, KC_D, KC_C,
+ KC_W, KC_S, KC_X, KC_SPACE,
+ KC_Q, KC_A, KC_Z, MO(_RAISE_LAYER),
QK_GESC, KC_TAB, KC_LSFT, KC_LCTL),
[_QWERTY_LOWER_LAYER] = LAYOUT_gamepad_6x4(
- KC_P, KC_SCLN, KC_SLSH, KC_LALT, \
- KC_O, KC_L, KC_DOT, _______, \
- KC_I, KC_K, KC_COMM, \
- KC_U, KC_J, KC_M, KC_ENTER, \
- KC_Y, KC_H, KC_N, _______, \
+ KC_P, KC_SCLN, KC_SLSH, KC_LALT,
+ KC_O, KC_L, KC_DOT, _______,
+ KC_I, KC_K, KC_COMM,
+ KC_U, KC_J, KC_M, KC_ENTER,
+ KC_Y, KC_H, KC_N, _______,
_______, _______, _______, _______),
@@ -109,18 +109,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----------------------'
*/
[_QWERTZ_LAYER] = LAYOUT_gamepad_6x4(
- KC_T, KC_G, KC_B, KC_LALT, \
- KC_R, KC_F, KC_V, MO(_QWERTZ_LOWER_LAYER),\
- KC_E, KC_D, KC_C, \
- KC_W, KC_S, KC_X, KC_SPACE, \
- KC_Q, KC_A, KC_Y, MO(_RAISE_LAYER),\
+ KC_T, KC_G, KC_B, KC_LALT,
+ KC_R, KC_F, KC_V, MO(_QWERTZ_LOWER_LAYER),
+ KC_E, KC_D, KC_C,
+ KC_W, KC_S, KC_X, KC_SPACE,
+ KC_Q, KC_A, KC_Y, MO(_RAISE_LAYER),
QK_GESC, KC_TAB, KC_LSFT, KC_LCTL),
[_QWERTZ_LOWER_LAYER] = LAYOUT_gamepad_6x4(
- KC_P, KC_SCLN, KC_SLSH, KC_LALT, \
- KC_O, KC_L, KC_DOT, _______, \
- KC_I, KC_K, KC_COMM, \
- KC_U, KC_J, KC_M, KC_ENTER, \
- KC_Z, KC_H, KC_N, _______, \
+ KC_P, KC_SCLN, KC_SLSH, KC_LALT,
+ KC_O, KC_L, KC_DOT, _______,
+ KC_I, KC_K, KC_COMM,
+ KC_U, KC_J, KC_M, KC_ENTER,
+ KC_Z, KC_H, KC_N, _______,
_______, _______, _______, _______),
@@ -156,18 +156,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----------------------'
*/
[_COLEMA_LAYER] = LAYOUT_gamepad_6x4(
- KC_T, KC_D, KC_B, KC_LALT, \
- KC_R, KC_T, KC_V, MO(_COLEMA_LOWER_LAYER),\
- KC_E, KC_S, KC_C, \
- KC_W, KC_R, KC_X, KC_SPACE, \
- KC_Q, KC_A, KC_Z, MO(_RAISE_LAYER),\
+ KC_T, KC_D, KC_B, KC_LALT,
+ KC_R, KC_T, KC_V, MO(_COLEMA_LOWER_LAYER),
+ KC_E, KC_S, KC_C,
+ KC_W, KC_R, KC_X, KC_SPACE,
+ KC_Q, KC_A, KC_Z, MO(_RAISE_LAYER),
QK_GESC, KC_TAB, KC_LSFT, KC_LCTL),
[_COLEMA_LOWER_LAYER] = LAYOUT_gamepad_6x4(
- KC_SCLN, KC_O, KC_SLSH, _______, \
- KC_Y, KC_I, KC_DOT, _______, \
- KC_U, KC_E, KC_COMM, \
- KC_L, KC_N, KC_M, KC_ENTER, \
- KC_J, KC_H, KC_K, _______, \
+ KC_SCLN, KC_O, KC_SLSH, _______,
+ KC_Y, KC_I, KC_DOT, _______,
+ KC_U, KC_E, KC_COMM,
+ KC_L, KC_N, KC_M, KC_ENTER,
+ KC_J, KC_H, KC_K, _______,
KC_F, KC_G, _______, _______),
@@ -203,18 +203,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----------------------'
*/
[_DVORAK_LAYER] = LAYOUT_gamepad_6x4(
- KC_Y, KC_I, KC_X, KC_LALT, \
- KC_P, KC_U, KC_K, MO(_DVORAK_LOWER_LAYER),\
- KC_DOT, KC_E, KC_J, \
- KC_COMM, KC_O, KC_A, KC_SPACE, \
- KC_QUOT, KC_A, KC_SCLN, MO(_RAISE_LAYER),\
+ KC_Y, KC_I, KC_X, KC_LALT,
+ KC_P, KC_U, KC_K, MO(_DVORAK_LOWER_LAYER),
+ KC_DOT, KC_E, KC_J,
+ KC_COMM, KC_O, KC_A, KC_SPACE,
+ KC_QUOT, KC_A, KC_SCLN, MO(_RAISE_LAYER),
QK_GESC, KC_TAB, KC_LSFT, KC_LCTL),
[_DVORAK_LOWER_LAYER] = LAYOUT_gamepad_6x4(
- KC_L, KC_S, KC_Z, KC_LALT, \
- KC_R, KC_N, KC_V, _______, \
- KC_C, KC_T, KC_W, \
- KC_G, KC_H, KC_M, KC_ENTER,\
- KC_F, KC_D, KC_B, _______, \
+ KC_L, KC_S, KC_Z, KC_LALT,
+ KC_R, KC_N, KC_V, _______,
+ KC_C, KC_T, KC_W,
+ KC_G, KC_H, KC_M, KC_ENTER,
+ KC_F, KC_D, KC_B, _______,
_______, _______, _______, _______),
@@ -235,11 +235,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `-----------------------'
*/
[_RAISE_LAYER] = LAYOUT_gamepad_6x4(
- KC_5, KC_0, KC_BSPC, _______, \
- KC_4, KC_9, KC_RIGHT, _______, \
- KC_3, KC_8, KC_UP, \
- KC_2, KC_7, KC_DOWN, _______, \
- KC_1, KC_6, KC_LEFT, _______, \
+ KC_5, KC_0, KC_BSPC, _______,
+ KC_4, KC_9, KC_RIGHT, _______,
+ KC_3, KC_8, KC_UP,
+ KC_2, KC_7, KC_DOWN, _______,
+ KC_1, KC_6, KC_LEFT, _______,
_______, _______, _______, _______),
@@ -261,11 +261,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* `----------------------------------------'
*/
[_ALTER_LAYER] = LAYOUT_gamepad_6x4(
- RGB_VAD, BL_TOGG, QWERTZ, KC_LGUI, \
- RGB_VAI, BL_OFF, QWERTY, _______, \
- RGB_SAD, BL_ON, COLEMAK, \
- RGB_SAI, RGB_TOG, DVORAK, _______, \
- RGB_HUD, RGB_MOD, KC_VOLD, _______, \
+ RGB_VAD, BL_TOGG, QWERTZ, KC_LGUI,
+ RGB_VAI, BL_OFF, QWERTY, _______,
+ RGB_SAD, BL_ON, COLEMAK,
+ RGB_SAI, RGB_TOG, DVORAK, _______,
+ RGB_HUD, RGB_MOD, KC_VOLD, _______,
RGB_HUI, RGB_RMOD, KC_VOLU, QK_BOOT),
};
diff --git a/keyboards/kprepublic/cospad/rules.mk b/keyboards/kprepublic/cospad/rules.mk
index c3f218c5d8..38f81fd4dc 100644
--- a/keyboards/kprepublic/cospad/rules.mk
+++ b/keyboards/kprepublic/cospad/rules.mk
@@ -16,5 +16,3 @@ NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output
-
-LAYOUTS = numpad_6x4 ortho_6x4