aboutsummaryrefslogtreecommitdiff
path: root/keyboards/tkc/portico/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/tkc/portico/config.h')
-rw-r--r--keyboards/tkc/portico/config.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/keyboards/tkc/portico/config.h b/keyboards/tkc/portico/config.h
new file mode 100644
index 000000000..4a7da833f
--- /dev/null
+++ b/keyboards/tkc/portico/config.h
@@ -0,0 +1,73 @@
1/*
2Copyright 2020 Terry Mathews
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#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x544B //TK
24#define PRODUCT_ID 0x0008
25#define DEVICE_VER 0x0001
26#define MANUFACTURER TKC
27#define PRODUCT Portico
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 15
32
33#define MATRIX_ROW_PINS { B6, C6, C7, F7, D2 }
34#define MATRIX_COL_PINS { D3, D5, D4, D6, D7, B4, B5, F6, F5, F4, F1, B0, B1, B2, B3 }
35
36/* COL2ROW, ROW2COL*/
37#define DIODE_DIRECTION COL2ROW
38
39/* disable these deprecated features by default */
40#define NO_ACTION_MACRO
41#define NO_ACTION_FUNCTION
42
43#ifdef RGB_MATRIX_ENABLE
44# define RGB_MATRIX_LED_PROCESS_LIMIT 4
45# define RGB_MATRIX_LED_FLUSH_LIMIT 26
46# define DEBOUNCE 3
47# define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
48# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
49# define RGB_MATRIX_KEYPRESSES
50# define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN
51# define DISABLE_RGB_MATRIX_BAND_SAT
52# define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT
53# define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT
54# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE
55# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE
56# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE
57# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS
58# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS
59# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS
60# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS
61# define DISABLE_RGB_MATRIX_SPLASH
62# define DISABLE_RGB_MATRIX_MULTISPLASH
63# define DISABLE_RGB_MATRIX_SOLID_SPLASH
64# define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH
65# define DISABLE_RGB_MATRIX_DIGITAL_RAIN
66# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
67# define DRIVER_ADDR_1 0x74
68# define DRIVER_ADDR_2 0x77
69# define DRIVER_COUNT 2
70# define DRIVER_1_LED_TOTAL 36
71# define DRIVER_2_LED_TOTAL 31
72# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
73#endif