aboutsummaryrefslogtreecommitdiff
path: root/keyboards/coarse/cordillera/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/coarse/cordillera/config.h')
-rw-r--r--keyboards/coarse/cordillera/config.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/keyboards/coarse/cordillera/config.h b/keyboards/coarse/cordillera/config.h
new file mode 100644
index 000000000..1d8c9e294
--- /dev/null
+++ b/keyboards/coarse/cordillera/config.h
@@ -0,0 +1,75 @@
1/*
2Copyright 2020 coarse <[email protected]>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20/* USB Device descriptor parameter */
21#define VENDOR_ID 0x434B // CK for Coarse Keys
22#define PRODUCT_ID 0x1401 // '20 - 001
23#define DEVICE_VER 0x0001 // Revision prototype
24#define MANUFACTURER Coarse
25#define PRODUCT Cordillera
26
27/* key matrix size */
28#define MATRIX_ROWS 5
29#define MATRIX_COLS 16
30
31#define MATRIX_ROW_PINS { A13, B9, F1, A10, A9 }
32#define MATRIX_COL_PINS { B15, B14, B13, B12, B11, B10, B2, B1, B8, B7, B6, B5, B4, B3, A15, A14 }
33#define DIODE_DIRECTION COL2ROW
34
35#define LED_NUM_LOCK_PIN B0
36#define LED_CAPS_LOCK_PIN A1
37#define LED_SCROLL_LOCK_PIN A0
38#define LED_PIN_ON_STATE 0
39
40#define BACKLIGHT_PIN A8
41#define BACKLIGHT_PWM_DRIVER PWMD1
42#define BACKLIGHT_PWM_CHANNEL 1
43#define BACKLIGHT_PAL_MODE 1
44#define BACKLIGHT_LEVELS 6
45#define BACKLIGHT_BREATHING
46#define BREATHING_PERIOD 6
47
48/* define if matrix has ghost */
49//#define MATRIX_HAS_GHOST
50
51/* Set 0 if debouncing isn't needed */
52#define DEBOUNCE 5
53
54/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55#define LOCKING_SUPPORT_ENABLE
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58
59/*
60 * Feature disable options
61 * These options are also useful to firmware size reduction.
62 */
63
64/* disable debug print */
65//#define NO_DEBUG
66
67/* disable print */
68//#define NO_PRINT
69
70/* disable action features */
71//#define NO_ACTION_LAYER
72//#define NO_ACTION_TAPPING
73//#define NO_ACTION_ONESHOT
74//#define NO_ACTION_MACRO
75//#define NO_ACTION_FUNCTION