aboutsummaryrefslogtreecommitdiff
path: root/keyboards/cu24/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/cu24/config.h')
-rw-r--r--keyboards/cu24/config.h112
1 files changed, 112 insertions, 0 deletions
diff --git a/keyboards/cu24/config.h b/keyboards/cu24/config.h
new file mode 100644
index 000000000..a2a4e727f
--- /dev/null
+++ b/keyboards/cu24/config.h
@@ -0,0 +1,112 @@
1/* Copyright 2018 Yiancar
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/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x0000
24#define DEVICE_VER 0x0001
25#define MANUFACTURER Yiancar/CapsUnlocked
26#define PRODUCT CU24
27
28/* key matrix size */
29#define MATRIX_ROWS 6
30#define MATRIX_COLS 4
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#define MATRIX_ROW_PINS { E6, F5, B4, B6, C6, C7 }
43#define MATRIX_COL_PINS { F0, F1, D0, D1 }
44#define UNUSED_PINS
45
46/* COL2ROW, ROW2COL*/
47#define DIODE_DIRECTION ROW2COL
48
49/* Backlight */
50#define BACKLIGHT_PIN B5
51#define BACKLIGHT_BREATHING
52#define BACKLIGHT_LEVELS 5
53
54/* RGB Glow */
55#define RGB_DI_PIN F4 // The pin the LED strip is connected to
56#define RGBLED_NUM 5 // Number of LEDs in your strip
57#define RGBLIGHT_ANIMATIONS
58
59/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
60#define DEBOUNCE 5
61
62/* define if matrix has ghost (lacks anti-ghosting diodes) */
63//#define MATRIX_HAS_GHOST
64
65/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
66#define LOCKING_SUPPORT_ENABLE
67/* Locking resynchronize hack */
68#define LOCKING_RESYNC_ENABLE
69
70/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
71 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
72 */
73// #define GRAVE_ESC_CTRL_OVERRIDE
74
75/*
76 * Force NKRO
77 *
78 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
79 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
80 * makefile for this to work.)
81 *
82 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
83 * until the next keyboard reset.
84 *
85 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
86 * fully operational during normal computer usage.
87 *
88 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
89 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
90 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
91 * power-up.
92 *
93 */
94//#define FORCE_NKRO
95
96/*
97 * Feature disable options
98 * These options are also useful to firmware size reduction.
99 */
100
101/* disable debug print */
102//#define NO_DEBUG
103
104/* disable print */
105//#define NO_PRINT
106
107/* disable action features */
108//#define NO_ACTION_LAYER
109//#define NO_ACTION_TAPPING
110//#define NO_ACTION_ONESHOT
111//#define NO_ACTION_MACRO
112//#define NO_ACTION_FUNCTION