aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xelus/ninjin/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xelus/ninjin/config.h')
-rw-r--r--keyboards/xelus/ninjin/config.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/keyboards/xelus/ninjin/config.h b/keyboards/xelus/ninjin/config.h
new file mode 100644
index 000000000..cbaca37b5
--- /dev/null
+++ b/keyboards/xelus/ninjin/config.h
@@ -0,0 +1,60 @@
1/* Copyright 2021 Harrison Chan (Xelus)
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/* USB Device descriptor parameter */
20#define VENDOR_ID 0x5845 // XE
21#define PRODUCT_ID 0x4E4A // NJ
22#define DEVICE_VER 0x0001
23#define MANUFACTURER Xelus
24#define PRODUCT Ninjin
25#define DESCRIPTION Ninjin
26
27/* key matrix size */
28#define MATRIX_ROWS 6
29#define MATRIX_COLS 17
30
31#define MATRIX_COL_PINS { A9, A8, B15, B14, B13, B12, B11, B10, B2, B1, B0, A7, A6, A5, A4, B6, B5 }
32#define MATRIX_ROW_PINS { B4, B3, A15, A3, B9, B8 }
33#define DIODE_DIRECTION COL2ROW
34
35/* RGB Underglow */
36#define RGB_DI_PIN A10
37#define RGBLED_NUM 26
38#define RGBLIGHT_ANIMATIONS
39#define RGBLIGHT_LIMIT_VAL 200
40
41// PWM RGB Underglow Defines
42#define WS2812_PWM_DRIVER PWMD1
43#define WS2812_PWM_CHANNEL 3
44#define WS2812_PWM_PAL_MODE 2
45#define WS2812_DMA_STREAM STM32_DMA1_STREAM5
46#define WS2812_DMA_CHANNEL 3
47#define WS2812_EXTERNAL_PULLUP
48
49/* Set 0 if debouncing isn't needed */
50#define DEBOUNCE 5
51
52/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
53#define LOCKING_SUPPORT_ENABLE
54
55/* Locking resynchronize hack */
56#define LOCKING_RESYNC_ENABLE
57
58#define LED_CAPS_LOCK_PIN A2
59#define LED_SCROLL_LOCK_PIN A13
60#define LED_PIN_ON_STATE 1 \ No newline at end of file