[Keyboard] Add support for the THE30 keyboard (#7390)
authorErovia <Erovia@users.noreply.github.com>
Tue, 19 Nov 2019 20:56:01 +0000 (21:56 +0100)
committerJames Young <18669334+noroadsleft@users.noreply.github.com>
Tue, 19 Nov 2019 20:56:01 +0000 (12:56 -0800)
keyboards/lazydesigners/the30/config.h [new file with mode: 0644]
keyboards/lazydesigners/the30/info.json [new file with mode: 0644]
keyboards/lazydesigners/the30/keymaps/default/keymap.c [new file with mode: 0644]
keyboards/lazydesigners/the30/keymaps/default/readme.md [new file with mode: 0644]
keyboards/lazydesigners/the30/readme.md [new file with mode: 0644]
keyboards/lazydesigners/the30/rules.mk [new file with mode: 0644]
keyboards/lazydesigners/the30/the30.c [new file with mode: 0644]
keyboards/lazydesigners/the30/the30.h [new file with mode: 0644]

diff --git a/keyboards/lazydesigners/the30/config.h b/keyboards/lazydesigners/the30/config.h
new file mode 100644 (file)
index 0000000..fdd76fe
--- /dev/null
@@ -0,0 +1,42 @@
+/*
+Copyright 2019 Erovia
+
+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 "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID       0xFEED
+#define PRODUCT_ID      0x0030
+#define DEVICE_VER      0x0001
+#define MANUFACTURER    LazyDesigners
+#define PRODUCT         THE30
+#define DESCRIPTION     A 30% keyboard
+
+/* key matrix size */
+#define MATRIX_ROWS 3
+#define MATRIX_COLS 10
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS { D0, D1, D2 }
+#define MATRIX_COL_PINS { B1, B2, B3, D4, D6, D7, B4, B5, B6, C6 }
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+#define BACKLIGHT_PIN B7
+#define BACKLIGHT_LEVELS 3
diff --git a/keyboards/lazydesigners/the30/info.json b/keyboards/lazydesigners/the30/info.json
new file mode 100644 (file)
index 0000000..9797411
--- /dev/null
@@ -0,0 +1,44 @@
+{
+    "keyboard_name": "THE30",
+    "url": "http://lazydesigners.cn",
+    "maintainer": "Erovia",
+    "width": 10,
+    "height": 3,
+    "layouts": {
+        "LAYOUT_ortho_3x10": {
+            "key_count": 30,
+            "layout": [
+                {"label":"Q", "x":0, "y":0},
+                {"label":"W", "x":1, "y":0},
+                {"label":"E", "x":2, "y":0},
+                {"label":"R", "x":3, "y":0},
+                {"label":"T", "x":4, "y":0},
+                {"label":"Y", "x":5, "y":0},
+                {"label":"U", "x":6, "y":0},
+                {"label":"I", "x":7, "y":0},
+                {"label":"O", "x":8, "y":0},
+                {"label":"P", "x":9, "y":0},
+                {"label":"A", "x":0, "y":1},
+                {"label":"S", "x":1, "y":1},
+                {"label":"D", "x":2, "y":1},
+                {"label":"F", "x":3, "y":1},
+                {"label":"G", "x":4, "y":1},
+                {"label":"H", "x":5, "y":1},
+                {"label":"J", "x":6, "y":1},
+                {"label":"K", "x":7, "y":1},
+                {"label":"L", "x":8, "y":1},
+                {"label":"ENTER", "x":9, "y":1},
+                {"label":"Z", "x":0, "y":2},
+                {"label":"X", "x":1, "y":2},
+                {"label":"C", "x":2, "y":2},
+                {"label":"V", "x":3, "y":2},
+                {"label":"B", "x":4, "y":2},
+                {"label":"N", "x":5, "y":2},
+                {"label":"M", "x":6, "y":2},
+                {"label":",", "x":7, "y":2},
+                {"label":".", "x":8, "y":2},
+                {"label":"/", "x":9, "y":2}
+            ]
+        }
+    }
+}
diff --git a/keyboards/lazydesigners/the30/keymaps/default/keymap.c b/keyboards/lazydesigners/the30/keymaps/default/keymap.c
new file mode 100644 (file)
index 0000000..e15fad7
--- /dev/null
@@ -0,0 +1,56 @@
+/* Copyright 2019 Erovia
+ *
+ * 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 QMK_KEYBOARD_H
+
+enum custom_layers {
+       _QWERTY,
+       _FN
+};
+
+/* Press for Enter, hold for FN layer */
+#define FN_ENT LT(_FN, KC_ENT)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+/*
+ *  ,-------------------------------------------------.
+ *  | Q  | W  | E  | R  | T  | Y  | U  | I  | O  | P  |
+ *  |-------------------------------------------------|
+ *  | A  | S  | D  | F  | G  | H  | J  | K  | L  |ENT |
+ *  |-------------------------------------------------|
+ *  | Z  | X  | C  | V  | B  | N  | M  | ,  | .  | /  |
+ *  `-------------------------------------------------'
+ */
+    [_QWERTY] = LAYOUT_ortho_3x10(
+        KC_Q,    KC_W,    KC_E,    KC_R,    KC_T,    KC_Y,    KC_U,    KC_I,    KC_O,    KC_P,
+        KC_A,    KC_S,    KC_D,    KC_F,    KC_G,    KC_H,    KC_J,    KC_K,    KC_L,    FN_ENT,
+        KC_Z,    KC_X,    KC_C,    KC_V,    KC_B,    KC_N,    KC_M,    KC_COMM, KC_DOT,  KC_SLSH
+    ),
+/*
+ *  ,-------------------------------------------------.
+ *  | 1  | 2  | 3  | 4  | 5  | 6  | 7  | 8  | 9  | 0  |
+ *  |-------------------------------------------------|
+ *  |    |    |    |    |    |    |    |    |    |    |
+ *  |-------------------------------------------------|
+ *  |RST |ERST|    |    |SPC |    |    |    |    |    |
+ *  `-------------------------------------------------'
+ */
+    [_FN] = LAYOUT_ortho_3x10(
+        KC_1,    KC_2,    KC_3,    KC_4,    KC_5,    KC_6,    KC_7,    KC_8,    KC_9,    KC_0,
+        _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
+        RESET,   EEP_RST, _______, _______, KC_SPC,  _______, _______, _______, _______, _______
+    ),
+
+};
diff --git a/keyboards/lazydesigners/the30/keymaps/default/readme.md b/keyboards/lazydesigners/the30/keymaps/default/readme.md
new file mode 100644 (file)
index 0000000..7df2b3b
--- /dev/null
@@ -0,0 +1,25 @@
+# The default keymap for THE30
+
+_Very simple keymap for testing and for easy access to RESET_
+
+## QWERTY (Normal) Layer
+```
+,-------------------------------------------------.
+| Q  | W  | E  | R  | T  | Y  | U  | I  | O  | P  |
+|-------------------------------------------------|
+| A  | S  | D  | F  | G  | H  | J  | K  | L  |ENT |
+|-------------------------------------------------|
+| Z  | X  | C  | V  | B  | N  | M  | ,  | .  | /  |
+`-------------------------------------------------'
+```
+
+## FN Layer
+```
+,-------------------------------------------------.
+| 1  | 2  | 3  | 4  | 5  | 6  | 7  | 8  | 9  | 0  |
+|-------------------------------------------------|
+|    |    |    |    |    |    |    |    |    |    |
+|-------------------------------------------------|
+|RST |ERST|    |    |SPC |    |    |    |    |    |
+`-------------------------------------------------'
+```
diff --git a/keyboards/lazydesigners/the30/readme.md b/keyboards/lazydesigners/the30/readme.md
new file mode 100644 (file)
index 0000000..a00e4d1
--- /dev/null
@@ -0,0 +1,21 @@
+# THE30
+
+![the30](https://i.loli.net/2019/11/06/KTn3dNjreigovRz.jpg)
+
+A 30% custom keyboard designed and produced by [LazyDesigners](http://lazydesigners.cn).
+
+* Keyboard Maintainer: [Erovia](https://github.com/Erovia)
+* Hardware Supported: THE30
+* Hardware Availability: Check for GBs on [Geekhack](https://geekhack.org) and on [LazyDesigner's homepage.](http://lazydesigners.cn)
+
+Make example for this keyboard (after setting up your build environment):
+
+    make lazydesigners/the30:default
+
+Flashing example for this keyboard ([using the command line](https://docs.qmk.fm/#/newbs_flashing?id=flash-your-keyboard-from-the-command-line)):
+
+    make lazydesigners/the30:default:flash
+
+To enter the bootloader, either press the RESET button on the PCB or the RESET button if the current keymap has one.
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/lazydesigners/the30/rules.mk b/keyboards/lazydesigners/the30/rules.mk
new file mode 100644 (file)
index 0000000..6c1e24f
--- /dev/null
@@ -0,0 +1,35 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+#   Teensy       halfkay
+#   Pro Micro    caterina
+#   Atmel DFU    atmel-dfu
+#   LUFA DFU     lufa-dfu
+#   QMK DFU      qmk-dfu
+#   ATmega32A    bootloadHID
+#   ATmega328P   USBasp
+BOOTLOADER = atmel-dfu
+
+# Build Options
+#   change yes to no to disable
+#
+BOOTMAGIC_ENABLE = lite     # Virtual DIP switch configuration
+MOUSEKEY_ENABLE = yes       # Mouse keys
+EXTRAKEY_ENABLE = yes       # Audio control and System control
+CONSOLE_ENABLE = no         # Console for debug
+COMMAND_ENABLE = no         # Commands for debug and configuration
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = no       # Breathing sleep LED during USB suspend
+# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+NKRO_ENABLE = yes           # USB Nkey Rollover
+BACKLIGHT_ENABLE = yes      # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
+MIDI_ENABLE = no            # MIDI support
+BLUETOOTH_ENABLE = no       # Enable Bluetooth with the Adafruit EZ-Key HID
+AUDIO_ENABLE = no           # Audio output on port C6
+FAUXCLICKY_ENABLE = no      # Use buzzer to emulate clicky switches
+HD44780_ENABLE = no         # Enable support for HD44780 based LCDs
+
+# Support community keymaps
+LAYOUTS = ortho_3x10
diff --git a/keyboards/lazydesigners/the30/the30.c b/keyboards/lazydesigners/the30/the30.c
new file mode 100644 (file)
index 0000000..c41e16d
--- /dev/null
@@ -0,0 +1,16 @@
+/* Copyright 2019 Erovia
+ *
+ * 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 "the30.h"
diff --git a/keyboards/lazydesigners/the30/the30.h b/keyboards/lazydesigners/the30/the30.h
new file mode 100644 (file)
index 0000000..82a6bf8
--- /dev/null
@@ -0,0 +1,38 @@
+/* Copyright 2019 Erovia
+ *
+ * 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_ortho_3x10( \
+    K00, K01, K02, K03, K04, K05, K06, K07, K08, K09,   \
+    K10, K11, K12, K13, K14, K15, K16, K17, K18, K19,   \
+    K20, K21, K22, K23, K24, K25, K26, K27, K28, K29    \
+) { \
+    { K00,   K01,   K02,   K03,   K04,   K05,   K06,   K07,   K08,   K09   }, \
+    { K10,   K11,   K12,   K13,   K14,   K15,   K16,   K17,   K18,   K19   }, \
+    { K20,   K21,   K22,   K23,   K24,   K25,   K26,   K27,   K28,   K29   }, \
+}