summaryrefslogtreecommitdiffstats
path: root/keyboards/obelus/keymaps
diff options
context:
space:
mode:
authorEthan Madden <maddene@madden.ninja>2017-06-08 13:24:37 -0700
committerJack Humbert <jack.humb@gmail.com>2017-09-25 19:36:44 -0400
commit692c4e7508e18d83baea230cdcaee28c3037df3b (patch)
tree381ef4ff08af2b1b21a87860e17ac33c0dc39e60 /keyboards/obelus/keymaps
parentf1c7b813aa7a09e2d3fdd46d373115d1e85f4c3e (diff)
Added Obelus
tearing it down so that it can be rebuilt fiddling with audio big default config overhaul apparently startup sounds work without the override now readme! readme fixes readme tweaking
Diffstat (limited to 'keyboards/obelus/keymaps')
-rw-r--r--keyboards/obelus/keymaps/default/Makefile21
-rw-r--r--keyboards/obelus/keymaps/default/config.h6
-rw-r--r--keyboards/obelus/keymaps/default/keymap.c116
-rw-r--r--keyboards/obelus/keymaps/default/readme.md1
4 files changed, 144 insertions, 0 deletions
diff --git a/keyboards/obelus/keymaps/default/Makefile b/keyboards/obelus/keymaps/default/Makefile
new file mode 100644
index 0000000000..c040297c7a
--- /dev/null
+++ b/keyboards/obelus/keymaps/default/Makefile
@@ -0,0 +1,21 @@
+# 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 = yes # Mouse keys(+4700)
+EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
+CONSOLE_ENABLE = no # Console for debug(+400)
+COMMAND_ENABLE = yes # 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 = yes # Enable keyboard backlight functionality
+MIDI_ENABLE = no # MIDI controls
+AUDIO_ENABLE = yes # 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. Do not enable this with audio at the same time.
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif
diff --git a/keyboards/obelus/keymaps/default/config.h b/keyboards/obelus/keymaps/default/config.h
new file mode 100644
index 0000000000..04bf9f4a9d
--- /dev/null
+++ b/keyboards/obelus/keymaps/default/config.h
@@ -0,0 +1,6 @@
+#ifndef CONFIG_USER_H
+#define CONFIG_USER_H
+
+#include "../../config.h"
+// Add overrides here
+#endif
diff --git a/keyboards/obelus/keymaps/default/keymap.c b/keyboards/obelus/keymaps/default/keymap.c
new file mode 100644
index 0000000000..a9b15e9347
--- /dev/null
+++ b/keyboards/obelus/keymaps/default/keymap.c
@@ -0,0 +1,116 @@
+#include "obelus.h"
+#include "action_layer.h"
+#ifdef AUDIO_ENABLE
+ #include "audio.h"
+#endif
+
+extern keymap_config_t keymap_config;
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ /* LAYERS
+ * ,-----------------------.
+ * | | | |RESET|
+ * |-----+-----+-----+-----|
+ * |MUSIC| | | |
+ * |-----+-----+-----+-----|
+ * |NUMPD| NAV |GAMES| |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * `---------------------- '
+ */
+[0] = KEYMAP( /* LAYER SELECT */
+ KC_TRNS, KC_TRNS, KC_TRNS, RESET, \
+ TO(4), KC_TRNS, KC_TRNS, KC_TRNS, \
+ TO(1), TO(2), TO(3), KC_TRNS, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \
+),
+ /* NUMPAD
+ * ,-----------------------.
+ * | 7 | 8 | 9 | * |
+ * |-----+-----+-----+-----|
+ * | 4 | 5 | 6 | - |
+ * |-----+-----+-----+-----|
+ * | 1 | 2 | 3 | + |
+ * |-----+-----+-----+-----|
+ * | 0 | . | / | = |
+ * `---------------------- '
+ */
+[1] = KEYMAP( /* NUMPAD */
+ KC_P7, KC_P8, KC_P9, KC_PAST, \
+ KC_P4, KC_P5, KC_P6, KC_PMNS, \
+ KC_P1, KC_P2, KC_P3, KC_PPLS, \
+ KC_P0, KC_PDOT, KC_PSLS, LT(5,KC_PENT) \
+),
+ /* NUMPAD SUPPLEMENT
+ * ,-----------------------.
+ * |NUMLK| | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * `---------------------- '
+ */
+[5] = KEYMAP( /* NUMPAD SUPPLEMENT */
+ KC_NLCK, KC_TRNS, KC_TRNS, TO(0), \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS \
+),
+ /* NAV
+ * ,-----------------------.
+ * | INS |PGUP | TAB |PRSCR|
+ * |-----+-----+-----+-----|
+ * | DEL |PGDN |VOLD |VOLU |
+ * |-----+-----+-----+-----|
+ * |HOME | UP | END | |
+ * |-----+-----+-----+-----|
+ * |LEFT |DOWN |RIGHT|ENTER|
+ * `---------------------- '
+ */
+[2] = KEYMAP( /* NAV CLUSTER */
+ KC_INS, KC_PGUP, KC_TAB, KC_PSCR, \
+ KC_DEL, KC_PGDN, KC_VOLD, KC_VOLU, \
+ KC_HOME, KC_UP, KC_END, TO(0), \
+ KC_LEFT, KC_DOWN, KC_RGHT, KC_ENT \
+),
+ /* GAMING
+ * ,-----------------------.
+ * | ESC | 1 | 2 | 3 |
+ * |-----+-----+-----+-----|
+ * | TAB | Q | W | E |
+ * |-----+-----+-----+-----|
+ * |SHIFT| A | S | D |
+ * |-----+-----+-----+-----|
+ * |CTRL | C | R |SPACE|
+ * `---------------------- '
+ */
+[3] = KEYMAP( /* GAMING */
+ LT(4, KC_ESC), KC_1, KC_2, KC_3, \
+ KC_TAB, KC_Q, KC_W, KC_E, \
+ KC_LSFT, KC_A, KC_S, KC_D, \
+ KC_LCTL, KC_C, KC_R, KC_SPC \
+),
+ /* MUSIC
+ * ,-----------------------.
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * | | | | |
+ * |-----+-----+-----+-----|
+ * |TOGGL|MODE | | |
+ * `---------------------- '
+ */
+[4] = KEYMAP( /* NUMPAD SUPPLEMENT */
+ KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, KC_NO, KC_NO, KC_NO, \
+ MU_TOG, MU_MOD, KC_NO, TO(0) \
+),
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ return true;
+}
diff --git a/keyboards/obelus/keymaps/default/readme.md b/keyboards/obelus/keymaps/default/readme.md
new file mode 100644
index 0000000000..bac51fc043
--- /dev/null
+++ b/keyboards/obelus/keymaps/default/readme.md
@@ -0,0 +1 @@
+# The default keymap for obelus \ No newline at end of file