aboutsummaryrefslogtreecommitdiff
path: root/keyboards/neson_design/n6/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/neson_design/n6/config.h')
-rw-r--r--keyboards/neson_design/n6/config.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/keyboards/neson_design/n6/config.h b/keyboards/neson_design/n6/config.h
new file mode 100644
index 000000000..d3b49becb
--- /dev/null
+++ b/keyboards/neson_design/n6/config.h
@@ -0,0 +1,67 @@
1/**
2 * config.h
3 *
4 Copyright 2021 astro
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19#pragma once
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0x4E65 //'Ne'
25#define PRODUCT_ID 0x4E36 //'N6'
26#define DEVICE_VER 0x0001
27#define MANUFACTURER Neson Design
28#define PRODUCT N6 Keyboard
29
30/* key matrix size */
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 15
33#define MATRIX_ROW_PINS { F0, B1, F6, F4, F1}
34#define MATRIX_COL_PINS { F7, B0, E6, C7, C6, B6, B5, B4, D7, D6, D4, D5, B2, D3, D2 }
35#define UNUSED_PINS
36#define DIODE_DIRECTION COL2ROW
37
38/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
39#define DEBOUNCE 5
40
41/*
42 * Feature disable options
43 * These options are also useful to firmware size reduction.
44 */
45
46/* disable debug print */
47//#define NO_DEBUG
48
49/* disable print */
50//#define NO_PRINT
51
52
53//rgb light setting
54//#define RGBLIGHT_LIMIT_VAL 128
55#define RGBLED_NUM 33
56#define RGB_DI_PIN B3
57#define RGBLIGHT_ANIMATIONS
58#define RGBLIGHT_HUE_STEP 8
59#define RGBLIGHT_SAT_STEP 8
60#define RGBLIGHT_VAL_STEP 8
61
62#define DRIVER_1_LED_TOTAL 32
63#define DRIVER_ADDR_1 0b1110100
64#define DRIVER_COUNT 1
65#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL)
66
67#define CAPS_PIN F5