diff options
Diffstat (limited to 'keyboards/pearlboards/pearl/config.h')
-rw-r--r-- | keyboards/pearlboards/pearl/config.h | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/keyboards/pearlboards/pearl/config.h b/keyboards/pearlboards/pearl/config.h new file mode 100644 index 000000000..002c2a5f5 --- /dev/null +++ b/keyboards/pearlboards/pearl/config.h | |||
@@ -0,0 +1,94 @@ | |||
1 | /* | ||
2 | Copyright 2021 Koobaczech | ||
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 0x6963 | ||
24 | #define PRODUCT_ID 0x6965 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Koobaczech | ||
27 | #define PRODUCT Pearl | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 4 | ||
31 | #define MATRIX_COLS 13 | ||
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 { D3, F7, F0, E6 } | ||
44 | #define MATRIX_COL_PINS { D2, F1, F4, F5, F6, C7, B6, B5, B4, D7, D6, D4, D5 } | ||
45 | |||
46 | /* COL2ROW, ROW2COL*/ | ||
47 | #define DIODE_DIRECTION COL2ROW | ||
48 | |||
49 | /* Audio Function */ | ||
50 | #define AUDIO_CLICKY | ||
51 | #define AUDIO_PIN C6 | ||
52 | |||
53 | /* Haptic feedback */ | ||
54 | #define FB_ERM_LRA 0 | ||
55 | #define FB_BRAKEFACTOR 3 // For 1x:0, 2x:1, 3x:2, 4x:3, 6x:4, 8x:5, 16x:6, Disable Braking:7 | ||
56 | #define FB_LOOPGAIN 1 // For Low:0, Medium:1, High:2, Very High:3 | ||
57 | /* Motor settings */ | ||
58 | #define RATED_VOLTAGE 3 | ||
59 | #define V_PEAK 5 | ||
60 | |||
61 | /*== all animations enabled ==*/ | ||
62 | /* If RGBLIGHT_SLEEP defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
63 | #define RGB_DI_PIN B3 | ||
64 | #ifdef RGB_DI_PIN | ||
65 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
66 | #define RGBLIGHT_EFFECT_BREATHING | ||
67 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
68 | #define RGBLIGHT_EFFECT_KNIGHT | ||
69 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
70 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
71 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
72 | #define RGBLIGHT_EFFECT_SNAKE | ||
73 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
74 | #define RGBLIGHT_EFFECT_TWINKLE | ||
75 | # define RGBLED_NUM 10 | ||
76 | # define RGBLIGHT_HUE_STEP 8 | ||
77 | # define RGBLIGHT_SAT_STEP 8 | ||
78 | # define RGBLIGHT_VAL_STEP 8 | ||
79 | # define RGBLIGHT_SLEEP | ||
80 | #endif | ||
81 | |||
82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
83 | #define DEBOUNCE 4 | ||
84 | |||
85 | /* Indicator Led's*/ | ||
86 | #define LED_CAPS_LOCK_PIN B0 | ||
87 | #define LED_NUM_LOCK_PIN B1 | ||
88 | #define LED_SCROLL_LOCK_PIN B2 | ||
89 | #define LED_PIN_ON_STATE 0 | ||
90 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
91 | #define LOCKING_SUPPORT_ENABLE | ||
92 | |||
93 | /* Locking resynchronize hack */ | ||
94 | #define LOCKING_RESYNC_ENABLE | ||