summaryrefslogtreecommitdiff
path: root/keyboards/lime/rev1
diff options
context:
space:
mode:
authorHellTM <lisca94@gmail.com>2021-11-11 04:32:31 +0000
committerGitHub <noreply@github.com>2021-11-10 20:32:31 -0800
commitc48e9f9e77a8f8c722957ef306280014b098758d (patch)
tree976e882a487645f8ba9536f29c03e21797ce2cd6 /keyboards/lime/rev1
parent48eddeeea401a4ebaff8590137da01b594ba6909 (diff)
downloadqmk_firmware-c48e9f9e77a8f8c722957ef306280014b098758d.tar.gz
qmk_firmware-c48e9f9e77a8f8c722957ef306280014b098758d.zip
[Keyboard] Lime by HellTM (#14710)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/lime/rev1')
-rw-r--r--keyboards/lime/rev1/config.h68
-rw-r--r--keyboards/lime/rev1/info.json25
-rw-r--r--keyboards/lime/rev1/rev1.c38
-rw-r--r--keyboards/lime/rev1/rev1.h41
-rw-r--r--keyboards/lime/rev1/rules.mk4
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 0000000000..55c045dc67
--- /dev/null
+++ b/keyboards/lime/rev1/config.h
@@ -0,0 +1,68 @@
+ /* Copyright 2021 HellSingCoder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x0666
+#define PRODUCT_ID 0x2784
+#define DEVICE_VER 0x0001
+#define MANUFACTURER HellSingCoder
+#define PRODUCT Lime
+
+/* key matrix size */
+// Rows are doubled-up
+#define MATRIX_ROWS 12
+#define MATRIX_COLS 6
+
+// wiring of each half
+#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 }
+#define MATRIX_COL_PINS { F6, F7, B1, B3, B2, B6 }
+#define DIODE_DIRECTION COL2ROW
+
+#define TAPPING_TERM 100
+#define DEBOUNCE 5
+
+/* encoder support */
+#ifdef ENCODER_ENABLE
+# define ENCODERS_PAD_A { F5 }
+# define ENCODERS_PAD_B { F4 }
+# define ENCODERS_PAD_A_RIGHT { F4 }
+# define ENCODERS_PAD_B_RIGHT { F5 }
+# define ENCODER_RESOLUTION 2
+#endif
+
+/* joystick support */
+#ifdef JOYSTICK_ENABLE
+# define JOYSTICK_AXES_COUNT 2
+# define JOYSTICK_BUTTON_COUNT 1
+# define JOYSTICK_AXES_RESOLUTION 8
+#endif
+
+#define TAP_CODE_DELAY 10
+
+/* communication between sides */
+#define USE_SERIAL
+#define SOFT_SERIAL_PIN D2
+
+#define NO_ACTION_MACRO
+#define NO_ACTION_FUNCTION
+#define SPLIT_USB_DETECT
+
+#ifdef WPM_ENABLE
+# define SPLIT_WPM_ENABLE
+#endif
+
diff --git a/keyboards/lime/rev1/info.json b/keyboards/lime/rev1/info.json
new file mode 100644
index 0000000000..14aafb3235
--- /dev/null
+++ b/keyboards/lime/rev1/info.json
@@ -0,0 +1,25 @@
+{
+ "keyboard_name": "Lime",
+ "url": "https://github.com/HellSingCoder/LimeKeyboard",
+ "maintainer": "HellSingCoder",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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},
+ {"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}
+ ]
+ }
+ }
+}
diff --git a/keyboards/lime/rev1/rev1.c b/keyboards/lime/rev1/rev1.c
new file mode 100644
index 0000000000..4cc560623b
--- /dev/null
+++ b/keyboards/lime/rev1/rev1.c
@@ -0,0 +1,38 @@
+ /* Copyright 2021 HellSingCoder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "lime.h"
+
+/* Encoders */
+#ifdef ENCODER_ENABLE
+ bool encoder_update_user(uint8_t index, bool clockwise) {
+
+ if (index == 0) {
+ if (clockwise) {
+ tap_code(KC_MNXT);
+ } else {
+ tap_code(KC_MPRV);
+ }
+ } else if (index == 1) {
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+ }
+ return false;
+ }
+#endif
diff --git a/keyboards/lime/rev1/rev1.h b/keyboards/lime/rev1/rev1.h
new file mode 100644
index 0000000000..24a3f7212b
--- /dev/null
+++ b/keyboards/lime/rev1/rev1.h
@@ -0,0 +1,41 @@
+ /* Copyright 2021 HellSingCoder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+#include "quantum.h"
+
+#define LAYOUT( \
+ L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
+ L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
+ L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
+ L30, L31, L32, L33, L34, L35, L50, R50, R30, R31, R32, R33, R34, R35, \
+ L40, L41, L42, L43, L44, L45, R40, R41, R42, R43, R44, R45 \
+ ) \
+ { \
+ { L00, L01, L02, L03, L04, L05 }, \
+ { L10, L11, L12, L13, L14, L15 }, \
+ { L20, L21, L22, L23, L24, L25 }, \
+ { L30, L31, L32, L33, L34, L35 }, \
+ { L40, L41, L42, L43, L44, L45 }, \
+ { L50, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
+ { R05, R04, R03, R02, R01, R00 }, \
+ { R15, R14, R13, R12, R11, R10 }, \
+ { R25, R24, R23, R22, R21, R20 }, \
+ { R35, R34, R33, R32, R31, R30 }, \
+ { R45, R44, R43, R42, R41, R40 }, \
+ { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, R50 } \
+ }
+
diff --git a/keyboards/lime/rev1/rules.mk b/keyboards/lime/rev1/rules.mk
new file mode 100644
index 0000000000..f83c13ac8d
--- /dev/null
+++ b/keyboards/lime/rev1/rules.mk
@@ -0,0 +1,4 @@
+ENCODER_ENABLE = yes
+ENCODER_RIGHT_ENABLE = yes
+OLED_ENABLE = yes
+OLED_DRIVER = SSD1306