aboutsummaryrefslogtreecommitdiff
path: root/keyboards/capsunlocked/cu7/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/capsunlocked/cu7/config.h')
-rw-r--r--keyboards/capsunlocked/cu7/config.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/keyboards/capsunlocked/cu7/config.h b/keyboards/capsunlocked/cu7/config.h
new file mode 100644
index 000000000..cc22be0f0
--- /dev/null
+++ b/keyboards/capsunlocked/cu7/config.h
@@ -0,0 +1,72 @@
1/*
2Copyright 2021 CapsUnlocked
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#pragma once
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0x4355
23#define PRODUCT_ID 0x0007
24#define DEVICE_VER 0x0001
25#define MANUFACTURER CapsUnlocked
26#define PRODUCT CU7
27
28/* key matrix size */
29#define MATRIX_ROWS 3
30#define MATRIX_COLS 3
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 ENCODER_RESOLUTION 2
44
45#define ENCODERS_PAD_A { D6 }
46#define ENCODERS_PAD_B { D4 }
47
48#define MATRIX_ROW_PINS { D7, F0, F6 }
49#define MATRIX_COL_PINS { F5, F7, F4 }
50#define UNUSED_PINS
51
52/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
53#define DIODE_DIRECTION COL2ROW
54
55/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
56#define DEBOUNCE 5
57
58/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
59#define LOCKING_SUPPORT_ENABLE
60/* Locking resynchronize hack */
61#define LOCKING_RESYNC_ENABLE
62
63#define RGB_DI_PIN F1
64#ifdef RGB_DI_PIN
65#define RGBLIGHT_ANIMATIONS
66// #define RGBLIGHT_EFFECT_BREATHING
67#define RGBLED_NUM 6
68#define RGBLIGHT_HUE_STEP 10
69#define RGBLIGHT_SAT_STEP 17
70#define RGBLIGHT_VAL_STEP 17
71#define RGBLIGHT_LIMIT_VAL 50
72#endif