aboutsummaryrefslogtreecommitdiff
path: root/keyboards/pistachio/rev2/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/pistachio/rev2/config.h')
-rw-r--r--keyboards/pistachio/rev2/config.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/keyboards/pistachio/rev2/config.h b/keyboards/pistachio/rev2/config.h
new file mode 100644
index 000000000..d0de29854
--- /dev/null
+++ b/keyboards/pistachio/rev2/config.h
@@ -0,0 +1,71 @@
1/*
2Copyright 2020 rate
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/*
21 * Keyboard Matrix Assignments
22 *
23 * Change this to how you wired your keyboard
24 * COLS: AVR pins used for columns, left to right
25 * ROWS: AVR pins used for rows, top to bottom
26 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
27 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
28 *
29 */
30#define MATRIX_ROW_PINS { B5, B4, E6, D7, C6, D4 }
31#define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4, D3}
32#define UNUSED_PINS
33
34#define USE_I2C
35
36/* COL2ROW, ROW2COL */
37#define DIODE_DIRECTION COL2ROW
38
39/* Split hand configration */
40#define SPLIT_HAND_MATRIX_GRID D4,D3
41
42/* ws2812 RGB LED */
43#define RGB_DI_PIN D2
44#define RGBLIGHT_SPLIT
45#define RGBLED_SPLIT { 38, 46 }
46#define RGBLED_NUM 84
47#define RGBLIGHT_LIMIT_VAL 195
48#define RGBLIGHT_LAYERS
49#define RGBLIGHT_HUE_STEP 10
50#define RGBLIGHT_SAT_STEP 17
51
52#if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
53 #define USB_MAX_POWER_CONSUMPTION 400
54#else
55 #define USB_MAX_POWER_CONSUMPTION 100
56#endif
57
58/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
59#define DEBOUNCE 5
60
61/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
62#define LOCKING_SUPPORT_ENABLE
63/* Locking resynchronize hack */
64#define LOCKING_RESYNC_ENABLE
65
66/* nKey Rollover */
67#define FORCE_NKRO
68
69/* disable these deprecated features by default */
70#define NO_ACTION_MACRO
71#define NO_ACTION_FUNCTION