diff options
| author | Bernard <bernard+snow@emptystring.net> | 2019-04-06 03:53:07 +0800 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-04-05 12:53:07 -0700 |
| commit | ced2bbdac8018b08f229460b289ff5a7fce5dd43 (patch) | |
| tree | 28729fefd8865e5867ec3cdd33f5da65a88356b5 /keyboards/emptystring | |
| parent | 5701b75e3c10728d424ec058d26ef2e354aba0c0 (diff) | |
| download | qmk_firmware-ced2bbdac8018b08f229460b289ff5a7fce5dd43.tar.gz qmk_firmware-ced2bbdac8018b08f229460b289ff5a7fce5dd43.zip | |
Add a new keyboard: NQG (#5558)
* Add new keyboard: NQG
* Delete .gitignore
.gitignore removed
Originally used to ignore .DS_Store files from being committed.
* Changed Maintainer information
Maintainer link now points to a github account.
Diffstat (limited to 'keyboards/emptystring')
| -rw-r--r-- | keyboards/emptystring/NQG/NQG.c | 1 | ||||
| -rw-r--r-- | keyboards/emptystring/NQG/NQG.h | 15 | ||||
| -rw-r--r-- | keyboards/emptystring/NQG/config.h | 42 | ||||
| -rw-r--r-- | keyboards/emptystring/NQG/keymaps/default/keymap.c | 61 | ||||
| -rw-r--r-- | keyboards/emptystring/NQG/keymaps/default/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/emptystring/NQG/readme.md | 15 | ||||
| -rw-r--r-- | keyboards/emptystring/NQG/rules.mk | 64 |
7 files changed, 199 insertions, 0 deletions
diff --git a/keyboards/emptystring/NQG/NQG.c b/keyboards/emptystring/NQG/NQG.c new file mode 100644 index 000000000..eedf25e88 --- /dev/null +++ b/keyboards/emptystring/NQG/NQG.c | |||
| @@ -0,0 +1 @@ | |||
| #include "NQG.h" | |||
diff --git a/keyboards/emptystring/NQG/NQG.h b/keyboards/emptystring/NQG/NQG.h new file mode 100644 index 000000000..943ea6ab1 --- /dev/null +++ b/keyboards/emptystring/NQG/NQG.h | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "quantum.h" | ||
| 4 | |||
| 5 | #define LAYOUT( \ | ||
| 6 | L00, L01, L02, L03, L04, L05, L06, L07, L08, L09, \ | ||
| 7 | L10, L11, L12, L13, L14, L15, L16, L17, L18, L19, \ | ||
| 8 | L20, L21, L22, L23, L24, L25, L26, L27, L28, L29, \ | ||
| 9 | L30, L32, L33, L34, L35, L36, L37 \ | ||
| 10 | ) { \ | ||
| 11 | {L00, L01, L02, L03, L04, L05, L06, L07, L08, L09}, \ | ||
| 12 | {L10, L11, L12, L13, L14, L15, L16, L17, L18, L19}, \ | ||
| 13 | {L20, L21, L22, L23, L24, L25, L26, L27, L28, L29}, \ | ||
| 14 | {L30, KC_NO, L32, L33, L34, L35, L36, L37, KC_NO, KC_NO} \ | ||
| 15 | } | ||
diff --git a/keyboards/emptystring/NQG/config.h b/keyboards/emptystring/NQG/config.h new file mode 100644 index 000000000..3f52ba3ea --- /dev/null +++ b/keyboards/emptystring/NQG/config.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2019 Bernard Shih (twitter: @SA_EndlessGame) | ||
| 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 0x0076 | ||
| 24 | #define PRODUCT_ID 0x0037 | ||
| 25 | #define DEVICE_VER 0x0100 | ||
| 26 | #define MANUFACTURER emptystring | ||
| 27 | #define PRODUCT NQG | ||
| 28 | #define DESCRIPTION 30% ortholinear keyboard | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 4 | ||
| 32 | #define MATRIX_COLS 10 | ||
| 33 | |||
| 34 | /* key matrix pins */ | ||
| 35 | #define MATRIX_ROW_PINS {B6, B2, B3, B1} | ||
| 36 | #define MATRIX_COL_PINS {F7, F6, B5, B4, E6, D7, C6, D4, D0, D1} | ||
| 37 | |||
| 38 | |||
| 39 | /* COL2ROW or ROW2COL */ | ||
| 40 | #define DIODE_DIRECTION COL2ROW | ||
| 41 | |||
| 42 | #define TAPPING_TERM 200 | ||
diff --git a/keyboards/emptystring/NQG/keymaps/default/keymap.c b/keyboards/emptystring/NQG/keymaps/default/keymap.c new file mode 100644 index 000000000..cd465519b --- /dev/null +++ b/keyboards/emptystring/NQG/keymaps/default/keymap.c | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | #define _BASE 0 | ||
| 4 | #define _LOWER 1 | ||
| 5 | #define _RAISE 2 | ||
| 6 | |||
| 7 | enum tapdances{ | ||
| 8 | TD_SCCL = 0, | ||
| 9 | TD_ENSL, | ||
| 10 | TD_N0BS, | ||
| 11 | TD_RPPI, | ||
| 12 | }; | ||
| 13 | |||
| 14 | #define KC_SCCL TD(TD_SCCL) | ||
| 15 | #define KC_ENSL TD(TD_ENSL) | ||
| 16 | #define KC_N0BS TD(TD_N0BS) | ||
| 17 | #define KC_RPPI TD(TD_RPPI) | ||
| 18 | |||
| 19 | #define KC_BSCT LCTL_T(KC_BSPC) | ||
| 20 | #define KC_ALEN LALT(KC_ENT) | ||
| 21 | #define KC_CTEN LCTL(KC_ENT) | ||
| 22 | #define KC_STAB LSFT_T(KC_TAB) | ||
| 23 | #define KC_WLNG LALT(KC_LSFT) | ||
| 24 | #define KC_LOCK LGUI(KC_L) | ||
| 25 | #define KC_ULCK LCTL(LALT(KC_DEL)) | ||
| 26 | #define KC_DSTP LGUI(KC_D) | ||
| 27 | #define KC_ESLO LT(_LOWER, KC_ESC) | ||
| 28 | |||
| 29 | |||
| 30 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
| 31 | [TD_SCCL] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_QUOT), | ||
| 32 | [TD_ENSL] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_ENT), | ||
| 33 | [TD_N0BS] = ACTION_TAP_DANCE_DOUBLE(KC_0, KC_BSLS), | ||
| 34 | [TD_RPPI] = ACTION_TAP_DANCE_DOUBLE(KC_RPRN, KC_PIPE), | ||
| 35 | }; | ||
| 36 | |||
| 37 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 38 | |||
| 39 | [_BASE] = LAYOUT( | ||
| 40 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, \ | ||
| 41 | KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCCL, \ | ||
| 42 | KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_ENSL,\ | ||
| 43 | KC_STAB, KC_ESLO, KC_BSCT, KC_BSCT, KC_SPC, KC_SPC, MO(_RAISE) | ||
| 44 | ), | ||
| 45 | |||
| 46 | [_LOWER] = LAYOUT( | ||
| 47 | KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPPI, \ | ||
| 48 | _______, _______, KC_DSTP, _______, KC_WLNG, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, \ | ||
| 49 | _______, _______, _______, _______, _______, _______, KC_INS, KC_DEL, KC_HOME, KC_END,\ | ||
| 50 | KC_CTEN, _______, KC_BSCT, KC_BSCT, KC_SPC, KC_SPC, KC_ULCK | ||
| 51 | ), | ||
| 52 | |||
| 53 | [_RAISE] = LAYOUT( | ||
| 54 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_N0BS, \ | ||
| 55 | _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, \ | ||
| 56 | _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT,\ | ||
| 57 | KC_ALEN, KC_LOCK, KC_BSCT, KC_BSCT, KC_SPC, KC_SPC, _______ | ||
| 58 | ), | ||
| 59 | |||
| 60 | |||
| 61 | }; | ||
diff --git a/keyboards/emptystring/NQG/keymaps/default/rules.mk b/keyboards/emptystring/NQG/keymaps/default/rules.mk new file mode 100644 index 000000000..e5ddcae8d --- /dev/null +++ b/keyboards/emptystring/NQG/keymaps/default/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| TAP_DANCE_ENABLE = yes | |||
diff --git a/keyboards/emptystring/NQG/readme.md b/keyboards/emptystring/NQG/readme.md new file mode 100644 index 000000000..a8c899863 --- /dev/null +++ b/keyboards/emptystring/NQG/readme.md | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # NQG: Not Quite Gherkin | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | NQG (Not Quite Gherkin) is a 30% ortholinear keyboard with a macro key and dedicated row for thumb keys, made by emptystring studio. | ||
| 6 | |||
| 7 | Keyboard Maintainer: [Culturalsnow](http://github.com/culturalsnow) | ||
| 8 | Hardware Supported: NQG PCB, Pro Micro | ||
| 9 | Hardware Availability: Kits are available from [SA_EndlessGame](http://twitter.com/SA_EndlessGame) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make emptystring/NQG:default | ||
| 14 | |||
| 15 | 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/emptystring/NQG/rules.mk b/keyboards/emptystring/NQG/rules.mk new file mode 100644 index 000000000..9a46bb854 --- /dev/null +++ b/keyboards/emptystring/NQG/rules.mk | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | # MCU name | ||
| 2 | |||
| 3 | MCU = atmega32u4 | ||
| 4 | |||
| 5 | # Processor frequency. | ||
| 6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 9 | # automatically to create a 32-bit value in your source code. | ||
| 10 | # | ||
| 11 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 13 | # does not *change* the processor frequency - it should merely be updated to | ||
| 14 | # reflect the processor speed set externally so that the code can use accurate | ||
| 15 | # software delays. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | # | ||
| 19 | # LUFA specific | ||
| 20 | # | ||
| 21 | # Target architecture (see library "Board Types" documentation). | ||
| 22 | ARCH = AVR8 | ||
| 23 | |||
| 24 | # Input clock frequency. | ||
| 25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 31 | # source code. | ||
| 32 | # | ||
| 33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 35 | F_USB = $(F_CPU) | ||
| 36 | |||
| 37 | # Interrupt driven control endpoint task(+60) | ||
| 38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 39 | |||
| 40 | |||
| 41 | # Boot Section Size in *bytes* | ||
| 42 | # Teensy halfKay 512 | ||
| 43 | # Teensy++ halfKay 1024 | ||
| 44 | # Atmel DFU loader 4096 | ||
| 45 | # LUFA bootloader 4096 | ||
| 46 | # USBaspLoader 2048 | ||
| 47 | OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
| 48 | |||
| 49 | # Build Options | ||
| 50 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 51 | # the appropriate keymap folder that will get included automatically | ||
| 52 | # | ||
| 53 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 54 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 55 | EXTRAKEY_ENABLE = no # Audio control and System control(+450) | ||
| 56 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 57 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 58 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 59 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 60 | MIDI_ENABLE = no # MIDI controls | ||
| 61 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 62 | UNICODE_ENABLE = no # Unicode | ||
| 63 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 64 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
