diff options
| author | Erovia <Erovia@users.noreply.github.com> | 2019-11-19 21:56:01 +0100 |
|---|---|---|
| committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2019-11-19 12:56:01 -0800 |
| commit | c1c27b83aa9a3a57da43749854ee3c5182e63826 (patch) | |
| tree | 5801a281ee69e861ebfe3738b48a8d7b8cf6fac6 | |
| parent | bb87bdec82433053eef68caa5fe4a03083a13e9c (diff) | |
| download | qmk_firmware-c1c27b83aa9a3a57da43749854ee3c5182e63826.tar.gz qmk_firmware-c1c27b83aa9a3a57da43749854ee3c5182e63826.zip | |
[Keyboard] Add support for the THE30 keyboard (#7390)
| -rw-r--r-- | keyboards/lazydesigners/the30/config.h | 42 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the30/info.json | 44 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the30/keymaps/default/keymap.c | 56 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the30/keymaps/default/readme.md | 25 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the30/readme.md | 21 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the30/rules.mk | 35 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the30/the30.c | 16 | ||||
| -rw-r--r-- | keyboards/lazydesigners/the30/the30.h | 38 |
8 files changed, 277 insertions, 0 deletions
diff --git a/keyboards/lazydesigners/the30/config.h b/keyboards/lazydesigners/the30/config.h new file mode 100644 index 000000000..fdd76fe73 --- /dev/null +++ b/keyboards/lazydesigners/the30/config.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Erovia | ||
| 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 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xFEED | ||
| 24 | #define PRODUCT_ID 0x0030 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER LazyDesigners | ||
| 27 | #define PRODUCT THE30 | ||
| 28 | #define DESCRIPTION A 30% keyboard | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 3 | ||
| 32 | #define MATRIX_COLS 10 | ||
| 33 | |||
| 34 | /* key matrix pins */ | ||
| 35 | #define MATRIX_ROW_PINS { D0, D1, D2 } | ||
| 36 | #define MATRIX_COL_PINS { B1, B2, B3, D4, D6, D7, B4, B5, B6, C6 } | ||
| 37 | |||
| 38 | /* COL2ROW or ROW2COL */ | ||
| 39 | #define DIODE_DIRECTION COL2ROW | ||
| 40 | |||
| 41 | #define BACKLIGHT_PIN B7 | ||
| 42 | #define BACKLIGHT_LEVELS 3 | ||
diff --git a/keyboards/lazydesigners/the30/info.json b/keyboards/lazydesigners/the30/info.json new file mode 100644 index 000000000..97974112e --- /dev/null +++ b/keyboards/lazydesigners/the30/info.json | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "THE30", | ||
| 3 | "url": "http://lazydesigners.cn", | ||
| 4 | "maintainer": "Erovia", | ||
| 5 | "width": 10, | ||
| 6 | "height": 3, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ortho_3x10": { | ||
| 9 | "key_count": 30, | ||
| 10 | "layout": [ | ||
| 11 | {"label":"Q", "x":0, "y":0}, | ||
| 12 | {"label":"W", "x":1, "y":0}, | ||
| 13 | {"label":"E", "x":2, "y":0}, | ||
| 14 | {"label":"R", "x":3, "y":0}, | ||
| 15 | {"label":"T", "x":4, "y":0}, | ||
| 16 | {"label":"Y", "x":5, "y":0}, | ||
| 17 | {"label":"U", "x":6, "y":0}, | ||
| 18 | {"label":"I", "x":7, "y":0}, | ||
| 19 | {"label":"O", "x":8, "y":0}, | ||
| 20 | {"label":"P", "x":9, "y":0}, | ||
| 21 | {"label":"A", "x":0, "y":1}, | ||
| 22 | {"label":"S", "x":1, "y":1}, | ||
| 23 | {"label":"D", "x":2, "y":1}, | ||
| 24 | {"label":"F", "x":3, "y":1}, | ||
| 25 | {"label":"G", "x":4, "y":1}, | ||
| 26 | {"label":"H", "x":5, "y":1}, | ||
| 27 | {"label":"J", "x":6, "y":1}, | ||
| 28 | {"label":"K", "x":7, "y":1}, | ||
| 29 | {"label":"L", "x":8, "y":1}, | ||
| 30 | {"label":"ENTER", "x":9, "y":1}, | ||
| 31 | {"label":"Z", "x":0, "y":2}, | ||
| 32 | {"label":"X", "x":1, "y":2}, | ||
| 33 | {"label":"C", "x":2, "y":2}, | ||
| 34 | {"label":"V", "x":3, "y":2}, | ||
| 35 | {"label":"B", "x":4, "y":2}, | ||
| 36 | {"label":"N", "x":5, "y":2}, | ||
| 37 | {"label":"M", "x":6, "y":2}, | ||
| 38 | {"label":",", "x":7, "y":2}, | ||
| 39 | {"label":".", "x":8, "y":2}, | ||
| 40 | {"label":"/", "x":9, "y":2} | ||
| 41 | ] | ||
| 42 | } | ||
| 43 | } | ||
| 44 | } | ||
diff --git a/keyboards/lazydesigners/the30/keymaps/default/keymap.c b/keyboards/lazydesigners/the30/keymaps/default/keymap.c new file mode 100644 index 000000000..e15fad7eb --- /dev/null +++ b/keyboards/lazydesigners/the30/keymaps/default/keymap.c | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /* Copyright 2019 Erovia | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | enum custom_layers { | ||
| 19 | _QWERTY, | ||
| 20 | _FN | ||
| 21 | }; | ||
| 22 | |||
| 23 | /* Press for Enter, hold for FN layer */ | ||
| 24 | #define FN_ENT LT(_FN, KC_ENT) | ||
| 25 | |||
| 26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 27 | /* | ||
| 28 | * ,-------------------------------------------------. | ||
| 29 | * | Q | W | E | R | T | Y | U | I | O | P | | ||
| 30 | * |-------------------------------------------------| | ||
| 31 | * | A | S | D | F | G | H | J | K | L |ENT | | ||
| 32 | * |-------------------------------------------------| | ||
| 33 | * | Z | X | C | V | B | N | M | , | . | / | | ||
| 34 | * `-------------------------------------------------' | ||
| 35 | */ | ||
| 36 | [_QWERTY] = LAYOUT_ortho_3x10( | ||
| 37 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, | ||
| 38 | KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, FN_ENT, | ||
| 39 | KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH | ||
| 40 | ), | ||
| 41 | /* | ||
| 42 | * ,-------------------------------------------------. | ||
| 43 | * | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | ||
| 44 | * |-------------------------------------------------| | ||
| 45 | * | | | | | | | | | | | | ||
| 46 | * |-------------------------------------------------| | ||
| 47 | * |RST |ERST| | |SPC | | | | | | | ||
| 48 | * `-------------------------------------------------' | ||
| 49 | */ | ||
| 50 | [_FN] = LAYOUT_ortho_3x10( | ||
| 51 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, | ||
| 52 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 53 | RESET, EEP_RST, _______, _______, KC_SPC, _______, _______, _______, _______, _______ | ||
| 54 | ), | ||
| 55 | |||
| 56 | }; | ||
diff --git a/keyboards/lazydesigners/the30/keymaps/default/readme.md b/keyboards/lazydesigners/the30/keymaps/default/readme.md new file mode 100644 index 000000000..7df2b3b0a --- /dev/null +++ b/keyboards/lazydesigners/the30/keymaps/default/readme.md | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # The default keymap for THE30 | ||
| 2 | |||
| 3 | _Very simple keymap for testing and for easy access to RESET_ | ||
| 4 | |||
| 5 | ## QWERTY (Normal) Layer | ||
| 6 | ``` | ||
| 7 | ,-------------------------------------------------. | ||
| 8 | | Q | W | E | R | T | Y | U | I | O | P | | ||
| 9 | |-------------------------------------------------| | ||
| 10 | | A | S | D | F | G | H | J | K | L |ENT | | ||
| 11 | |-------------------------------------------------| | ||
| 12 | | Z | X | C | V | B | N | M | , | . | / | | ||
| 13 | `-------------------------------------------------' | ||
| 14 | ``` | ||
| 15 | |||
| 16 | ## FN Layer | ||
| 17 | ``` | ||
| 18 | ,-------------------------------------------------. | ||
| 19 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | ||
| 20 | |-------------------------------------------------| | ||
| 21 | | | | | | | | | | | | | ||
| 22 | |-------------------------------------------------| | ||
| 23 | |RST |ERST| | |SPC | | | | | | | ||
| 24 | `-------------------------------------------------' | ||
| 25 | ``` | ||
diff --git a/keyboards/lazydesigners/the30/readme.md b/keyboards/lazydesigners/the30/readme.md new file mode 100644 index 000000000..a00e4d1fa --- /dev/null +++ b/keyboards/lazydesigners/the30/readme.md | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # THE30 | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 30% custom keyboard designed and produced by [LazyDesigners](http://lazydesigners.cn). | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [Erovia](https://github.com/Erovia) | ||
| 8 | * Hardware Supported: THE30 | ||
| 9 | * Hardware Availability: Check for GBs on [Geekhack](https://geekhack.org) and on [LazyDesigner's homepage.](http://lazydesigners.cn) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make lazydesigners/the30:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard ([using the command line](https://docs.qmk.fm/#/newbs_flashing?id=flash-your-keyboard-from-the-command-line)): | ||
| 16 | |||
| 17 | make lazydesigners/the30:default:flash | ||
| 18 | |||
| 19 | To enter the bootloader, either press the RESET button on the PCB or the RESET button if the current keymap has one. | ||
| 20 | |||
| 21 | 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 index 000000000..6c1e24fda --- /dev/null +++ b/keyboards/lazydesigners/the30/rules.mk | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 27 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 28 | MIDI_ENABLE = no # MIDI support | ||
| 29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 31 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
| 32 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs | ||
| 33 | |||
| 34 | # Support community keymaps | ||
| 35 | LAYOUTS = ortho_3x10 | ||
diff --git a/keyboards/lazydesigners/the30/the30.c b/keyboards/lazydesigners/the30/the30.c new file mode 100644 index 000000000..c41e16dc0 --- /dev/null +++ b/keyboards/lazydesigners/the30/the30.c | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | /* Copyright 2019 Erovia | ||
| 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 | #include "the30.h" | ||
diff --git a/keyboards/lazydesigners/the30/the30.h b/keyboards/lazydesigners/the30/the30.h new file mode 100644 index 000000000..82a6bf8ba --- /dev/null +++ b/keyboards/lazydesigners/the30/the30.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* Copyright 2019 Erovia | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | /* | ||
| 21 | * ,-------------------------------------------------. | ||
| 22 | * | | | | | | | | | | | | ||
| 23 | * |-------------------------------------------------| | ||
| 24 | * | | | | | | | | | | | | ||
| 25 | * |-------------------------------------------------| | ||
| 26 | * | | | | | | | | | | | | ||
| 27 | * `-------------------------------------------------' | ||
| 28 | */ | ||
| 29 | |||
| 30 | #define LAYOUT_ortho_3x10( \ | ||
| 31 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, \ | ||
| 32 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, \ | ||
| 33 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 \ | ||
| 34 | ) { \ | ||
| 35 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \ | ||
| 36 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \ | ||
| 37 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \ | ||
| 38 | } | ||
