summaryrefslogtreecommitdiffstats
path: root/keyboards/9key/keymaps/default
diff options
context:
space:
mode:
authorCory Shaw <cory.shaw.dev@gmail.com>2017-08-22 21:26:45 -0400
committerJack Humbert <jack.humb@gmail.com>2017-08-22 23:09:12 -0400
commitd8fd33dd5e6ea43cbffc2a512db7a2ac2419b435 (patch)
tree6be3cf112a0a7f98c896a2af7913f1941e224605 /keyboards/9key/keymaps/default
parentbd484f18bd6092a3c3cb489cc0798904f187a64f (diff)
Add support for 9key by Bishop Keyboards
Diffstat (limited to 'keyboards/9key/keymaps/default')
-rw-r--r--keyboards/9key/keymaps/default/Makefile3
-rw-r--r--keyboards/9key/keymaps/default/keymap.c47
2 files changed, 50 insertions, 0 deletions
diff --git a/keyboards/9key/keymaps/default/Makefile b/keyboards/9key/keymaps/default/Makefile
new file mode 100644
index 0000000000..457a3d01d4
--- /dev/null
+++ b/keyboards/9key/keymaps/default/Makefile
@@ -0,0 +1,3 @@
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif
diff --git a/keyboards/9key/keymaps/default/keymap.c b/keyboards/9key/keymaps/default/keymap.c
new file mode 100644
index 0000000000..23364e8537
--- /dev/null
+++ b/keyboards/9key/keymaps/default/keymap.c
@@ -0,0 +1,47 @@
+#include "9key.h"
+
+// Tap Dance Declarations
+enum {
+ ENT_5 = 0
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+/* LAYER 0
+ * ,-----------------.
+ * | 1 | 2 | 3 |
+ * |-----+-----+-----|
+ * | 4 |5/ENT| 6 | Dbl Tap 5 for Enter
+ * |-----+-----+-----|
+ * | 7 | 8 | FN |
+ * `-----------------'
+ */
+[0] = KEYMAP( \
+ KC_1, KC_2, KC_3, \
+ KC_4, TD(ENT_5), KC_6, \
+ KC_7, KC_8, MO(1) \
+),
+
+/* LAYER 1
+ * ,-----------------.
+ * | 9 | 0 | - |
+ * |-----+-----+-----|
+ * | + | * | / |
+ * |-----+-----+-----|
+ * | F1 | F2 | |
+ * `-----------------'
+ */
+[1] = KEYMAP( \
+ KC_9, KC_0, KC_MINS, \
+ KC_PLUS, KC_ASTR, KC_SLSH, \
+ KC_F1, KC_F2, KC_TRNS \
+)
+
+};
+
+qk_tap_dance_action_t tap_dance_actions[] = {
+ [ENT_5] = ACTION_TAP_DANCE_DOUBLE(KC_5, KC_ENT)
+};
+
+void matrix_init_user(void) {
+} \ No newline at end of file