summaryrefslogtreecommitdiffstats
path: root/keyboards/kprepublic/cospad
diff options
context:
space:
mode:
authorlokher <lokher@gmail.com>2022-12-06 17:10:48 +0800
committerlokher <lokher@gmail.com>2022-12-07 15:50:49 +0800
commita336c2c5005251e4cb0f3a62ccabdb4cfccad915 (patch)
tree3c948b631a5e3b6f940dabe02fad3c7487e6f350 /keyboards/kprepublic/cospad
parent27fc28fd2ff52e079a5bc58d6aaea4c752420615 (diff)
Merge upstream master to 2022 Q4 breaking change
Diffstat (limited to 'keyboards/kprepublic/cospad')
-rw-r--r--keyboards/kprepublic/cospad/config.h136
-rw-r--r--keyboards/kprepublic/cospad/keymaps/default/keymap.c57
-rw-r--r--keyboards/kprepublic/cospad/keymaps/detrus/keymap.c367
-rw-r--r--keyboards/kprepublic/cospad/keymaps/split_plus_and_zero/keymap.c81
-rw-r--r--keyboards/kprepublic/cospad/keymaps/split_zero/keymap.c81
-rw-r--r--keyboards/kprepublic/cospad/keymaps/via/keymap.c85
6 files changed, 0 insertions, 807 deletions
diff --git a/keyboards/kprepublic/cospad/config.h b/keyboards/kprepublic/cospad/config.h
deleted file mode 100644
index de567ca0d1..0000000000
--- a/keyboards/kprepublic/cospad/config.h
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
-Copyright 2020
-
-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"
-
-/* key matrix size */
-#define MATRIX_ROWS 6
-#define MATRIX_COLS 4
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
- */
-#define MATRIX_ROW_PINS { D0, D1, D2, D3, D4, D5 }
-#define MATRIX_COL_PINS { F0, F1, E6, C7 }
-
-/* COL2ROW, ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
-/*
- * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
- */
-#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
-
-#define LED_NUM_LOCK_PIN B2
-#define LED_PIN_ON_STATE 0
-
-#define BACKLIGHT_PIN F7
-// #define BACKLIGHT_BREATHING
-#define BACKLIGHT_LEVELS 3
-#define BACKLIGHT_ON_STATE 0
-
-#define RGB_DI_PIN F6
-#ifdef RGB_DI_PIN
- #define RGBLED_NUM 4
-// #define RGBLIGHT_HUE_STEP 8
-// #define RGBLIGHT_SAT_STEP 8
-// #define RGBLIGHT_VAL_STEP 8
-// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
-#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
-#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
-// /*== customize breathing effect ==*/
-// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
-// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
-// /*==== use exp() and sin() ====*/
-// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
-// #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.
- */
-
-/* disable debug print */
-//#define NO_DEBUG
-
-/* disable print */
-//#define NO_PRINT
-
-/* disable action features */
-//#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/keymaps/default/keymap.c b/keyboards/kprepublic/cospad/keymaps/default/keymap.c
deleted file mode 100644
index 4f8c8b2bbc..0000000000
--- a/keyboards/kprepublic/cospad/keymaps/default/keymap.c
+++ /dev/null
@@ -1,57 +0,0 @@
-#include QMK_KEYBOARD_H
-
-// Defines names for use in layer keycodes and the keymap
-enum layer_names {
- _BL,
- _FL
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- /* Keymap _BL: (Base Layer) Default Layer
- * ,-------------------.
- * |Esc |TAB | FN | BS |
- * |----|----|----|----|
- * | NL | / | * | - |
- * |----|----|----|----|
- * | 7 | 8 | 9 | |
- * |----|----|----| + |
- * | 4 | 5 | 6 | |
- * |----|----|----|----|
- * | 1 | 2 | 3 | |
- * |----|----|----| En |
- * | 0 | . | |
- * `-------------------'
- */
- [_BL] = LAYOUT_numpad_6x4(
- KC_ESC, KC_TAB, MO(_FL), KC_BSPC,
- KC_NUM, KC_PSLS, KC_PAST, 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
- ),
-
- /* Keymap _FL: Function Layer
- * ,-------------------.
- * |RGBT| | | |
- * |----|----|----|----|
- * |RGBM|RGBP|BTOG| |
- * |----|----|----|----|
- * |HUD |HUI |BON | |
- * |----|----|----| |
- * |SAD |SAI |BOFF| |
- * |----|----|----|----|
- * |VAD |VAS |BSTP| |
- * |----|----|----| |
- * | |RST | |
- * `-------------------'
- */
- [_FL] = LAYOUT_numpad_6x4(
- RGB_TOG, _______, _______, _______,
- RGB_MOD, RGB_M_P, BL_TOGG, _______,
- RGB_HUD, RGB_HUI, BL_ON,
- RGB_SAD, RGB_SAI, BL_OFF, _______,
- RGB_VAD, RGB_VAI, BL_STEP,
- _______, QK_BOOT, _______
- )
-};
diff --git a/keyboards/kprepublic/cospad/keymaps/detrus/keymap.c b/keyboards/kprepublic/cospad/keymaps/detrus/keymap.c
deleted file mode 100644
index 9172ab8a93..0000000000
--- a/keyboards/kprepublic/cospad/keymaps/detrus/keymap.c
+++ /dev/null
@@ -1,367 +0,0 @@
-#include QMK_KEYBOARD_H
-#include "led.h"
-#include <print.h>
-
-#ifdef RGBLIGHT_ENABLE
-#include "rgblight.h"
-#endif
-
-// Each layer gets a name for readability, which is then used in the keymap matrix below.
-enum cospad_layers {
- _QWERTY_LAYER,
- _QWERTZ_LAYER,
- _COLEMA_LAYER,
- _DVORAK_LAYER,
- _QWERTY_LOWER_LAYER,
- _QWERTZ_LOWER_LAYER,
- _COLEMA_LOWER_LAYER,
- _DVORAK_LOWER_LAYER,
- _RAISE_LAYER,
- _ALTER_LAYER,
-};
-
-// To switch the default layer used for the layout, there are special keycodes.
-// Which onces detected below serve to switch it.
-enum cospad_keycodes {
- QWERTY = SAFE_RANGE,
- QWERTZ,
- COLEMAK,
- DVORAK
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-
- /* Keymap _QWERTY_LAYER: Default layer
- * ,-----------------------.
- * | T | G | B | Alt |
- * |-----|-----|-----|-----|
- * | R | F | V | LOW |
- * |-----|-----|-----|-----|
- * | E | D | C | |
- * |-----|-----|-----| Spc |
- * | W | S | X | |
- * |-----|-----|-----|-----|
- * | Q | A | Z | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- *
- * And it's LOWER layer
- * ,-----------------------.
- * | P | ; | / | Alt |
- * |-----|-----|-----|-----|
- * | O | L | . | LOW |
- * |-----|-----|-----|-----|
- * | I | K | , | |
- * |-----|-----|-----| Ent |
- * | U | J | M | |
- * |-----|-----|-----|-----|
- * | Y | H | N | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- */
- [_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),\
- 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, _______, \
- _______, _______, _______, _______),
-
-
-
- /* Keymap _QWERTZ_LAYER: Alternate default layer
- * ,-----------------------.
- * | T | G | B | Alt |
- * |-----|-----|-----|-----|
- * | R | F | V | LOW |
- * |-----|-----|-----|-----|
- * | E | D | C | |
- * |-----|-----|-----| Spc |
- * | W | S | X | |
- * |-----|-----|-----|-----|
- * | Q | A | Y | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- *
- * And it's LOWER layer
- * ,-----------------------.
- * | P | ; | / | Alt |
- * |-----|-----|-----|-----|
- * | O | L | > | LOW |
- * |-----|-----|-----|-----|
- * | I | K | < | |
- * |-----|-----|-----| Ent |
- * | U | J | M | |
- * |-----|-----|-----|-----|
- * | Z | H | N | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- */
- [_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),\
- 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, _______, \
- _______, _______, _______, _______),
-
-
-
- /* Keymap _COLEMA_LAYER: Alternate default layer
- * ,-----------------------.
- * | G | D | B | Alt |
- * |-----|-----|-----|-----|
- * | P | T | V | LOW |
- * |-----|-----|-----|-----|
- * | F | S | C | |
- * |-----|-----|-----| Spc |
- * | W | R | X | |
- * |-----|-----|-----|-----|
- * | Q | A | Z | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- *
- * And it's LOWER layer
- * ,-----------------------.
- * | ; | O | / | Alt |
- * |-----|-----|-----|-----|
- * | Y | I | . | LOW |
- * |-----|-----|-----|-----|
- * | U | E | , | |
- * |-----|-----|-----| Ent |
- * | L | N | M | |
- * |-----|-----|-----|-----|
- * | J | H | K | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- */
- [_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),\
- 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_F, KC_G, _______, _______),
-
-
-
- /* Keymap _DVORAK_LAYER: Alternate default layer
- * ,-----------------------.
- * | Y | I | X | Alt |
- * |-----|-----|-----|-----|
- * | P | U | K | LOW |
- * |-----|-----|-----|-----|
- * | . | E | J | |
- * |-----|-----|-----| Spc |
- * | , | O | Q | |
- * |-----|-----|-----|-----|
- * | ' | A | ; | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- *
- * And it's LOWER layer
- * ,-----------------------.
- * | L | S | Z | Alt |
- * |-----|-----|-----|-----|
- * | R | N | V | LOW |
- * |-----|-----|-----|-----|
- * | C | T | W | |
- * |-----|-----|-----| Ent |
- * | G | H | M | |
- * |-----|-----|-----|-----|
- * | F | D | B | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- */
- [_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),\
- 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, _______, \
- _______, _______, _______, _______),
-
-
-
- /* Keymap _RAISE_LAYER: Additional layer to access more
- * ,-----------------------.
- * | 5 | 0 | del | Alt |
- * |-----|-----|-----|-----|
- * | 4 | 9 | -> | LOW |
- * |-----|-----|-----|-----|
- * | 3 | 8 | <- | |
- * |-----|-----|-----| Spc |
- * | 2 | 7 | -> | |
- * |-----|-----|-----|-----|
- * | 1 | 6 | <- | RAI |
- * |-----|-----|-----|-----|
- * | Esc | Tab | Sft | Ctl |
- * `-----------------------'
- */
- [_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, _______, \
- _______, _______, _______, _______),
-
-
-
- /* Keymap _ALTER_LAYER: Function layer used to control the Leds
- * and use media buttons
- * ,----------------------------------------.
- * | Val Dec | Bl Toggle | Qwertz | Super |
- * |---------|------------|---------|-------|
- * | Val Inc | Bl Off | Qwerty | |
- * |---------|------------|---------|-------|
- * | Sat Dec | Bl On | Colemak | |
- * |---------|------------|---------| |
- * | Sat Inc | RGB Toggle | Dvorak | |
- * |---------|------------|---------|-------|
- * | Hue Dec | RGB Next | Vol Dwn | |
- * |---------|------------|---------|-------|
- * | Hue Inc | RGB Prev | Vol Up | Reset |
- * `----------------------------------------'
- */
- [_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_HUI, RGB_RMOD, KC_VOLU, QK_BOOT),
-};
-
-// Makes sure to update the good tri-layer if a layer changes
-layer_state_t layer_state_set_user(layer_state_t state) {
- switch (get_highest_layer(default_layer_state)) {
- case _QWERTY_LAYER:
- state = update_tri_layer_state(state, _RAISE_LAYER, _QWERTY_LOWER_LAYER, _ALTER_LAYER);
- break;
- case _QWERTZ_LAYER:
- state = update_tri_layer_state(state, _RAISE_LAYER, _QWERTZ_LOWER_LAYER, _ALTER_LAYER);
- break;
- case _COLEMA_LAYER:
- state = update_tri_layer_state(state, _RAISE_LAYER, _COLEMA_LOWER_LAYER, _ALTER_LAYER);
- break;
- case _DVORAK_LAYER:
- state = update_tri_layer_state(state, _RAISE_LAYER, _DVORAK_LOWER_LAYER, _ALTER_LAYER);
- break;
- }
- return state;
-}
-
-// Makes the tri-layer
-layer_state_t default_layer_state_set_kb(layer_state_t state) {
- switch (get_highest_layer(state)) {
- case _QWERTY_LAYER:
- state = update_tri_layer_state(state, _RAISE_LAYER, _QWERTZ_LOWER_LAYER, _ALTER_LAYER);
- state = update_tri_layer_state(state, _RAISE_LAYER, _COLEMA_LOWER_LAYER, _ALTER_LAYER);
- state = update_tri_layer_state(state, _RAISE_LAYER, _DVORAK_LOWER_LAYER, _ALTER_LAYER);
- layer_move(_QWERTY_LAYER);
- break;
- case _QWERTZ_LAYER:
- state = update_tri_layer_state(state, _RAISE_LAYER, _QWERTY_LOWER_LAYER, _ALTER_LAYER);
- state = update_tri_layer_state(state, _RAISE_LAYER, _COLEMA_LOWER_LAYER, _ALTER_LAYER);
- state = update_tri_layer_state(state, _RAISE_LAYER, _DVORAK_LOWER_LAYER, _ALTER_LAYER);
- layer_move(_QWERTZ_LAYER);
- break;
- case _COLEMA_LAYER:
- state = update_tri_layer_state(state, _RAISE_LAYER, _QWERTY_LOWER_LAYER, _ALTER_LAYER);
- state = update_tri_layer_state(state, _RAISE_LAYER, _QWERTZ_LOWER_LAYER, _ALTER_LAYER);
- state = update_tri_layer_state(state, _RAISE_LAYER, _DVORAK_LOWER_LAYER, _ALTER_LAYER);
- layer_move(_COLEMA_LAYER);
- break;
- case _DVORAK_LAYER:
- state = update_tri_layer_state(state, _RAISE_LAYER, _QWERTY_LOWER_LAYER, _ALTER_LAYER);
- state = update_tri_layer_state(state, _RAISE_LAYER, _QWERTZ_LOWER_LAYER, _ALTER_LAYER);
- state = update_tri_layer_state(state, _RAISE_LAYER, _COLEMA_LOWER_LAYER, _ALTER_LAYER);
- layer_move(_DVORAK_LAYER);
- break;
- }
- return state;
-}
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case BL_TOGG:
- if (record->event.pressed) {
- cospad_bl_led_togg();
- }
- return false;
- case BL_ON:
- if (record->event.pressed) {
- cospad_bl_led_on();
- }
- return false;
- case BL_OFF:
- if (record->event.pressed) {
- cospad_bl_led_off();
- }
- return false;
- case QWERTY:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_QWERTY_LAYER);
- print("switched to QWERTY layout\n");
- }
- return false;
- break;
- case QWERTZ:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_QWERTZ_LAYER);
- }
- return false;
- break;
- case COLEMAK:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_COLEMA_LAYER);
- }
- return false;
- break;
- case DVORAK:
- if (record->event.pressed) {
- set_single_persistent_default_layer(_DVORAK_LAYER);
- }
- return false;
- break;
- default:
- return true;
- }
-}
diff --git a/keyboards/kprepublic/cospad/keymaps/split_plus_and_zero/keymap.c b/keyboards/kprepublic/cospad/keymaps/split_plus_and_zero/keymap.c
deleted file mode 100644
index 83402d71e7..0000000000
--- a/keyboards/kprepublic/cospad/keymaps/split_plus_and_zero/keymap.c
+++ /dev/null
@@ -1,81 +0,0 @@
-#include QMK_KEYBOARD_H
-
-/*
- * This keymap is based on the default keymap for the cospad.
- * It was adapted for the split Plus and split 0 layout focusing on the "00" key.
- */
-
-enum custom_keycodes {
- DBL_ZRO = SAFE_RANGE,
-};
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case DBL_ZRO:
- if (record->event.pressed) {
- // when keycode DBL_ZRO is pressed
- SEND_STRING("00");
- } else {
- // when keycode DBL_ZRO is released
- }
- break;
-
- }
- return true;
-};
-
-// Defines names for use in layer keycodes and the keymap
-enum layer_names {
- _BL,
- _FL
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- /* Keymap _BL: (Base Layer) Default Layer
- * ,-------------------.
- * |Esc |TAB | FN | BS |
- * |----|----|----|----|
- * | NL | / | * | - |
- * |----|----|----|----|
- * | 7 | 8 | 9 | ~ |
- * |----|----|----|----|
- * | 4 | 5 | 6 | + |
- * |----|----|----|----|
- * | 1 | 2 | 3 | |
- * |----|----|----| En |
- * | 0 | 00 | . | |
- * `-------------------'
- */
- [_BL] = LAYOUT_numpad_6x4_split_plus_zero(
- KC_ESC, KC_TAB, MO(_FL), KC_BSPC,
- KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
- KC_P7, KC_P8, KC_P9, KC_TILD,
- KC_P4, KC_P5, KC_P6, KC_PPLS,
- KC_P1, KC_P2, KC_P3,
- KC_P0, DBL_ZRO, KC_PDOT, KC_PENT
- ),
-
- /* Keymap _FL: Function Layer
- * ,-------------------.
- * |RGBT| | | |
- * |----|----|----|----|
- * |RGBM|RGBP|BTOG| |
- * |----|----|----|----|
- * |HUD |HUI |BON | |
- * |----|----|----|----|
- * |SAD |SAI |BOFF| |
- * |----|----|----|----|
- * |VAD |VAS |BSTP| |
- * |----|----|----| |
- * | | |RST | |
- * `-------------------'
- */
- [_FL] = LAYOUT_numpad_6x4_split_plus_zero(
- RGB_TOG, _______, _______, _______,
- RGB_MOD, RGB_M_P, BL_TOGG, _______,
- RGB_HUD, RGB_HUI, BL_ON, _______,
- RGB_SAD, RGB_SAI, BL_OFF, _______,
- RGB_VAD, RGB_VAI, BL_STEP,
- _______, _______, QK_BOOT, _______
- )
-};
diff --git a/keyboards/kprepublic/cospad/keymaps/split_zero/keymap.c b/keyboards/kprepublic/cospad/keymaps/split_zero/keymap.c
deleted file mode 100644
index 1c1893a7fd..0000000000
--- a/keyboards/kprepublic/cospad/keymaps/split_zero/keymap.c
+++ /dev/null
@@ -1,81 +0,0 @@
-#include QMK_KEYBOARD_H
-
-/*
- * This keymap is based on the default keymap for the cospad.
- * It was adapted for the split 0 layout focusing on the "00" key.
- */
-
-enum custom_keycodes {
- DBL_ZRO = SAFE_RANGE,
-};
-
-bool process_record_user(uint16_t keycode, keyrecord_t *record) {
- switch (keycode) {
- case DBL_ZRO:
- if (record->event.pressed) {
- // when keycode DBL_ZRO is pressed
- SEND_STRING("00");
- } else {
- // when keycode DBL_ZRO is released
- }
- break;
-
- }
- return true;
-};
-
-// Defines names for use in layer keycodes and the keymap
-enum layer_names {
- _BL,
- _FL
-};
-
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- /* Keymap _BL: (Base Layer) Default Layer
- * ,-------------------.
- * |Esc |TAB | FN | BS |
- * |----|----|----|----|
- * | NL | / | * | - |
- * |----|----|----|----|
- * | 7 | 8 | 9 | |
- * |----|----|----| + |
- * | 4 | 5 | 6 | |
- * |----|----|----|----|
- * | 1 | 2 | 3 | |
- * |----|----|----| En |
- * | 0 | 00 | . | |
- * `-------------------'
- */
- [_BL] = LAYOUT_numpad_6x4_split_zero(
- KC_ESC, KC_TAB, MO(_FL), KC_BSPC,
- KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
- KC_P7, KC_P8, KC_P9,
- KC_P4, KC_P5, KC_P6, KC_PPLS,
- KC_P1, KC_P2, KC_P3,
- KC_P0, DBL_ZRO, KC_PDOT, KC_PENT
- ),
-
- /* Keymap _FL: Function Layer
- * ,-------------------.
- * |RGBT| | | |
- * |----|----|----|----|
- * |RGBM|RGBP|BTOG| |
- * |----|----|----|----|
- * |HUD |HUI |BON | |
- * |----|----|----| |
- * |SAD |SAI |BOFF| |
- * |----|----|----|----|
- * |VAD |VAS |BSTP| |
- * |----|----|----| |
- * | | |RST | |
- * `-------------------'
- */
- [_FL] = LAYOUT_numpad_6x4_split_zero(
- RGB_TOG, _______, _______, _______,
- RGB_MOD, RGB_M_P, BL_TOGG, _______,
- RGB_HUD, RGB_HUI, BL_ON,
- RGB_SAD, RGB_SAI, BL_OFF, _______,
- RGB_VAD, RGB_VAI, BL_STEP,
- _______, _______, QK_BOOT, _______
- )
-};
diff --git a/keyboards/kprepublic/cospad/keymaps/via/keymap.c b/keyboards/kprepublic/cospad/keymaps/via/keymap.c
deleted file mode 100644
index 2c9008c575..0000000000
--- a/keyboards/kprepublic/cospad/keymaps/via/keymap.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/* Copyright 2020 Team Mechlovin
- *
- * 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] = {
- /* Keymap _BL: (Base Layer) Default Layer
- * ,-------------------.
- * |Esc |TAB | FN | BS |
- * |----|----|----|----|
- * | NL | / | * | - |
- * |----|----|----|----|
- * | 7 | 8 | 9 | |
- * |----|----|----| + |
- * | 4 | 5 | 6 | |
- * |----|----|----|----|
- * | 1 | 2 | 3 | |
- * |----|----|----| En |
- * | 0 | . | |
- * `-------------------'
- */
- [0] = LAYOUT_numpad_6x4(
- KC_ESC, KC_TAB, MO(1), KC_BSPC,
- KC_NUM, KC_PSLS, KC_PAST, 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
- ),
-
- /* Keymap _FL: Function Layer
- * ,-------------------.
- * |RGBT| | | |
- * |----|----|----|----|
- * |RGBM|RGBP|BTOG| |
- * |----|----|----|----|
- * |HUD |HUI |BON | |
- * |----|----|----| |
- * |SAD |SAI |BOFF| |
- * |----|----|----|----|
- * |VAD |VAS |BSTP| |
- * |----|----|----| |
- * | |RST | |
- * `-------------------'
- */
- [1] = LAYOUT_numpad_6x4(
- RGB_TOG, _______, _______, _______,
- RGB_MOD, RGB_M_P, BL_TOGG, _______,
- RGB_HUD, RGB_HUI, BL_ON,
- RGB_SAD, RGB_SAI, BL_OFF, _______,
- RGB_VAD, RGB_VAI, BL_STEP,
- _______, QK_BOOT, _______
- ),
-
- [2] = LAYOUT_numpad_6x4(
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS
- ),
-
- [3] = LAYOUT_numpad_6x4(
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS,
- KC_TRNS, KC_TRNS, KC_TRNS
- )
-};