]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/helix/rev1/config.h
ScrabblePad Support (#2760)
[qmk_firmware.git] / keyboards / helix / rev1 / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2015 Jack Humbert
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef REV1_CONFIG_H
20 #define REV1_CONFIG_H
21
22 #include "../config.h"
23
24 /* USB Device descriptor parameter */
25 #define VENDOR_ID       0xFEED
26 #define PRODUCT_ID      0x3060
27 #define DEVICE_VER      0x0001
28 #define MANUFACTURER    Yushakobo
29 #define PRODUCT         Helix Alpha
30 #define DESCRIPTION     A split keyboard for the cheap makers
31
32 #define HELIX_ROWS 5
33
34 /* key matrix size */
35 // Rows are doubled-up
36 #if HELIX_ROWS == 3
37   #define MATRIX_ROWS 6
38   #define MATRIX_COLS 6
39   #define MATRIX_ROW_PINS { D7, E6, B4 }
40 #elif HELIX_ROWS == 4
41   #define MATRIX_ROWS 8
42   #define MATRIX_COLS 6
43   #define MATRIX_ROW_PINS { D7, E6, B4, B5 }
44 #elif HELIX_ROWS == 5
45   #define MATRIX_ROWS 10
46   #define MATRIX_COLS 6
47   #define MATRIX_ROW_PINS { D7, E6, B4, B5, D4 }
48 #else
49   #error "expected HELIX_ROWS 3 or 4 or 5"
50 #endif
51
52 // wiring of each half
53 #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 }
54 // #define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6 } //uncomment this line and comment line above if you need to reverse left-to-right key order
55
56 #define CATERINA_BOOTLOADER
57
58 /* define if matrix has ghost */
59 //#define MATRIX_HAS_GHOST
60
61 /* number of backlight levels */
62 // #define BACKLIGHT_LEVELS 3
63
64 /* Set 0 if debouncing isn't needed */
65 #define DEBOUNCING_DELAY 5
66
67 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
68 #define LOCKING_SUPPORT_ENABLE
69 /* Locking resynchronize hack */
70 #define LOCKING_RESYNC_ENABLE
71
72 /* key combination for command */
73 #define IS_COMMAND() ( \
74     keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
75 )
76
77 /* ws2812 RGB LED */
78 #define RGB_DI_PIN D3
79 #define RGBLIGHT_TIMER
80 #define RGBLED_NUM 12    // Number of LEDs
81 #define ws2812_PORTREG  PORTD
82 #define ws2812_DDRREG   DDRD
83
84 /*
85  * Feature disable options
86  *  These options are also useful to firmware size reduction.
87  */
88
89 /* disable debug print */
90 // #define NO_DEBUG
91
92 /* disable print */
93 // #define NO_PRINT
94
95 /* disable action features */
96 //#define NO_ACTION_LAYER
97 //#define NO_ACTION_TAPPING
98 //#define NO_ACTION_ONESHOT
99 //#define NO_ACTION_MACRO
100 //#define NO_ACTION_FUNCTION
101
102
103 #endif