diff options
Diffstat (limited to 'keyboards/pistachio/rev1/config.h')
| -rw-r--r-- | keyboards/pistachio/rev1/config.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/keyboards/pistachio/rev1/config.h b/keyboards/pistachio/rev1/config.h new file mode 100644 index 000000000..24f121ef1 --- /dev/null +++ b/keyboards/pistachio/rev1/config.h | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 rate | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along 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 { D4, C6, D7, E6, B4, B5 } | ||
| 31 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B6, D3} | ||
| 32 | #define UNUSED_PINS | ||
| 33 | |||
| 34 | #define USE_I2C | ||
| 35 | |||
| 36 | /* COL2ROW, ROW2COL */ | ||
| 37 | #define DIODE_DIRECTION COL2ROW | ||
| 38 | |||
| 39 | /* ws2812 RGB LED */ | ||
| 40 | #define RGB_DI_PIN D2 | ||
| 41 | #define RGBLIGHT_SPLIT | ||
| 42 | #define RGBLED_SPLIT { 1, 1 } | ||
| 43 | #define RGBLED_NUM 2 | ||
| 44 | #define RGBLIGHT_LAYERS | ||
| 45 | #define RGBLIGHT_HUE_STEP 10 | ||
| 46 | #define RGBLIGHT_SAT_STEP 17 | ||
| 47 | |||
| 48 | #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) | ||
| 49 | #define USB_MAX_POWER_CONSUMPTION 400 | ||
| 50 | #else | ||
| 51 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
| 52 | #endif | ||
| 53 | |||
| 54 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 55 | #define DEBOUNCE 5 | ||
| 56 | |||
| 57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 58 | #define LOCKING_SUPPORT_ENABLE | ||
| 59 | /* Locking resynchronize hack */ | ||
| 60 | #define LOCKING_RESYNC_ENABLE | ||
| 61 | |||
| 62 | /* nKey Rollover */ | ||
| 63 | #define FORCE_NKRO | ||
| 64 | |||
| 65 | /* disable these deprecated features by default */ | ||
| 66 | #define NO_ACTION_MACRO | ||
| 67 | #define NO_ACTION_FUNCTION | ||
