diff options
| author | takashicompany <t@kashi.company> | 2021-12-11 15:46:53 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-10 22:46:53 -0800 |
| commit | fb93869af0bb589237079fdd2e8245b10af0d045 (patch) | |
| tree | cdae31b8fd13cc86321e45cbdf84415c0618ccc7 | |
| parent | 0dc2bdbcb0fda1dd9576ddcb1d1774d91a46a17c (diff) | |
| download | qmk_firmware-fb93869af0bb589237079fdd2e8245b10af0d045.tar.gz qmk_firmware-fb93869af0bb589237079fdd2e8245b10af0d045.zip | |
[Keyboard] add Radialex (#14949)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: takashicompany <takashicompany@TMPB2021.local>
| -rw-r--r-- | keyboards/takashicompany/radialex/config.h | 139 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/info.json | 191 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/keymaps/default/keymap.c | 64 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/keymaps/via/config.h | 20 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/keymaps/via/keymap.c | 89 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/radialex.c | 17 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/radialex.h | 42 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/readme.md | 31 | ||||
| -rw-r--r-- | keyboards/takashicompany/radialex/rules.mk | 18 |
10 files changed, 612 insertions, 0 deletions
diff --git a/keyboards/takashicompany/radialex/config.h b/keyboards/takashicompany/radialex/config.h new file mode 100644 index 000000000..ee6e958f9 --- /dev/null +++ b/keyboards/takashicompany/radialex/config.h | |||
| @@ -0,0 +1,139 @@ | |||
| 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 0x0019 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER takashicompany | ||
| 27 | #define PRODUCT Radialex | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 7 | ||
| 31 | #define MATRIX_COLS 7 | ||
| 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 { B6, D4, C6, D7, E6, B4, B5 } | ||
| 44 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | //#define LED_NUM_LOCK_PIN B0 | ||
| 51 | //#define LED_CAPS_LOCK_PIN B1 | ||
| 52 | //#define LED_SCROLL_LOCK_PIN B2 | ||
| 53 | //#define LED_COMPOSE_PIN B3 | ||
| 54 | //#define LED_KANA_PIN B4 | ||
| 55 | |||
| 56 | //#define BACKLIGHT_PIN B7 | ||
| 57 | //#define BACKLIGHT_LEVELS 3 | ||
| 58 | //#define BACKLIGHT_BREATHING | ||
| 59 | |||
| 60 | #define RGB_DI_PIN D3 | ||
| 61 | #ifdef RGB_DI_PIN | ||
| 62 | # define RGBLED_NUM 12 | ||
| 63 | # define RGBLIGHT_HUE_STEP 8 | ||
| 64 | # define RGBLIGHT_SAT_STEP 8 | ||
| 65 | # define RGBLIGHT_VAL_STEP 8 | ||
| 66 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 67 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 68 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 69 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 70 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 71 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 72 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 73 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 74 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 75 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 76 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 77 | #define RGBLIGHT_EFFECT_TWINKLE | ||
| 78 | #endif | ||
| 79 | |||
| 80 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 81 | #define DEBOUNCE 5 | ||
| 82 | |||
| 83 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 84 | //#define MATRIX_HAS_GHOST | ||
| 85 | |||
| 86 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 87 | #define LOCKING_SUPPORT_ENABLE | ||
| 88 | /* Locking resynchronize hack */ | ||
| 89 | #define LOCKING_RESYNC_ENABLE | ||
| 90 | |||
| 91 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 92 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 93 | */ | ||
| 94 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 95 | |||
| 96 | /* | ||
| 97 | * Force NKRO | ||
| 98 | * | ||
| 99 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 100 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 101 | * makefile for this to work.) | ||
| 102 | * | ||
| 103 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 104 | * until the next keyboard reset. | ||
| 105 | * | ||
| 106 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 107 | * fully operational during normal computer usage. | ||
| 108 | * | ||
| 109 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 110 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 111 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 112 | * power-up. | ||
| 113 | * | ||
| 114 | */ | ||
| 115 | //#define FORCE_NKRO | ||
| 116 | |||
| 117 | /* | ||
| 118 | * Feature disable options | ||
| 119 | * These options are also useful to firmware size reduction. | ||
| 120 | */ | ||
| 121 | |||
| 122 | /* disable debug print */ | ||
| 123 | //#define NO_DEBUG | ||
| 124 | |||
| 125 | /* disable print */ | ||
| 126 | //#define NO_PRINT | ||
| 127 | |||
| 128 | /* disable action features */ | ||
| 129 | //#define NO_ACTION_LAYER | ||
| 130 | //#define NO_ACTION_TAPPING | ||
| 131 | //#define NO_ACTION_ONESHOT | ||
| 132 | |||
| 133 | /* disable these deprecated features by default */ | ||
| 134 | #define NO_ACTION_MACRO | ||
| 135 | #define NO_ACTION_FUNCTION | ||
| 136 | |||
| 137 | /* Bootmagic Lite key configuration */ | ||
| 138 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 139 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/takashicompany/radialex/info.json b/keyboards/takashicompany/radialex/info.json new file mode 100644 index 000000000..d78e301ee --- /dev/null +++ b/keyboards/takashicompany/radialex/info.json | |||
| @@ -0,0 +1,191 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Radialex", | ||
| 3 | "url": "https://github.com/takashicompany/radialex", | ||
| 4 | "maintainer": "takashicompany", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | { | ||
| 9 | "x": 1, | ||
| 10 | "y": 0 | ||
| 11 | }, | ||
| 12 | { | ||
| 13 | "x": 2, | ||
| 14 | "y": 0 | ||
| 15 | }, | ||
| 16 | { | ||
| 17 | "x": 3, | ||
| 18 | "y": 0 | ||
| 19 | }, | ||
| 20 | { | ||
| 21 | "x": 4, | ||
| 22 | "y": 0 | ||
| 23 | }, | ||
| 24 | { | ||
| 25 | "x": 5, | ||
| 26 | "y": 0 | ||
| 27 | }, | ||
| 28 | { | ||
| 29 | "x": 9, | ||
| 30 | "y": 0 | ||
| 31 | }, | ||
| 32 | { | ||
| 33 | "x": 10, | ||
| 34 | "y": 0 | ||
| 35 | }, | ||
| 36 | { | ||
| 37 | "x": 11, | ||
| 38 | "y": 0 | ||
| 39 | }, | ||
| 40 | { | ||
| 41 | "x": 12, | ||
| 42 | "y": 0 | ||
| 43 | }, | ||
| 44 | { | ||
| 45 | "x": 13, | ||
| 46 | "y": 0 | ||
| 47 | }, | ||
| 48 | { | ||
| 49 | "x": 0, | ||
| 50 | "y": 1 | ||
| 51 | }, | ||
| 52 | { | ||
| 53 | "x": 1, | ||
| 54 | "y": 1 | ||
| 55 | }, | ||
| 56 | { | ||
| 57 | "x": 2, | ||
| 58 | "y": 1 | ||
| 59 | }, | ||
| 60 | { | ||
| 61 | "x": 3, | ||
| 62 | "y": 1 | ||
| 63 | }, | ||
| 64 | { | ||
| 65 | "x": 4, | ||
| 66 | "y": 1 | ||
| 67 | }, | ||
| 68 | { | ||
| 69 | "x": 5, | ||
| 70 | "y": 1 | ||
| 71 | }, | ||
| 72 | { | ||
| 73 | "x": 7, | ||
| 74 | "y": 1 | ||
| 75 | }, | ||
| 76 | { | ||
| 77 | "x": 9, | ||
| 78 | "y": 1 | ||
| 79 | }, | ||
| 80 | { | ||
| 81 | "x": 10, | ||
| 82 | "y": 1 | ||
| 83 | }, | ||
| 84 | { | ||
| 85 | "x": 11, | ||
| 86 | "y": 1 | ||
| 87 | }, | ||
| 88 | { | ||
| 89 | "x": 12, | ||
| 90 | "y": 1 | ||
| 91 | }, | ||
| 92 | { | ||
| 93 | "x": 13, | ||
| 94 | "y": 1 | ||
| 95 | }, | ||
| 96 | { | ||
| 97 | "x": 14, | ||
| 98 | "y": 1 | ||
| 99 | }, | ||
| 100 | { | ||
| 101 | "x": 0, | ||
| 102 | "y": 2 | ||
| 103 | }, | ||
| 104 | { | ||
| 105 | "x": 1, | ||
| 106 | "y": 2 | ||
| 107 | }, | ||
| 108 | { | ||
| 109 | "x": 2, | ||
| 110 | "y": 2 | ||
| 111 | }, | ||
| 112 | { | ||
| 113 | "x": 3, | ||
| 114 | "y": 2 | ||
| 115 | }, | ||
| 116 | { | ||
| 117 | "x": 4, | ||
| 118 | "y": 2 | ||
| 119 | }, | ||
| 120 | { | ||
| 121 | "x": 5, | ||
| 122 | "y": 2 | ||
| 123 | }, | ||
| 124 | { | ||
| 125 | "x": 9, | ||
| 126 | "y": 2 | ||
| 127 | }, | ||
| 128 | { | ||
| 129 | "x": 10, | ||
| 130 | "y": 2 | ||
| 131 | }, | ||
| 132 | { | ||
| 133 | "x": 11, | ||
| 134 | "y": 2 | ||
| 135 | }, | ||
| 136 | { | ||
| 137 | "x": 12, | ||
| 138 | "y": 2 | ||
| 139 | }, | ||
| 140 | { | ||
| 141 | "x": 13, | ||
| 142 | "y": 2 | ||
| 143 | }, | ||
| 144 | { | ||
| 145 | "x": 14, | ||
| 146 | "y": 2 | ||
| 147 | }, | ||
| 148 | { | ||
| 149 | "x": 2, | ||
| 150 | "y": 3 | ||
| 151 | }, | ||
| 152 | { | ||
| 153 | "x": 3, | ||
| 154 | "y": 3 | ||
| 155 | }, | ||
| 156 | { | ||
| 157 | "x": 4, | ||
| 158 | "y": 3 | ||
| 159 | }, | ||
| 160 | { | ||
| 161 | "x": 5, | ||
| 162 | "y": 3 | ||
| 163 | }, | ||
| 164 | { | ||
| 165 | "x": 6, | ||
| 166 | "y": 3 | ||
| 167 | }, | ||
| 168 | { | ||
| 169 | "x": 8, | ||
| 170 | "y": 3 | ||
| 171 | }, | ||
| 172 | { | ||
| 173 | "x": 9, | ||
| 174 | "y": 3 | ||
| 175 | }, | ||
| 176 | { | ||
| 177 | "x": 10, | ||
| 178 | "y": 3 | ||
| 179 | }, | ||
| 180 | { | ||
| 181 | "x": 11, | ||
| 182 | "y": 3 | ||
| 183 | }, | ||
| 184 | { | ||
| 185 | "x": 12, | ||
| 186 | "y": 3 | ||
| 187 | } | ||
| 188 | ] | ||
| 189 | } | ||
| 190 | } | ||
| 191 | } \ No newline at end of file | ||
diff --git a/keyboards/takashicompany/radialex/keymaps/default/keymap.c b/keyboards/takashicompany/radialex/keymaps/default/keymap.c new file mode 100644 index 000000000..ad8274e43 --- /dev/null +++ b/keyboards/takashicompany/radialex/keymaps/default/keymap.c | |||
| @@ -0,0 +1,64 @@ | |||
| 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 | RADIALEX = SAFE_RANGE, | ||
| 21 | }; | ||
| 22 | |||
| 23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 24 | |||
| 25 | LAYOUT( | ||
| 26 | LT(2, KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 27 | KC_ESC, KC_A, KC_S, LT(2, KC_D), KC_F, KC_G, RADIALEX, KC_H, KC_J, LT(2, KC_K), KC_L, KC_ENT, KC_DEL, | ||
| 28 | KC_LSFT, SFT_T(KC_Z), GUI_T(KC_X), KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, CTL_T(KC_DOT), KC_BSPC, KC_RSFT, | ||
| 29 | KC_LCTL, KC_LGUI, KC_LALT, ALT_T(KC_LANG2), SFT_T(KC_TAB), KC_SPC, LT(1, KC_LANG1), KC_RALT, KC_RGUI, KC_RCTL | ||
| 30 | ), | ||
| 31 | LAYOUT( | ||
| 32 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 33 | KC_LCTL, CTL_T(KC_EQL), KC_LBRC, KC_SLSH, KC_MINS, KC_RO, KC_TRNS, KC_SCLN, KC_QUOT, KC_RBRC, KC_NUHS, KC_JYEN, KC_TRNS, | ||
| 34 | KC_TRNS, SFT_T(LSFT(KC_LBRC)), LSFT(KC_LBRC), LSFT(KC_SLSH), LSFT(KC_MINS), LSFT(KC_RO), LSFT(KC_SCLN), LSFT(KC_QUOT), LSFT(KC_RBRC), LSFT(KC_NUHS), LSFT(KC_JYEN), KC_TRNS, | ||
| 35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 36 | ), | ||
| 37 | |||
| 38 | LAYOUT( | ||
| 39 | KC_ESC, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, | ||
| 40 | KC_TRNS, KC_LCTL, KC_TRNS, KC_QUES, KC_EXLM, KC_NO, KC_TRNS, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_TRNS, | ||
| 41 | KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_TRNS, KC_TRNS, KC_LANG1, KC_NO, MO(3), KC_DEL, KC_TRNS, | ||
| 42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 43 | ), | ||
| 44 | |||
| 45 | LAYOUT( | ||
| 46 | RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, | ||
| 47 | 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, KC_TRNS, | ||
| 48 | KC_TRNS, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_M_T, KC_F11, KC_F12, KC_CAPS, KC_NO, KC_NO, KC_TRNS, | ||
| 49 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 50 | ), | ||
| 51 | |||
| 52 | }; | ||
| 53 | |||
| 54 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 55 | switch (keycode) { | ||
| 56 | case RADIALEX: | ||
| 57 | if (record->event.pressed) { | ||
| 58 | SEND_STRING("Radialex"); | ||
| 59 | rgblight_toggle(); | ||
| 60 | } | ||
| 61 | return false; | ||
| 62 | } | ||
| 63 | return true; | ||
| 64 | } | ||
diff --git a/keyboards/takashicompany/radialex/keymaps/via/config.h b/keyboards/takashicompany/radialex/keymaps/via/config.h new file mode 100644 index 000000000..74f9e9e64 --- /dev/null +++ b/keyboards/takashicompany/radialex/keymaps/via/config.h | |||
| @@ -0,0 +1,20 @@ | |||
| 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 | #define DYNAMIC_KEYMAP_LAYER_COUNT 8 | ||
diff --git a/keyboards/takashicompany/radialex/keymaps/via/keymap.c b/keyboards/takashicompany/radialex/keymaps/via/keymap.c new file mode 100644 index 000000000..ce9c9d78e --- /dev/null +++ b/keyboards/takashicompany/radialex/keymaps/via/keymap.c | |||
| @@ -0,0 +1,89 @@ | |||
| 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 | #define RADIALEX USER00 | ||
| 19 | |||
| 20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 21 | |||
| 22 | LAYOUT( | ||
| 23 | LT(2, KC_Q), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 24 | KC_ESC, KC_A, KC_S, LT(2, KC_D), KC_F, KC_G, RADIALEX, KC_H, KC_J, LT(2, KC_K), KC_L, KC_ENT, KC_DEL, | ||
| 25 | KC_LSFT, SFT_T(KC_Z), GUI_T(KC_X), KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, CTL_T(KC_DOT), KC_BSPC, KC_RSFT, | ||
| 26 | KC_LCTL, KC_LGUI, KC_LALT, ALT_T(KC_LANG2), SFT_T(KC_TAB), KC_SPC, LT(1, KC_LANG1), KC_RALT, KC_RGUI, KC_RCTL | ||
| 27 | ), | ||
| 28 | LAYOUT( | ||
| 29 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 30 | KC_LCTL, CTL_T(KC_EQL), KC_LBRC, KC_SLSH, KC_MINS, KC_RO, KC_TRNS, KC_SCLN, KC_QUOT, KC_RBRC, KC_NUHS, KC_JYEN, KC_TRNS, | ||
| 31 | KC_TRNS, SFT_T(LSFT(KC_LBRC)), LSFT(KC_LBRC), LSFT(KC_SLSH), LSFT(KC_MINS), LSFT(KC_RO), LSFT(KC_SCLN), LSFT(KC_QUOT), LSFT(KC_RBRC), LSFT(KC_NUHS), LSFT(KC_JYEN), KC_TRNS, | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 33 | ), | ||
| 34 | |||
| 35 | LAYOUT( | ||
| 36 | KC_ESC, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, | ||
| 37 | KC_TRNS, KC_LCTL, KC_TRNS, KC_QUES, KC_EXLM, KC_NO, KC_TRNS, KC_NO, KC_LEFT, KC_DOWN, KC_RGHT, KC_NO, KC_TRNS, | ||
| 38 | KC_TRNS, KC_LSFT, KC_LGUI, KC_LALT, KC_LANG2, KC_TRNS, KC_TRNS, KC_LANG1, KC_NO, MO(3), KC_DEL, KC_TRNS, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 40 | ), | ||
| 41 | |||
| 42 | LAYOUT( | ||
| 43 | RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, | ||
| 44 | 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, KC_TRNS, | ||
| 45 | KC_TRNS, RGB_M_K, RGB_M_X, RGB_M_G, RGB_M_T, RGB_M_T, KC_F11, KC_F12, KC_CAPS, KC_NO, KC_NO, KC_TRNS, | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 47 | ), | ||
| 48 | |||
| 49 | LAYOUT( | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 51 | 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, | ||
| 52 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 54 | ), | ||
| 55 | |||
| 56 | LAYOUT( | ||
| 57 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 58 | 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, | ||
| 59 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 60 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 61 | ), | ||
| 62 | |||
| 63 | LAYOUT( | ||
| 64 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 65 | 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, | ||
| 66 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 67 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 68 | ), | ||
| 69 | |||
| 70 | LAYOUT( | ||
| 71 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 72 | 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, | ||
| 73 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 74 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
| 75 | ) | ||
| 76 | |||
| 77 | }; | ||
| 78 | |||
| 79 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 80 | switch (keycode) { | ||
| 81 | case RADIALEX: | ||
| 82 | if (record->event.pressed) { | ||
| 83 | SEND_STRING("Radialex"); | ||
| 84 | rgblight_toggle(); | ||
| 85 | } | ||
| 86 | return false; | ||
| 87 | } | ||
| 88 | return true; | ||
| 89 | } | ||
diff --git a/keyboards/takashicompany/radialex/keymaps/via/rules.mk b/keyboards/takashicompany/radialex/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/takashicompany/radialex/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/takashicompany/radialex/radialex.c b/keyboards/takashicompany/radialex/radialex.c new file mode 100644 index 000000000..914610697 --- /dev/null +++ b/keyboards/takashicompany/radialex/radialex.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 "radialex.h" | ||
diff --git a/keyboards/takashicompany/radialex/radialex.h b/keyboards/takashicompany/radialex/radialex.h new file mode 100644 index 000000000..8ad571220 --- /dev/null +++ b/keyboards/takashicompany/radialex/radialex.h | |||
| @@ -0,0 +1,42 @@ | |||
| 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 | k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, \ | ||
| 31 | k41, k11, k12, k13, k14, k15, k45, k16, k17, k18, k19, k20, k43, \ | ||
| 32 | k42, k21, k22, k23, k24, k25, k26, k27, k28, k29, k30, k44, \ | ||
| 33 | k31, k32, k33, k34, k35, k36, k37, k38, k39, k40 \ | ||
| 34 | ) { \ | ||
| 35 | { k01, k02, k03, k04, k05, k06, k07 }, \ | ||
| 36 | { k08, k09, k10, k11, k12, k13, k14 }, \ | ||
| 37 | { k15, k16, k17, k18, k19, k20, k21 }, \ | ||
| 38 | { k22, k23, k24, k25, k26, k27, k28 }, \ | ||
| 39 | { k29, k30, k31, k32, k33, k34, k35 }, \ | ||
| 40 | { k36, k37, k38, k39, k40, k41, k42 }, \ | ||
| 41 | { k43, k44, k45, KC_NO, KC_NO, KC_NO, KC_NO } \ | ||
| 42 | } | ||
diff --git a/keyboards/takashicompany/radialex/readme.md b/keyboards/takashicompany/radialex/readme.md new file mode 100644 index 000000000..1468e7b0b --- /dev/null +++ b/keyboards/takashicompany/radialex/readme.md | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | # Radialex | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | 40% larger keyboard. | ||
| 6 | The radial key layout allows you to place your hand in a natural position and move your fingers the shortest distance to type. | ||
| 7 | Your iconic keys and keycaps can be placed in the center of the keyboard. | ||
| 8 | It is possible to make it shine with LED backlighting. | ||
| 9 | The keyswitches can also be replaced with MX sockets. | ||
| 10 | |||
| 11 | * Keyboard Maintainer: [takashicompany](https://github.com/yourusername) | ||
| 12 | * Hardware Supported: PCB, Pro Micro | ||
| 13 | * Hardware Availability: https://github.com/takashicompany/radialex | ||
| 14 | |||
| 15 | Make example for this keyboard (after setting up your build environment): | ||
| 16 | |||
| 17 | make takashicompany/radialex:default | ||
| 18 | |||
| 19 | Flashing example for this keyboard: | ||
| 20 | |||
| 21 | make takashicompany/radialex:default:flash | ||
| 22 | |||
| 23 | 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). | ||
| 24 | |||
| 25 | ## Bootloader | ||
| 26 | |||
| 27 | Enter the bootloader in 3 ways: | ||
| 28 | |||
| 29 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard | ||
| 30 | * **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead | ||
| 31 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
diff --git a/keyboards/takashicompany/radialex/rules.mk b/keyboards/takashicompany/radialex/rules.mk new file mode 100644 index 000000000..d990e8cae --- /dev/null +++ b/keyboards/takashicompany/radialex/rules.mk | |||
| @@ -0,0 +1,18 @@ | |||
| 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 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
