[Keyboard] Add 2key2crawl (#6727)
[jackhill/qmk/firmware.git] / keyboards / 2key2crawl / config.h
1 #pragma once
2
3 #include "config_common.h"
4
5 /* USB Device descriptor parameter */
6 #define VENDOR_ID 0xFEED
7 #define PRODUCT_ID 0x6090
8 #define DEVICE_VER 0x0002
9 #define MANUFACTURER WoodKeys.click
10 #define PRODUCT 2Key2Crawl
11 #define DESCRIPTION ATX Keycrawl 2018
12
13 /* key matrix size */
14 #define MATRIX_ROWS 2
15 #define MATRIX_COLS 7
16
17 /* key matrix pins */
18 #define MATRIX_ROW_PINS { C4, C5 }
19 #define MATRIX_COL_PINS { B3, B4, B5, B6, B7, C7, B2 }
20 #define UNUSED_PINS
21
22
23 #define ENCODERS_PAD_A { D0 }
24 #define ENCODERS_PAD_B { D1 }
25 #define ENCODER_RESOLUTION 1
26
27 /* COL2ROW or ROW2COL */
28 #define DIODE_DIRECTION COL2ROW
29
30 /* Set 0 if debouncing isn't needed */
31 #define DEBOUNCE 5
32
33 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
34 #define LOCKING_SUPPORT_ENABLE
35
36 /* Locking resynchronize hack */
37 #define LOCKING_RESYNC_ENABLE
38
39
40 #ifdef RGBLIGHT_ENABLE
41 #define RGB_DI_PIN C6
42 #define RGBLIGHT_ANIMATIONS
43 #define RGBLED_NUM 3
44 #endif