aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ymdk/ymd09/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ymdk/ymd09/config.h')
-rw-r--r--keyboards/ymdk/ymd09/config.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/keyboards/ymdk/ymd09/config.h b/keyboards/ymdk/ymd09/config.h
new file mode 100644
index 000000000..b7e5539df
--- /dev/null
+++ b/keyboards/ymdk/ymd09/config.h
@@ -0,0 +1,66 @@
1/*
2Copyright 2020 Patrick Fruh
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
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0x0909
25#define DEVICE_VER 0x0001
26#define MANUFACTURER YMDK
27#define PRODUCT YMD09
28#define DESCRIPTION 9-Key Macropad
29
30/* key matrix size */
31#define MATRIX_ROWS 3
32#define MATRIX_COLS 3
33
34/* Keyboard Matrix Assignments */
35#define MATRIX_ROW_PINS { F5, F4, F1 }
36#define MATRIX_COL_PINS { D6, D2, D1 }
37#define UNUSED_PINS
38
39/* COL2ROW, ROW2COL*/
40#define DIODE_DIRECTION ROW2COL
41
42#define RGB_DI_PIN E2
43#ifdef RGB_DI_PIN
44 #define RGBLED_NUM 9
45 #define RGBLIGHT_HUE_STEP 8
46 #define RGBLIGHT_SAT_STEP 8
47 #define RGBLIGHT_VAL_STEP 8
48 #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
49 #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
50 /*== all animations enable ==*/
51 #define RGBLIGHT_ANIMATIONS
52#endif
53
54/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
55#define DEBOUNCE 5
56
57/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
58#define LOCKING_SUPPORT_ENABLE
59/* Locking resynchronize hack */
60#define LOCKING_RESYNC_ENABLE
61
62/* disable these deprecated features by default */
63#ifndef LINK_TIME_OPTIMIZATION_ENABLE
64 #define NO_ACTION_MACRO
65 #define NO_ACTION_FUNCTION
66#endif