diff options
| author | takashicompany <t@kashi.company> | 2021-10-12 11:41:50 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 19:41:50 -0700 |
| commit | 2d8dcf08e8981a30f2430a8794ff5013c56cfdd4 (patch) | |
| tree | 6973732d6bd3ba810b4dbf80cbcf5f3decce22e1 /keyboards | |
| parent | 78509658e6b76a843dab82e873421e942f7c076f (diff) | |
| download | qmk_firmware-2d8dcf08e8981a30f2430a8794ff5013c56cfdd4.tar.gz qmk_firmware-2d8dcf08e8981a30f2430a8794ff5013c56cfdd4.zip | |
[Keyboard] Add "Center x Enter" (#14790)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards')
10 files changed, 640 insertions, 0 deletions
diff --git a/keyboards/takashicompany/center_enter/center_enter.c b/keyboards/takashicompany/center_enter/center_enter.c new file mode 100644 index 000000000..4973e6a64 --- /dev/null +++ b/keyboards/takashicompany/center_enter/center_enter.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 takashicompany | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include "center_enter.h" | ||
diff --git a/keyboards/takashicompany/center_enter/center_enter.h b/keyboards/takashicompany/center_enter/center_enter.h new file mode 100644 index 000000000..0bd576f43 --- /dev/null +++ b/keyboards/takashicompany/center_enter/center_enter.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* Copyright 2021 takashicompany | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT( \ | ||
| 30 | k00, k01, k02, k03, k04, k05, k07, k08, k09, k0a, k0b, \ | ||
| 31 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ | ||
| 32 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b \ | ||
| 33 | ) { \ | ||
| 34 | { k00, k01, k02, k03, k04, k05, KC_NO, k07, k08, k09, k0a, k0b }, \ | ||
| 35 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ | ||
| 36 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b } \ | ||
| 37 | } | ||
diff --git a/keyboards/takashicompany/center_enter/config.h b/keyboards/takashicompany/center_enter/config.h new file mode 100644 index 000000000..94868bde1 --- /dev/null +++ b/keyboards/takashicompany/center_enter/config.h | |||
| @@ -0,0 +1,153 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 takashicompany | ||
| 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 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x7463 // tc = takashicompany | ||
| 24 | #define PRODUCT_ID 0x0012 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER takashicompany | ||
| 27 | #define PRODUCT Center x Enter | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 3 | ||
| 31 | #define MATRIX_COLS 12 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { E6, B4, B5 } | ||
| 44 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, D7, B2, B6, D0, D4, C6} | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | #define ENCODER_RESOLUTION 1 | ||
| 51 | #define ENCODERS_PAD_A { D2 } | ||
| 52 | #define ENCODERS_PAD_B { D1 } | ||
| 53 | |||
| 54 | /* | ||
| 55 | * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. | ||
| 56 | */ | ||
| 57 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | ||
| 58 | |||
| 59 | //#define LED_NUM_LOCK_PIN B0 | ||
| 60 | //#define LED_CAPS_LOCK_PIN B1 | ||
| 61 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 62 | //#define LED_COMPOSE_PIN B3 | ||
| 63 | //#define LED_KANA_PIN B4 | ||
| 64 | |||
| 65 | //#define BACKLIGHT_PIN B7 | ||
| 66 | //#define BACKLIGHT_LEVELS 3 | ||
| 67 | //#define BACKLIGHT_BREATHING | ||
| 68 | |||
| 69 | #define RGB_DI_PIN D3 | ||
| 70 | #ifdef RGB_DI_PIN | ||
| 71 | # define RGBLED_NUM 16 | ||
| 72 | # define RGBLIGHT_HUE_STEP 8 | ||
| 73 | # define RGBLIGHT_SAT_STEP 8 | ||
| 74 | # define RGBLIGHT_VAL_STEP 8 | ||
| 75 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 76 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 77 | # define RGBLIGHT_EFFECT_BREATHING | ||
| 78 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 79 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 80 | # define RGBLIGHT_EFFECT_SNAKE | ||
| 81 | # define RGBLIGHT_EFFECT_KNIGHT | ||
| 82 | # define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 83 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 84 | # define RGBLIGHT_EFFECT_RGB_TEST | ||
| 85 | # define RGBLIGHT_EFFECT_ALTERNATING | ||
| 86 | /*== customize breathing effect ==*/ | ||
| 87 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 88 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 89 | /*==== use exp() and sin() ====*/ | ||
| 90 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 91 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 92 | #endif | ||
| 93 | |||
| 94 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 95 | #define DEBOUNCE 5 | ||
| 96 | |||
| 97 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 98 | //#define MATRIX_HAS_GHOST | ||
| 99 | |||
| 100 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 101 | #define LOCKING_SUPPORT_ENABLE | ||
| 102 | /* Locking resynchronize hack */ | ||
| 103 | #define LOCKING_RESYNC_ENABLE | ||
| 104 | |||
| 105 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 106 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 107 | */ | ||
| 108 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 109 | |||
| 110 | /* | ||
| 111 | * Force NKRO | ||
| 112 | * | ||
| 113 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 114 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 115 | * makefile for this to work.) | ||
| 116 | * | ||
| 117 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 118 | * until the next keyboard reset. | ||
| 119 | * | ||
| 120 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 121 | * fully operational during normal computer usage. | ||
| 122 | * | ||
| 123 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 124 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 125 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 126 | * power-up. | ||
| 127 | * | ||
| 128 | */ | ||
| 129 | //#define FORCE_NKRO | ||
| 130 | |||
| 131 | /* | ||
| 132 | * Feature disable options | ||
| 133 | * These options are also useful to firmware size reduction. | ||
| 134 | */ | ||
| 135 | |||
| 136 | /* disable debug print */ | ||
| 137 | //#define NO_DEBUG | ||
| 138 | |||
| 139 | /* disable print */ | ||
| 140 | //#define NO_PRINT | ||
| 141 | |||
| 142 | /* disable action features */ | ||
| 143 | //#define NO_ACTION_LAYER | ||
| 144 | //#define NO_ACTION_TAPPING | ||
| 145 | //#define NO_ACTION_ONESHOT | ||
| 146 | |||
| 147 | /* disable these deprecated features by default */ | ||
| 148 | #define NO_ACTION_MACRO | ||
| 149 | #define NO_ACTION_FUNCTION | ||
| 150 | |||
| 151 | /* Bootmagic Lite key configuration */ | ||
| 152 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 153 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/takashicompany/center_enter/info.json b/keyboards/takashicompany/center_enter/info.json new file mode 100644 index 000000000..f0f3af1f3 --- /dev/null +++ b/keyboards/takashicompany/center_enter/info.json | |||
| @@ -0,0 +1,191 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Center x Enter", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "takashicompany", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | { | ||
| 9 | "label": "201", | ||
| 10 | "x": 0, | ||
| 11 | "y": 0, | ||
| 12 | "w": 1.5 | ||
| 13 | }, | ||
| 14 | { | ||
| 15 | "label": "1", | ||
| 16 | "x": 1.5, | ||
| 17 | "y": 0 | ||
| 18 | }, | ||
| 19 | { | ||
| 20 | "label": "2", | ||
| 21 | "x": 2.5, | ||
| 22 | "y": 0 | ||
| 23 | }, | ||
| 24 | { | ||
| 25 | "label": "3", | ||
| 26 | "x": 3.5, | ||
| 27 | "y": 0 | ||
| 28 | }, | ||
| 29 | { | ||
| 30 | "label": "4", | ||
| 31 | "x": 4.5, | ||
| 32 | "y": 0 | ||
| 33 | }, | ||
| 34 | { | ||
| 35 | "label": "5", | ||
| 36 | "x": 5.5, | ||
| 37 | "y": 0 | ||
| 38 | }, | ||
| 39 | { | ||
| 40 | "label": "901", | ||
| 41 | "x": 6.75, | ||
| 42 | "y": 0, | ||
| 43 | "w": 1.25, | ||
| 44 | "h": 2 | ||
| 45 | }, | ||
| 46 | { | ||
| 47 | "label": "6", | ||
| 48 | "x": 8, | ||
| 49 | "y": 0 | ||
| 50 | }, | ||
| 51 | { | ||
| 52 | "label": "7", | ||
| 53 | "x": 9, | ||
| 54 | "y": 0 | ||
| 55 | }, | ||
| 56 | { | ||
| 57 | "label": "8", | ||
| 58 | "x": 10, | ||
| 59 | "y": 0 | ||
| 60 | }, | ||
| 61 | { | ||
| 62 | "label": "9", | ||
| 63 | "x": 11, | ||
| 64 | "y": 0 | ||
| 65 | }, | ||
| 66 | { | ||
| 67 | "label": "10", | ||
| 68 | "x": 12, | ||
| 69 | "y": 0 | ||
| 70 | }, | ||
| 71 | { | ||
| 72 | "label": "301", | ||
| 73 | "x": 0, | ||
| 74 | "y": 1, | ||
| 75 | "w": 1.75 | ||
| 76 | }, | ||
| 77 | { | ||
| 78 | "label": "11", | ||
| 79 | "x": 1.75, | ||
| 80 | "y": 1 | ||
| 81 | }, | ||
| 82 | { | ||
| 83 | "label": "12", | ||
| 84 | "x": 2.75, | ||
| 85 | "y": 1 | ||
| 86 | }, | ||
| 87 | { | ||
| 88 | "label": "13", | ||
| 89 | "x": 3.75, | ||
| 90 | "y": 1 | ||
| 91 | }, | ||
| 92 | { | ||
| 93 | "label": "14", | ||
| 94 | "x": 4.75, | ||
| 95 | "y": 1 | ||
| 96 | }, | ||
| 97 | { | ||
| 98 | "label": "15", | ||
| 99 | "x": 5.75, | ||
| 100 | "y": 1 | ||
| 101 | }, | ||
| 102 | { | ||
| 103 | "label": "16", | ||
| 104 | "x": 8, | ||
| 105 | "y": 1 | ||
| 106 | }, | ||
| 107 | { | ||
| 108 | "label": "17", | ||
| 109 | "x": 9, | ||
| 110 | "y": 1 | ||
| 111 | }, | ||
| 112 | { | ||
| 113 | "label": "18", | ||
| 114 | "x": 10, | ||
| 115 | "y": 1 | ||
| 116 | }, | ||
| 117 | { | ||
| 118 | "label": "19", | ||
| 119 | "x": 11, | ||
| 120 | "y": 1 | ||
| 121 | }, | ||
| 122 | { | ||
| 123 | "label": "20", | ||
| 124 | "x": 12, | ||
| 125 | "y": 1 | ||
| 126 | }, | ||
| 127 | { | ||
| 128 | "label": "401", | ||
| 129 | "x": 0, | ||
| 130 | "y": 2, | ||
| 131 | "w": 2 | ||
| 132 | }, | ||
| 133 | { | ||
| 134 | "label": "21", | ||
| 135 | "x": 2, | ||
| 136 | "y": 2 | ||
| 137 | }, | ||
| 138 | { | ||
| 139 | "label": "22", | ||
| 140 | "x": 3, | ||
| 141 | "y": 2 | ||
| 142 | }, | ||
| 143 | { | ||
| 144 | "label": "23", | ||
| 145 | "x": 4, | ||
| 146 | "y": 2 | ||
| 147 | }, | ||
| 148 | { | ||
| 149 | "label": "24", | ||
| 150 | "x": 5, | ||
| 151 | "y": 2 | ||
| 152 | }, | ||
| 153 | { | ||
| 154 | "label": "25", | ||
| 155 | "x": 6, | ||
| 156 | "y": 2 | ||
| 157 | }, | ||
| 158 | { | ||
| 159 | "label": "31", | ||
| 160 | "x": 7, | ||
| 161 | "y": 2 | ||
| 162 | }, | ||
| 163 | { | ||
| 164 | "label": "26", | ||
| 165 | "x": 8, | ||
| 166 | "y": 2 | ||
| 167 | }, | ||
| 168 | { | ||
| 169 | "label": "27", | ||
| 170 | "x": 9, | ||
| 171 | "y": 2 | ||
| 172 | }, | ||
| 173 | { | ||
| 174 | "label": "28", | ||
| 175 | "x": 10, | ||
| 176 | "y": 2 | ||
| 177 | }, | ||
| 178 | { | ||
| 179 | "label": "29", | ||
| 180 | "x": 11, | ||
| 181 | "y": 2 | ||
| 182 | }, | ||
| 183 | { | ||
| 184 | "label": "30", | ||
| 185 | "x": 12, | ||
| 186 | "y": 2 | ||
| 187 | } | ||
| 188 | ] | ||
| 189 | } | ||
| 190 | } | ||
| 191 | } \ No newline at end of file | ||
diff --git a/keyboards/takashicompany/center_enter/keymaps/default/keymap.c b/keyboards/takashicompany/center_enter/keymaps/default/keymap.c new file mode 100644 index 000000000..1003d0558 --- /dev/null +++ b/keyboards/takashicompany/center_enter/keymaps/default/keymap.c | |||
| @@ -0,0 +1,97 @@ | |||
| 1 | /* Copyright 2021 takashicompany | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | // Defines the keycodes used by our macros in process_record_user | ||
| 19 | enum custom_keycodes { | ||
| 20 | SWITCH_LANG | ||
| 21 | }; | ||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | |||
| 25 | LAYOUT( | ||
| 26 | KC_TAB, LT(2, KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, ALT_T(KC_P), | ||
| 27 | KC_LCTL, KC_A, KC_S, LT(2, KC_D), KC_F, KC_G, SWITCH_LANG, KC_H, KC_J, LT(2, KC_K), KC_L, KC_ENT, | ||
| 28 | KC_LSFT, KC_Z, GUI_T(KC_X), ALT_T(KC_C), LT(1, KC_V), KC_B, KC_SPC, KC_N, LT(1, KC_M), KC_COMM, CTL_T(KC_DOT), KC_BSPC | ||
| 29 | ), | ||
| 30 | |||
| 31 | LAYOUT( | ||
| 32 | KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 33 | KC_TRNS, KC_EQL, KC_LBRC, KC_SLSH, KC_MINS, KC_RO, KC_TRNS, KC_SCLN, KC_QUOT, KC_RBRC, KC_NUHS, KC_JYEN, | ||
| 34 | KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_LSFT, KC_TRNS, KC_SPC, KC_LANG1, KC_TRNS, KC_TRNS, KC_DEL | ||
| 35 | ), | ||
| 36 | |||
| 37 | LAYOUT( | ||
| 38 | KC_TRNS, KC_ESC, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, | ||
| 39 | KC_TRNS, KC_LCTL, KC_TRNS, KC_QUES, KC_EXLM, KC_NO, KC_TRNS, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, | ||
| 40 | KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_TRNS, KC_TRNS, KC_TRNS, KC_LANG1, KC_NO, MO(3), KC_DEL | ||
| 41 | ), | ||
| 42 | |||
| 43 | LAYOUT( | ||
| 44 | KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, | ||
| 45 | KC_TRNS, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, | ||
| 46 | KC_TRNS, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_M_T, KC_TRNS, KC_F11, KC_F12, KC_CAPS, KC_NO, KC_NO | ||
| 47 | ), | ||
| 48 | |||
| 49 | LAYOUT( | ||
| 50 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 51 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, | ||
| 52 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO | ||
| 53 | ), | ||
| 54 | }; | ||
| 55 | |||
| 56 | bool is_lang1 = false; | ||
| 57 | |||
| 58 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 59 | switch (keycode) { | ||
| 60 | case SWITCH_LANG: | ||
| 61 | if (record->event.pressed) { | ||
| 62 | |||
| 63 | if (is_lang1) { | ||
| 64 | register_code(KC_LANG1); | ||
| 65 | is_lang1 = false; | ||
| 66 | } | ||
| 67 | else { | ||
| 68 | register_code(KC_LANG2); | ||
| 69 | is_lang1 = true; | ||
| 70 | } | ||
| 71 | } | ||
| 72 | break; | ||
| 73 | case KC_LANG1: | ||
| 74 | if (record->event.pressed) { | ||
| 75 | is_lang1 = false; | ||
| 76 | } | ||
| 77 | break; | ||
| 78 | |||
| 79 | case KC_LANG2: | ||
| 80 | if (record->event.pressed) { | ||
| 81 | is_lang1 = true; | ||
| 82 | } | ||
| 83 | break; | ||
| 84 | } | ||
| 85 | return true; | ||
| 86 | } | ||
| 87 | |||
| 88 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 89 | |||
| 90 | if (clockwise) { | ||
| 91 | tap_code(KC_MS_WH_UP); | ||
| 92 | } else { | ||
| 93 | tap_code(KC_MS_WH_DOWN); | ||
| 94 | } | ||
| 95 | |||
| 96 | return true; | ||
| 97 | } | ||
diff --git a/keyboards/takashicompany/center_enter/keymaps/via/config.h b/keyboards/takashicompany/center_enter/keymaps/via/config.h new file mode 100644 index 000000000..ec7c61438 --- /dev/null +++ b/keyboards/takashicompany/center_enter/keymaps/via/config.h | |||
| @@ -0,0 +1 @@ | |||
| #define DYNAMIC_KEYMAP_LAYER_COUNT 8 \ No newline at end of file | |||
diff --git a/keyboards/takashicompany/center_enter/keymaps/via/keymap.c b/keyboards/takashicompany/center_enter/keymaps/via/keymap.c new file mode 100644 index 000000000..cc11ca18a --- /dev/null +++ b/keyboards/takashicompany/center_enter/keymaps/via/keymap.c | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | /* Copyright 2021 takashicompany | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | // Defines the keycodes used by our macros in process_record_user | ||
| 19 | enum custom_keycodes { | ||
| 20 | SWITCH_LANG | ||
| 21 | }; | ||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | |||
| 25 | LAYOUT( | ||
| 26 | KC_TAB, LT(2, KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, ALT_T(KC_P), | ||
| 27 | KC_LCTL, KC_A, KC_S, LT(2, KC_D), KC_F, KC_G, SWITCH_LANG, KC_H, KC_J, LT(2, KC_K), KC_L, KC_ENT, | ||
| 28 | KC_LSFT, KC_Z, GUI_T(KC_X), ALT_T(KC_C), LT(1, KC_V), KC_B, KC_SPC, KC_N, LT(1, KC_M), KC_COMM, CTL_T(KC_DOT), KC_BSPC | ||
| 29 | ), | ||
| 30 | |||
| 31 | LAYOUT( | ||
| 32 | KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 33 | KC_TRNS, KC_EQL, KC_LBRC, KC_SLSH, KC_MINS, KC_RO, KC_TRNS, KC_SCLN, KC_QUOT, KC_RBRC, KC_NUHS, KC_JYEN, | ||
| 34 | KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_LSFT, KC_TRNS, KC_SPC, KC_LANG1, KC_TRNS, KC_TRNS, KC_DEL | ||
| 35 | ), | ||
| 36 | |||
| 37 | LAYOUT( | ||
| 38 | KC_TRNS, KC_ESC, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, | ||
| 39 | KC_TRNS, KC_LCTL, KC_TRNS, KC_QUES, KC_EXLM, KC_NO, KC_TRNS, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, | ||
| 40 | KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_TRNS, KC_TRNS, KC_TRNS, KC_LANG1, KC_NO, MO(3), KC_DEL | ||
| 41 | ), | ||
| 42 | |||
| 43 | LAYOUT( | ||
| 44 | KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, | ||
| 45 | KC_TRNS, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, | ||
| 46 | KC_TRNS, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_M_T, KC_TRNS, KC_F11, KC_F12, KC_CAPS, KC_NO, KC_NO | ||
| 47 | ) | ||
| 48 | }; | ||
| 49 | |||
| 50 | bool is_lang1 = false; | ||
| 51 | |||
| 52 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 53 | switch (keycode) { | ||
| 54 | case SWITCH_LANG: | ||
| 55 | if (record->event.pressed) { | ||
| 56 | |||
| 57 | if (is_lang1) { | ||
| 58 | register_code(KC_LANG1); | ||
| 59 | is_lang1 = false; | ||
| 60 | } | ||
| 61 | else { | ||
| 62 | register_code(KC_LANG2); | ||
| 63 | is_lang1 = true; | ||
| 64 | } | ||
| 65 | } | ||
| 66 | break; | ||
| 67 | case KC_LANG1: | ||
| 68 | if (record->event.pressed) { | ||
| 69 | is_lang1 = false; | ||
| 70 | } | ||
| 71 | break; | ||
| 72 | |||
| 73 | case KC_LANG2: | ||
| 74 | if (record->event.pressed) { | ||
| 75 | is_lang1 = true; | ||
| 76 | } | ||
| 77 | break; | ||
| 78 | } | ||
| 79 | return true; | ||
| 80 | } | ||
| 81 | |||
| 82 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 83 | |||
| 84 | if (clockwise) { | ||
| 85 | tap_code(KC_MS_WH_UP); | ||
| 86 | } else { | ||
| 87 | tap_code(KC_MS_WH_DOWN); | ||
| 88 | } | ||
| 89 | |||
| 90 | return true; | ||
| 91 | } | ||
diff --git a/keyboards/takashicompany/center_enter/keymaps/via/rules.mk b/keyboards/takashicompany/center_enter/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/takashicompany/center_enter/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/takashicompany/center_enter/readme.md b/keyboards/takashicompany/center_enter/readme.md new file mode 100644 index 000000000..d8db5cc7e --- /dev/null +++ b/keyboards/takashicompany/center_enter/readme.md | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | # Center x Enter | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 30% keyboard with the enter key placed in the center. | ||
| 6 | Option to install a rotary encoder is also available. | ||
| 7 | VIA (Remap) is also supported. | ||
| 8 | |||
| 9 | * Keyboard Maintainer: [takashicompany](https://github.com/takashicompany) | ||
| 10 | * Hardware Supported: Center x Enter PCB, Pro Micro | ||
| 11 | * Hardware Availability: https://github.com/takashicompany/center-enter | ||
| 12 | |||
| 13 | Make example for this keyboard (after setting up your build environment): | ||
| 14 | |||
| 15 | make takashicompany/center_enter:default | ||
| 16 | |||
| 17 | Flashing example for this keyboard: | ||
| 18 | |||
| 19 | make takashicompany/center_enter:default:flash | ||
| 20 | |||
| 21 | 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). | ||
| 22 | |||
| 23 | ## Bootloader | ||
| 24 | |||
| 25 | Enter the bootloader in 3 ways: | ||
| 26 | |||
| 27 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
| 28 | * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead | ||
| 29 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
diff --git a/keyboards/takashicompany/center_enter/rules.mk b/keyboards/takashicompany/center_enter/rules.mk new file mode 100644 index 000000000..d8e321ce2 --- /dev/null +++ b/keyboards/takashicompany/center_enter/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # 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 = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | AUDIO_ENABLE = no # Audio output | ||
| 22 | |||
| 23 | ENCODER_ENABLE = yes | ||
