diff options
Diffstat (limited to 'keyboards/jisplit89/rev1/config.h')
| -rw-r--r-- | keyboards/jisplit89/rev1/config.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/keyboards/jisplit89/rev1/config.h b/keyboards/jisplit89/rev1/config.h new file mode 100644 index 000000000..a745ec834 --- /dev/null +++ b/keyboards/jisplit89/rev1/config.h | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Salicylic_acid3 | ||
| 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 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0xFEED | ||
| 22 | #define PRODUCT_ID 0x3060 | ||
| 23 | #define DEVICE_VER 0x06ae | ||
| 24 | #define MANUFACTURER Salicylic_Acid | ||
| 25 | #define PRODUCT jisplit89 | ||
| 26 | #define DESCRIPTION A custom keyboard | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 14 | ||
| 30 | #define MATRIX_COLS 8 | ||
| 31 | |||
| 32 | // wiring of each half | ||
| 33 | #define MATRIX_ROW_PINS { D1, D0, D4, C6, D7, E6, B4 } | ||
| 34 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2, B5 } | ||
| 35 | |||
| 36 | #define DIODE_DIRECTION COL2ROW | ||
| 37 | |||
| 38 | /* Set 0 if debouncing isn't needed */ | ||
| 39 | #define DEBOUNCE 5 | ||
| 40 | |||
| 41 | /* serial.c configuration for split keyboard */ | ||
| 42 | #define SOFT_SERIAL_PIN D2 | ||
| 43 | #define SPLIT_HAND_PIN B6 | ||
| 44 | |||
| 45 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 46 | #define LOCKING_SUPPORT_ENABLE | ||
| 47 | /* Locking resynchronize hack */ | ||
| 48 | #define LOCKING_RESYNC_ENABLE | ||
| 49 | |||
| 50 | /* ws2812 RGB LED */ | ||
| 51 | #define RGB_DI_PIN D3 | ||
| 52 | |||
| 53 | #ifndef RGBLED_NUM | ||
| 54 | #define RGBLED_NUM 31 | ||
| 55 | #define RGBLIGHT_SPLIT | ||
| 56 | #define RGBLED_SPLIT { 11, 20 } | ||
| 57 | #endif | ||
| 58 | |||
| 59 | #define RGBLIGHT_ANIMATIONS | ||
| 60 | |||
| 61 | #ifndef IOS_DEVICE_ENABLE | ||
| 62 | #define RGBLIGHT_LIMIT_VAL 180 | ||
| 63 | #define RGBLIGHT_VAL_STEP 17 | ||
| 64 | #else | ||
| 65 | #define RGBLIGHT_LIMIT_VAL 50 | ||
| 66 | #define RGBLIGHT_VAL_STEP 4 | ||
| 67 | #endif | ||
| 68 | #define RGBLIGHT_HUE_STEP 10 | ||
| 69 | #define RGBLIGHT_SAT_STEP 17 | ||
| 70 | |||
| 71 | #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) | ||
| 72 | // USB_MAX_POWER_CONSUMPTION value for naked48 keyboard | ||
| 73 | // 120 RGBoff, OLEDoff | ||
| 74 | // 120 OLED | ||
| 75 | // 330 RGB 6 | ||
| 76 | // 300 RGB 32 | ||
| 77 | // 310 OLED & RGB 32 | ||
| 78 | #define USB_MAX_POWER_CONSUMPTION 400 | ||
| 79 | #else | ||
| 80 | // fix iPhone and iPad power adapter issue | ||
| 81 | // iOS device need lessthan 100 | ||
| 82 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
| 83 | #endif | ||
