summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard <bernard+snow@emptystring.net>2019-04-06 03:53:07 +0800
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-04-05 12:53:07 -0700
commitced2bbdac8018b08f229460b289ff5a7fce5dd43 (patch)
tree28729fefd8865e5867ec3cdd33f5da65a88356b5
parent5701b75e3c10728d424ec058d26ef2e354aba0c0 (diff)
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.
-rw-r--r--keyboards/emptystring/NQG/NQG.c1
-rw-r--r--keyboards/emptystring/NQG/NQG.h15
-rw-r--r--keyboards/emptystring/NQG/config.h42
-rw-r--r--keyboards/emptystring/NQG/keymaps/default/keymap.c61
-rw-r--r--keyboards/emptystring/NQG/keymaps/default/rules.mk1
-rw-r--r--keyboards/emptystring/NQG/readme.md15
-rw-r--r--keyboards/emptystring/NQG/rules.mk64
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 0000000000..eedf25e881
--- /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 0000000000..943ea6ab16
--- /dev/null
+++ b/keyboards/emptystring/NQG/NQG.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "quantum.h"
+
+#define LAYOUT( \
+ L00, L01, L02, L03, L04, L05, L06, L07, L08, L09, \
+ L10, L11, L12, L13, L14, L15, L16, L17, L18, L19, \
+ L20, L21, L22, L23, L24, L25, L26, L27, L28, L29, \
+ L30, L32, L33, L34, L35, L36, L37 \
+ ) { \
+ {L00, L01, L02, L03, L04, L05, L06, L07, L08, L09}, \
+ {L10, L11, L12, L13, L14, L15, L16, L17, L18, L19}, \
+ {L20, L21, L22, L23, L24, L25, L26, L27, L28, L29}, \
+ {L30, KC_NO, L32, L33, L34, L35, L36, L37, KC_NO, KC_NO} \
+ }
diff --git a/keyboards/emptystring/NQG/config.h b/keyboards/emptystring/NQG/config.h
new file mode 100644
index 0000000000..3f52ba3ea6
--- /dev/null
+++ b/keyboards/emptystring/NQG/config.h
@@ -0,0 +1,42 @@
+/*
+Copyright 2019 Bernard Shih (twitter: @SA_EndlessGame)
+
+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 0x0076
+#define PRODUCT_ID 0x0037
+#define DEVICE_VER 0x0100
+#define MANUFACTURER emptystring
+#define PRODUCT NQG
+#define DESCRIPTION 30% ortholinear keyboard
+
+/* key matrix size */
+#define MATRIX_ROWS 4
+#define MATRIX_COLS 10
+
+/* key matrix pins */
+#define MATRIX_ROW_PINS {B6, B2, B3, B1}
+#define MATRIX_COL_PINS {F7, F6, B5, B4, E6, D7, C6, D4, D0, D1}
+
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
+
+#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 0000000000..cd465519bf
--- /dev/null
+++ b/keyboards/emptystring/NQG/keymaps/default/keymap.c
@@ -0,0 +1,61 @@
+#include QMK_KEYBOARD_H
+
+#define _BASE 0
+#define _LOWER 1
+#define _RAISE 2
+
+enum tapdances{
+ TD_SCCL = 0,
+ TD_ENSL,
+ TD_N0BS,
+ TD_RPPI,
+};
+
+#define KC_SCCL TD(TD_SCCL)
+#define KC_ENSL TD(TD_ENSL)
+#define KC_N0BS TD(TD_N0BS)
+#define KC_RPPI TD(TD_RPPI)
+
+#define KC_BSCT LCTL_T(KC_BSPC)
+#define KC_ALEN LALT(KC_ENT)
+#define KC_CTEN LCTL(KC_ENT)
+#define KC_STAB LSFT_T(KC_TAB)
+#define KC_WLNG LALT(KC_LSFT)
+#define KC_LOCK LGUI(KC_L)
+#define KC_ULCK LCTL(LALT(KC_DEL))
+#define KC_DSTP LGUI(KC_D)
+#define KC_ESLO LT(_LOWER, KC_ESC)
+
+
+qk_tap_dance_action_t tap_dance_actions[] = {
+ [TD_SCCL] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_QUOT),
+ [TD_ENSL] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_ENT),
+ [TD_N0BS] = ACTION_TAP_DANCE_DOUBLE(KC_0, KC_BSLS),
+ [TD_RPPI] = ACTION_TAP_DANCE_DOUBLE(KC_RPRN, KC_PIPE),
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ [_BASE] = LAYOUT(
+ 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, KC_SCCL, \
+ KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_ENSL,\
+ KC_STAB, KC_ESLO, KC_BSCT, KC_BSCT, KC_SPC, KC_SPC, MO(_RAISE)
+ ),
+
+ [_LOWER] = LAYOUT(
+ KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPPI, \
+ _______, _______, KC_DSTP, _______, KC_WLNG, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, \
+ _______, _______, _______, _______, _______, _______, KC_INS, KC_DEL, KC_HOME, KC_END,\
+ KC_CTEN, _______, KC_BSCT, KC_BSCT, KC_SPC, KC_SPC, KC_ULCK
+ ),
+
+ [_RAISE] = LAYOUT(
+ KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_N0BS, \
+ _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, \
+ _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT,\
+ KC_ALEN, KC_LOCK, KC_BSCT, KC_BSCT, KC_SPC, KC_SPC, _______
+ ),
+
+
+};
diff --git a/keyboards/emptystring/NQG/keymaps/default/rules.mk b/keyboards/emptystring/NQG/keymaps/default/rules.mk
new file mode 100644
index 0000000000..e5ddcae8d9
--- /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 0000000000..a8c8998634
--- /dev/null
+++ b/keyboards/emptystring/NQG/readme.md
@@ -0,0 +1,15 @@
+# NQG: Not Quite Gherkin
+
+![NQG](https://github.com/culturalsnow/NQG/blob/master/images/NQGLayout.jpg)
+
+NQG (Not Quite Gherkin) is a 30% ortholinear keyboard with a macro key and dedicated row for thumb keys, made by emptystring studio.
+
+Keyboard Maintainer: [Culturalsnow](http://github.com/culturalsnow)
+Hardware Supported: NQG PCB, Pro Micro
+Hardware Availability: Kits are available from [SA_EndlessGame](http://twitter.com/SA_EndlessGame)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make emptystring/NQG:default
+
+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 0000000000..9a46bb8544
--- /dev/null
+++ b/keyboards/emptystring/NQG/rules.mk
@@ -0,0 +1,64 @@
+# MCU name
+
+MCU = atmega32u4
+
+# Processor frequency.
+# This will define a symbol, F_CPU, in all source code files equal to the
+# processor frequency in Hz. You can then use this symbol in your source code to
+# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
+# automatically to create a 32-bit value in your source code.
+#
+# This will be an integer division of F_USB below, as it is sourced by
+# F_USB after it has run through any CPU prescalers. Note that this value
+# does not *change* the processor frequency - it should merely be updated to
+# reflect the processor speed set externally so that the code can use accurate
+# software delays.
+F_CPU = 16000000
+
+#
+# LUFA specific
+#
+# Target architecture (see library "Board Types" documentation).
+ARCH = AVR8
+
+# Input clock frequency.
+# This will define a symbol, F_USB, in all source code files equal to the
+# input clock frequency (before any prescaling is performed) in Hz. This value may
+# differ from F_CPU if prescaling is used on the latter, and is required as the
+# raw input clock is fed directly to the PLL sections of the AVR for high speed
+# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
+# at the end, this will be done automatically to create a 32-bit value in your
+# source code.
+#
+# If no clock division is performed on the input clock inside the AVR (via the
+# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
+F_USB = $(F_CPU)
+
+# Interrupt driven control endpoint task(+60)
+OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
+
+
+# Boot Section Size in *bytes*
+# Teensy halfKay 512
+# Teensy++ halfKay 1024
+# Atmel DFU loader 4096
+# LUFA bootloader 4096
+# USBaspLoader 2048
+OPT_DEFS += -DBOOTLOADER_SIZE=4096
+
+# Build Options
+# change to "no" to disable the options, or define them in the Makefile in
+# the appropriate keymap folder that will get included automatically
+#
+BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
+MOUSEKEY_ENABLE = no # Mouse keys(+4700)
+EXTRAKEY_ENABLE = no # Audio control and System control(+450)
+CONSOLE_ENABLE = no # Console for debug(+400)
+COMMAND_ENABLE = no # Commands for debug and configuration
+NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+MIDI_ENABLE = no # MIDI controls
+AUDIO_ENABLE = no # Audio output on port C6
+UNICODE_ENABLE = no # Unicode
+BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
+RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.