]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/1up60rgb/config.h
bfdf354af7da295c57ac9ca73d757820125e331e
[qmk_firmware.git] / keyboards / 1up60rgb / config.h
1 #ifndef CONFIG_H
2 #define CONFIG_H
3
4 #include "config_common.h"
5
6 /* USB Device descriptor parameter */
7 #define VENDOR_ID       0xFEED
8 #define PRODUCT_ID      0x6060
9 #define DEVICE_VER      0x0001
10 #define MANUFACTURER    1upkeyboards
11 #define PRODUCT         1UP RGB Underglow PCB
12 #define DESCRIPTION     60% keyboard with RGB underglow
13
14 /* key matrix size */
15 #define MATRIX_ROWS 5
16 #define MATRIX_COLS 15
17
18 /* key matrix pins */
19 #define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
20 #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B7, D4, B1, B0, B5, B4, D7, D6, B3, F4 }
21 #define UNUSED_PINS
22
23 /* COL2ROW or ROW2COL */
24 #define DIODE_DIRECTION COL2ROW
25
26 /* number of backlight levels */
27 #define BACKLIGHT_PIN B6
28 #ifdef BACKLIGHT_PIN
29 #define BACKLIGHT_LEVELS 5
30 #endif
31
32 /* Set 0 if debouncing isn't needed */
33 #define DEBOUNCING_DELAY 5
34
35 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
36 #define LOCKING_SUPPORT_ENABLE
37
38 /* Locking resynchronize hack */
39 #define LOCKING_RESYNC_ENABLE
40
41 /* key combination for command */
42 #define IS_COMMAND() ( \
43     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
44 )
45
46 /* prevent stuck modifiers */
47 #define PREVENT_STUCK_MODIFIERS
48
49 #define RGB_DI_PIN E2
50 #ifdef RGB_DI_PIN
51 #define RGBLIGHT_ANIMATIONS
52 #define RGBLED_NUM 16
53 #define RGBLIGHT_HUE_STEP 8
54 #define RGBLIGHT_SAT_STEP 8
55 #define RGBLIGHT_VAL_STEP 8
56 #endif
57
58 #endif