diff options
Diffstat (limited to 'keyboards/lime/rev1')
| -rw-r--r-- | keyboards/lime/rev1/config.h | 68 | ||||
| -rw-r--r-- | keyboards/lime/rev1/info.json | 25 | ||||
| -rw-r--r-- | keyboards/lime/rev1/rev1.c | 38 | ||||
| -rw-r--r-- | keyboards/lime/rev1/rev1.h | 41 | ||||
| -rw-r--r-- | keyboards/lime/rev1/rules.mk | 4 |
5 files changed, 176 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 | |||
diff --git a/keyboards/lime/rev1/info.json b/keyboards/lime/rev1/info.json new file mode 100644 index 000000000..14aafb323 --- /dev/null +++ b/keyboards/lime/rev1/info.json | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Lime", | ||
| 3 | "url": "https://github.com/HellSingCoder/LimeKeyboard", | ||
| 4 | "maintainer": "HellSingCoder", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"#", "x":3, "y":0}, {"label":"*", "x":11.5, "y":0}, {"label":"@", "x":2, "y":0.13}, {"label":"$", "x":4, "y":0.13}, {"label":"&", "x":10.5, "y":0.13}, | ||
| 9 | {"label":"(", "x":12.5, "y":0.13}, {"label":"%", "x":5, "y":0.25}, {"label":"^", "x":9.5, "y":0.25}, {"label":"!", "x":1, "y":0.38}, {"label":")", "x":13.5, "y":0.38}, | ||
| 10 | {"label":"Esc", "x":0, "y":0.5}, {"label":"<i class='fa fa-trash'></i>", "x":14.5, "y":0.5}, {"label":"E", "x":3, "y":1}, {"label":"I", "x":11.5, "y":1}, | ||
| 11 | {"label":"W", "x":2, "y":1.13}, {"label":"R", "x":4, "y":1.13}, {"label":"U", "x":10.5, "y":1.13}, {"label":"O", "x":12.5, "y":1.13}, {"label":"T", "x":5, "y":1.25}, | ||
| 12 | {"label":"Y", "x":9.5, "y":1.25}, {"label":"Q", "x":1, "y":1.38}, {"label":"P", "x":13.5, "y":1.38}, {"label":"<i class='fa fa-arrow-left'></i>", "x":0, "y":1.5}, | ||
| 13 | {"label":"~", "x":14.5, "y":1.5}, {"label":"D", "x":3, "y":2}, {"label":"K", "x":11.5, "y":2}, {"label":"S", "x":2, "y":2.13}, {"label":"F", "x":4, "y":2.13}, | ||
| 14 | {"label":"J", "x":10.5, "y":2.13}, {"label":"L", "x":12.5, "y":2.13}, {"label":"G", "x":5, "y":2.25}, {"label":"H", "x":9.5, "y":2.25}, {"label":"A", "x":1, "y":2.38}, | ||
| 15 | {"label":":", "x":13.5, "y":2.38}, {"label":"<i class='fa fa-lock'></i>", "x":0, "y":2.5}, {"label":"\"", "x":14.5, "y":2.5}, {"label":"C", "x":3, "y":3}, | ||
| 16 | {"label":"<", "x":11.5, "y":3}, {"label":"X", "x":2, "y":3.13}, {"label":"V", "x":4, "y":3.13}, {"label":"M", "x":10.5, "y":3.13}, {"label":">", "x":12.5, "y":3.13}, | ||
| 17 | {"label":"B", "x":5, "y":3.25}, {"label":"Joystick", "x":6, "y":3.25}, {"label":"Encoder", "x":8.5, "y":3.25}, {"label":"N", "x":9.5, "y":3.25}, | ||
| 18 | {"label":"Z", "x":1, "y":3.38}, {"label":"?", "x":13.5, "y":3.38}, {"label":"<i class='fa fa-arrow-up'></i>", "x":0, "y":3.5}, {"label":"|", "x":14.5, "y":3.5}, | ||
| 19 | {"label":"Alt", "x":2.35, "y":4.13}, {"label":"Del", "x":3.35, "y":4.13}, {"label":"{", "x":11.15, "y":4.13}, {"label":"}", "x":12.15, "y":4.13}, | ||
| 20 | {"label":"OS", "x":1.35, "y":4.35}, {"label":"_", "x":13.15, "y":4.38}, {"label":"Lower", "x":0.35, "y":4.5}, {"label":"+", "x":14.15, "y":4.5}, | ||
| 21 | {"label":"Ctrl", "x":5.55, "y":2.85}, {"label":"Enter", "x":-0.4, "y":4.1, "h":1.25}, {"label":"Space", "x":-4.1, "y":3.35, "h":1.25}, {"label":"Raise", "x":8.4, "y":11.2} | ||
| 22 | ] | ||
| 23 | } | ||
| 24 | } | ||
| 25 | } | ||
diff --git a/keyboards/lime/rev1/rev1.c b/keyboards/lime/rev1/rev1.c new file mode 100644 index 000000000..4cc560623 --- /dev/null +++ b/keyboards/lime/rev1/rev1.c | |||
| @@ -0,0 +1,38 @@ | |||
| 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 | #include "lime.h" | ||
| 18 | |||
| 19 | /* Encoders */ | ||
| 20 | #ifdef ENCODER_ENABLE | ||
| 21 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 22 | |||
| 23 | if (index == 0) { | ||
| 24 | if (clockwise) { | ||
| 25 | tap_code(KC_MNXT); | ||
| 26 | } else { | ||
| 27 | tap_code(KC_MPRV); | ||
| 28 | } | ||
| 29 | } else if (index == 1) { | ||
| 30 | if (clockwise) { | ||
| 31 | tap_code(KC_VOLU); | ||
| 32 | } else { | ||
| 33 | tap_code(KC_VOLD); | ||
| 34 | } | ||
| 35 | } | ||
| 36 | return false; | ||
| 37 | } | ||
| 38 | #endif | ||
diff --git a/keyboards/lime/rev1/rev1.h b/keyboards/lime/rev1/rev1.h new file mode 100644 index 000000000..24a3f7212 --- /dev/null +++ b/keyboards/lime/rev1/rev1.h | |||
| @@ -0,0 +1,41 @@ | |||
| 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 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define LAYOUT( \ | ||
| 21 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ | ||
| 22 | L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ | ||
| 23 | L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \ | ||
| 24 | L30, L31, L32, L33, L34, L35, L50, R50, R30, R31, R32, R33, R34, R35, \ | ||
| 25 | L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \ | ||
| 26 | ) \ | ||
| 27 | { \ | ||
| 28 | { L00, L01, L02, L03, L04, L05 }, \ | ||
| 29 | { L10, L11, L12, L13, L14, L15 }, \ | ||
| 30 | { L20, L21, L22, L23, L24, L25 }, \ | ||
| 31 | { L30, L31, L32, L33, L34, L35 }, \ | ||
| 32 | { L40, L41, L42, L43, L44, L45 }, \ | ||
| 33 | { L50, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \ | ||
| 34 | { R05, R04, R03, R02, R01, R00 }, \ | ||
| 35 | { R15, R14, R13, R12, R11, R10 }, \ | ||
| 36 | { R25, R24, R23, R22, R21, R20 }, \ | ||
| 37 | { R35, R34, R33, R32, R31, R30 }, \ | ||
| 38 | { R45, R44, R43, R42, R41, R40 }, \ | ||
| 39 | { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, R50 } \ | ||
| 40 | } | ||
| 41 | |||
diff --git a/keyboards/lime/rev1/rules.mk b/keyboards/lime/rev1/rules.mk new file mode 100644 index 000000000..f83c13ac8 --- /dev/null +++ b/keyboards/lime/rev1/rules.mk | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | ENCODER_ENABLE = yes | ||
| 2 | ENCODER_RIGHT_ENABLE = yes | ||
| 3 | OLED_ENABLE = yes | ||
| 4 | OLED_DRIVER = SSD1306 | ||
