diff options
Diffstat (limited to 'keyboards/atxkb/1894/config.h')
| -rw-r--r-- | keyboards/atxkb/1894/config.h | 169 |
1 files changed, 169 insertions, 0 deletions
diff --git a/keyboards/atxkb/1894/config.h b/keyboards/atxkb/1894/config.h new file mode 100644 index 000000000..93dd93a6a --- /dev/null +++ b/keyboards/atxkb/1894/config.h | |||
| @@ -0,0 +1,169 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Ryota Goto | ||
| 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 0x5458 // TX | ||
| 24 | #define PRODUCT_ID 0x0001 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER atxkb | ||
| 27 | #define PRODUCT 1894 | ||
| 28 | #define DESCRIPTION atxkb 1894 | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 5 | ||
| 32 | #define MATRIX_COLS 14 | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * Change this to how you wired your keyboard | ||
| 38 | * COLS: AVR pins used for columns, left to right | ||
| 39 | * ROWS: AVR pins used for rows, top to bottom | ||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | #define MATRIX_ROW_PINS { B1, B2, B3, F0, F1 } | ||
| 45 | #define MATRIX_COL_PINS { F4, F7, F5, F6, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3 } | ||
| 46 | #define UNUSED_PINS | ||
| 47 | |||
| 48 | /* COL2ROW, ROW2COL*/ | ||
| 49 | #define DIODE_DIRECTION COL2ROW | ||
| 50 | |||
| 51 | #define BACKLIGHT_PIN B7 | ||
| 52 | #define BACKLIGHT_BREATHING | ||
| 53 | #define BACKLIGHT_LEVELS 5 | ||
| 54 | |||
| 55 | #define RGB_DI_PIN D2 | ||
| 56 | #ifdef RGB_DI_PIN | ||
| 57 | #define RGBLED_NUM 14 | ||
| 58 | // #define RGBLIGHT_HUE_STEP 8 | ||
| 59 | // #define RGBLIGHT_SAT_STEP 8 | ||
| 60 | // #define RGBLIGHT_VAL_STEP 8 | ||
| 61 | // #define RGBLIGHT_LIMIT_VAL 200 /* The maximum brightness level */ | ||
| 62 | // #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 63 | /*== all animations enable ==*/ | ||
| 64 | // #define RGBLIGHT_ANIMATIONS | ||
| 65 | // /*== or choose animations ==*/ | ||
| 66 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 67 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 68 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 69 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 70 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 71 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 72 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 73 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 74 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 75 | // /*== customize breathing effect ==*/ | ||
| 76 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 77 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 78 | // /*==== use exp() and sin() ====*/ | ||
| 79 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 80 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 81 | #endif | ||
| 82 | |||
| 83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 84 | #define DEBOUNCE 5 | ||
| 85 | |||
| 86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 87 | //#define MATRIX_HAS_GHOST | ||
| 88 | |||
| 89 | /* number of backlight levels */ | ||
| 90 | |||
| 91 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 92 | #define LOCKING_SUPPORT_ENABLE | ||
| 93 | /* Locking resynchronize hack */ | ||
| 94 | #define LOCKING_RESYNC_ENABLE | ||
| 95 | |||
| 96 | /* | ||
| 97 | * Magic Key Options | ||
| 98 | * | ||
| 99 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 100 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 101 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 102 | * | ||
| 103 | * The options below allow the magic key functionality to be changed. This is | ||
| 104 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 105 | * | ||
| 106 | */ | ||
| 107 | |||
| 108 | /* key combination for magic key command */ | ||
| 109 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 110 | // #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT))) | ||
| 111 | |||
| 112 | /* control how magic key switches layers */ | ||
| 113 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 114 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 115 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 116 | |||
| 117 | /* override magic key keymap */ | ||
| 118 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 119 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 120 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 121 | //#define MAGIC_KEY_HELP H | ||
| 122 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 123 | //#define MAGIC_KEY_DEBUG D | ||
| 124 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 125 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 126 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 127 | //#define MAGIC_KEY_VERSION V | ||
| 128 | //#define MAGIC_KEY_STATUS S | ||
| 129 | //#define MAGIC_KEY_CONSOLE C | ||
| 130 | //#define MAGIC_KEY_LAYER0 0 | ||
| 131 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 132 | //#define MAGIC_KEY_LAYER1 1 | ||
| 133 | //#define MAGIC_KEY_LAYER2 2 | ||
| 134 | //#define MAGIC_KEY_LAYER3 3 | ||
| 135 | //#define MAGIC_KEY_LAYER4 4 | ||
| 136 | //#define MAGIC_KEY_LAYER5 5 | ||
| 137 | //#define MAGIC_KEY_LAYER6 6 | ||
| 138 | //#define MAGIC_KEY_LAYER7 7 | ||
| 139 | //#define MAGIC_KEY_LAYER8 8 | ||
| 140 | //#define MAGIC_KEY_LAYER9 9 | ||
| 141 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 142 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 143 | //#define MAGIC_KEY_LOCK CAPS | ||
| 144 | //#define MAGIC_KEY_EEPROM E | ||
| 145 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 146 | //#define MAGIC_KEY_NKRO N | ||
| 147 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 148 | |||
| 149 | /* | ||
| 150 | * Feature disable options | ||
| 151 | * These options are also useful to firmware size reduction. | ||
| 152 | */ | ||
| 153 | |||
| 154 | /* disable debug print */ | ||
| 155 | //#define NO_DEBUG | ||
| 156 | |||
| 157 | /* disable print */ | ||
| 158 | //#define NO_PRINT | ||
| 159 | |||
| 160 | /* disable action features */ | ||
| 161 | //#define NO_ACTION_LAYER | ||
| 162 | //#define NO_ACTION_TAPPING | ||
| 163 | //#define NO_ACTION_ONESHOT | ||
| 164 | //#define NO_ACTION_MACRO | ||
| 165 | //#define NO_ACTION_FUNCTION | ||
| 166 | |||
| 167 | /* Bootmagic Lite key configuration */ | ||
| 168 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 169 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
