diff options
Diffstat (limited to 'keyboards/atxkb/1894/config.h')
-rw-r--r-- | keyboards/atxkb/1894/config.h | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/keyboards/atxkb/1894/config.h b/keyboards/atxkb/1894/config.h new file mode 100644 index 000000000..c59efe91a --- /dev/null +++ b/keyboards/atxkb/1894/config.h | |||
@@ -0,0 +1,115 @@ | |||
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 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 14 | ||
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 { B1, B2, B3, F0, F1 } | ||
44 | #define MATRIX_COL_PINS { F4, F7, F5, F6, C7, C6, B6, B5, B4, D7, D6, D4, D5, D3 } | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | #define BACKLIGHT_PIN B7 | ||
51 | #define BACKLIGHT_BREATHING | ||
52 | #define BACKLIGHT_LEVELS 5 | ||
53 | |||
54 | #define RGB_DI_PIN D2 | ||
55 | #ifdef RGB_DI_PIN | ||
56 | #define RGBLED_NUM 14 | ||
57 | #define RGBLIGHT_HUE_STEP 8 | ||
58 | #define RGBLIGHT_SAT_STEP 8 | ||
59 | #define RGBLIGHT_VAL_STEP 8 | ||
60 | // #define RGBLIGHT_LIMIT_VAL 200 /* The maximum brightness level */ | ||
61 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
62 | /*== all animations enable ==*/ | ||
63 | #define RGBLIGHT_ANIMATIONS | ||
64 | // /*== or choose animations ==*/ | ||
65 | // #define RGBLIGHT_EFFECT_BREATHING | ||
66 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
67 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
68 | // #define RGBLIGHT_EFFECT_SNAKE | ||
69 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
70 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
71 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
72 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
73 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
74 | // /*== customize breathing effect ==*/ | ||
75 | // /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
76 | // #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
77 | // /*==== use exp() and sin() ====*/ | ||
78 | // #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
79 | // #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
80 | #endif | ||
81 | |||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
83 | #define DEBOUNCE 5 | ||
84 | |||
85 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
86 | //#define MATRIX_HAS_GHOST | ||
87 | |||
88 | /* number of backlight levels */ | ||
89 | |||
90 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
91 | #define LOCKING_SUPPORT_ENABLE | ||
92 | /* Locking resynchronize hack */ | ||
93 | #define LOCKING_RESYNC_ENABLE | ||
94 | |||
95 | /* | ||
96 | * Feature disable options | ||
97 | * These options are also useful to firmware size reduction. | ||
98 | */ | ||
99 | |||
100 | /* disable debug print */ | ||
101 | //#define NO_DEBUG | ||
102 | |||
103 | /* disable print */ | ||
104 | //#define NO_PRINT | ||
105 | |||
106 | /* disable action features */ | ||
107 | //#define NO_ACTION_LAYER | ||
108 | //#define NO_ACTION_TAPPING | ||
109 | //#define NO_ACTION_ONESHOT | ||
110 | //#define NO_ACTION_MACRO | ||
111 | //#define NO_ACTION_FUNCTION | ||
112 | |||
113 | /* Bootmagic Lite key configuration */ | ||
114 | // #define BOOTMAGIC_LITE_ROW 0 | ||
115 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||