aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kmini/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kmini/config.h')
-rwxr-xr-xkeyboards/kmini/config.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/keyboards/kmini/config.h b/keyboards/kmini/config.h
new file mode 100755
index 000000000..567a75442
--- /dev/null
+++ b/keyboards/kmini/config.h
@@ -0,0 +1,58 @@
1/* Copyright 2018 Maarten Dekkers <maartenwut@gmail.com>
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#ifndef CONFIG_H
17#define CONFIG_H
18
19#include "config_common.h"
20
21/* USB Device descriptor parameter */
22#define VENDOR_ID 0xFEED
23#define PRODUCT_ID 0x6050
24#define DEVICE_VER 0x0104
25#define MANUFACTURER Revo
26#define PRODUCT KMAC Kmini
27#define DESCRIPTION QMK keyboard firmware for Revo KMAC Mini
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 17
32
33/*
34 * Keyboard Matrix Assignments
35 * The KMAC uses a demultiplexer for some of the cols.
36 * See matrix.c for more details.
37*/
38#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
39#define MATRIX_COL_PINS { }
40#define UNUSED_PINS
41
42/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
43#define DIODE_DIRECTION CUSTOM_MATRIX
44
45/* number of backlight levels */
46#define BACKLIGHT_LEVELS 3
47// #define BACKLIGHT_PIN B7
48// #define BACKLIGHT_BREATHING
49
50/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
51#define DEBOUNCING_DELAY 5
52
53/* key combination for magic key command */
54#define IS_COMMAND() ( \
55 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
56)
57
58#endif