aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/2x5keypad/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/2x5keypad/config.h')
-rw-r--r--keyboards/handwired/2x5keypad/config.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/keyboards/handwired/2x5keypad/config.h b/keyboards/handwired/2x5keypad/config.h
new file mode 100644
index 000000000..6d09b5ed0
--- /dev/null
+++ b/keyboards/handwired/2x5keypad/config.h
@@ -0,0 +1,56 @@
1#pragma once
2
3#include "config_common.h"
4
5/* USB Device descriptor parameter */
6#define VENDOR_ID 0xFEED
7#define PRODUCT_ID 0x2020
8#define DEVICE_VER 0x0001
9#define MANUFACTURER Jonathan Cameron
10#define PRODUCT 2x5keypad
11#define DESCRIPTION 2x5 Keypad
12
13/* key matrix size */
14#define MATRIX_ROWS 2
15#define MATRIX_COLS 5
16
17/* key matrix pins */
18#define MATRIX_ROW_PINS { B3, B2 }
19#define MATRIX_COL_PINS { D4, C6, D7, E6, B4 }
20#define UNUSED_PINS
21
22/* COL2ROW or ROW2COL */
23#define DIODE_DIRECTION COL2ROW
24
25/* number of backlight levels */
26
27#ifdef BACKLIGHT_PIN
28#define BACKLIGHT_LEVELS 0
29#endif
30
31/* Set 0 if debouncing isn't needed */
32#define DEBOUNCE 5
33
34/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
35#define LOCKING_SUPPORT_ENABLE
36
37/* Locking resynchronize hack */
38#define LOCKING_RESYNC_ENABLE
39
40/* key combination for command */
41/* DISABLED
42#define IS_COMMAND() ( \
43 get_mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
44)
45*/
46
47/* prevent stuck modifiers */
48
49
50#ifdef RGB_DI_PIN
51#define RGBLIGHT_ANIMATIONS
52#define RGBLED_NUM 0
53#define RGBLIGHT_HUE_STEP 8
54#define RGBLIGHT_SAT_STEP 8
55#define RGBLIGHT_VAL_STEP 8
56#endif