diff options
Diffstat (limited to 'keyboards/orthocode/config.h')
-rw-r--r-- | keyboards/orthocode/config.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/keyboards/orthocode/config.h b/keyboards/orthocode/config.h new file mode 100644 index 000000000..823a48e36 --- /dev/null +++ b/keyboards/orthocode/config.h | |||
@@ -0,0 +1,93 @@ | |||
1 | /*Copyright 2020 Jrodna | ||
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 "config_common.h" | ||
20 | |||
21 | #define VENDOR_ID 0xFEED | ||
22 | #define PRODUCT_ID 0x0000 | ||
23 | #define DEVICE_VER 0x0001 | ||
24 | #define MANUFACTURER Jrodna | ||
25 | #define PRODUCT OrthoCode | ||
26 | |||
27 | |||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 5 | ||
30 | #define MATRIX_COLS 15 | ||
31 | |||
32 | /* | ||
33 | * Keyboard Matrix Assignments | ||
34 | * | ||
35 | * Change this to how you wired your keyboard | ||
36 | * COLS: AVR pins used for columns, left to right | ||
37 | * ROWS: AVR pins used for rows, top to bottom | ||
38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
40 | * | ||
41 | */ | ||
42 | |||
43 | #define MATRIX_ROW_PINS {B0, B1, B2, B3, B4} | ||
44 | #define MATRIX_COL_PINS {C4, C3, C2, C1, C0, D7, D6, A7, A4, A5, A6, A3, A2, A1, A0} | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
51 | |||
52 | #define ENCODERS_PAD_A { D1 } | ||
53 | #define ENCODERS_PAD_B { D0 } | ||
54 | #define ENCODER_RESOLUTION 1 | ||
55 | #define TAP_CODE_DELAY 10 | ||
56 | |||
57 | #define RGB_DI_PIN D5 | ||
58 | #ifdef RGB_DI_PIN | ||
59 | #define RGBLED_NUM 10 /*Change for the number of leds on the strip you attach*/ | ||
60 | #define RGBLIGHT_HUE_STEP 8 | ||
61 | #define RGBLIGHT_SAT_STEP 8 | ||
62 | #define RGBLIGHT_VAL_STEP 8 | ||
63 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
64 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
65 | /*== all animations enable ==*/ | ||
66 | // #define RGBLIGHT_ANIMATIONS | ||
67 | // /*== or choose animations ==*/ | ||
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 | #endif | ||
78 | |||
79 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
80 | // #define DEBOUNCE 5 | ||
81 | #define DEBOUNCE 0 | ||
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 | /* Bootmagic Lite key configuration */ | ||
92 | #define BOOTMAGIC_LITE_ROW 0 | ||
93 | #define BOOTMAGIC_LITE_COLUMN 0 | ||