diff options
Diffstat (limited to 'keyboards/lime/rev1/config.h')
| -rw-r--r-- | keyboards/lime/rev1/config.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/keyboards/lime/rev1/config.h b/keyboards/lime/rev1/config.h new file mode 100644 index 000000000..55c045dc6 --- /dev/null +++ b/keyboards/lime/rev1/config.h | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | /* Copyright 2021 HellSingCoder | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0x0666 | ||
| 21 | #define PRODUCT_ID 0x2784 | ||
| 22 | #define DEVICE_VER 0x0001 | ||
| 23 | #define MANUFACTURER HellSingCoder | ||
| 24 | #define PRODUCT Lime | ||
| 25 | |||
| 26 | /* key matrix size */ | ||
| 27 | // Rows are doubled-up | ||
| 28 | #define MATRIX_ROWS 12 | ||
| 29 | #define MATRIX_COLS 6 | ||
| 30 | |||
| 31 | // wiring of each half | ||
| 32 | #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 } | ||
| 33 | #define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 } | ||
| 34 | #define DIODE_DIRECTION COL2ROW | ||
| 35 | |||
| 36 | #define TAPPING_TERM 100 | ||
| 37 | #define DEBOUNCE 5 | ||
| 38 | |||
| 39 | /* encoder support */ | ||
| 40 | #ifdef ENCODER_ENABLE | ||
| 41 | # define ENCODERS_PAD_A { F5 } | ||
| 42 | # define ENCODERS_PAD_B { F4 } | ||
| 43 | # define ENCODERS_PAD_A_RIGHT { F4 } | ||
| 44 | # define ENCODERS_PAD_B_RIGHT { F5 } | ||
| 45 | # define ENCODER_RESOLUTION 2 | ||
| 46 | #endif | ||
| 47 | |||
| 48 | /* joystick support */ | ||
| 49 | #ifdef JOYSTICK_ENABLE | ||
| 50 | # define JOYSTICK_AXES_COUNT 2 | ||
| 51 | # define JOYSTICK_BUTTON_COUNT 1 | ||
| 52 | # define JOYSTICK_AXES_RESOLUTION 8 | ||
| 53 | #endif | ||
| 54 | |||
| 55 | #define TAP_CODE_DELAY 10 | ||
| 56 | |||
| 57 | /* communication between sides */ | ||
| 58 | #define USE_SERIAL | ||
| 59 | #define SOFT_SERIAL_PIN D2 | ||
| 60 | |||
| 61 | #define NO_ACTION_MACRO | ||
| 62 | #define NO_ACTION_FUNCTION | ||
| 63 | #define SPLIT_USB_DETECT | ||
| 64 | |||
| 65 | #ifdef WPM_ENABLE | ||
| 66 | # define SPLIT_WPM_ENABLE | ||
| 67 | #endif | ||
| 68 | |||
