summaryrefslogtreecommitdiff
path: root/keyboards/handwired/tritium_numpad/keymaps/blu
diff options
context:
space:
mode:
authorAgent Blu, 006 <blu006@ucr.edu>2019-06-24 23:11:51 -0700
committerDrashna Jaelre <drashna@live.com>2019-06-24 23:11:51 -0700
commit48b5903677b773940f1f92d9cb1bf278290fc075 (patch)
tree1da2c2119aeb468ae184ff83f313aae1539e72a7 /keyboards/handwired/tritium_numpad/keymaps/blu
parent1a2a54c326d0bb0dba899b3098487450d6d9dee6 (diff)
[Keyboard] Added 3d printable, handwired numpad by tritiumfusion (#6125)
* Added tritium_numpad Adding tritium numpad handwired 6x4 numpad design from thingiverse user tritiumfusion. * Updated readme with more tritiumfusion information * Changed spacing in readme * Changed blu keymap * Update keyboards/handwired/tritium_numpad/config.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/config.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/config.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/keymaps/max/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/tritium_numpad.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/tritium_numpad.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/tritium_numpad.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/keymaps/ortho_left/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/keymaps/ortho_right/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/handwired/tritium_numpad/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/handwired/tritium_numpad/rules.mk Co-Authored-By: fauxpark <fauxpark@gmail.com> * Update keyboards/handwired/tritium_numpad/readme.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Removed action_function(), function_id, and MODS_CTRL_MASK * Reformatted keymaps so that they look nicer. Removed hackey backslashes that were there for no reason whatsoever. * Update keyboards/handwired/tritium_numpad/readme.md Co-Authored-By: fauxpark <fauxpark@gmail.com> * Removed more backslashes * Added bootmagic to tritium_numpad
Diffstat (limited to 'keyboards/handwired/tritium_numpad/keymaps/blu')
-rw-r--r--keyboards/handwired/tritium_numpad/keymaps/blu/keymap.c40
-rw-r--r--keyboards/handwired/tritium_numpad/keymaps/blu/layers.json1
-rw-r--r--keyboards/handwired/tritium_numpad/keymaps/blu/readme.md13
3 files changed, 54 insertions, 0 deletions
diff --git a/keyboards/handwired/tritium_numpad/keymaps/blu/keymap.c b/keyboards/handwired/tritium_numpad/keymaps/blu/keymap.c
new file mode 100644
index 0000000000..958c17e428
--- /dev/null
+++ b/keyboards/handwired/tritium_numpad/keymaps/blu/keymap.c
@@ -0,0 +1,40 @@
+#include QMK_KEYBOARD_H
+
+void keyboard_pre_init_user(void)
+{
+ // Set layer LED as an output
+ setPinOutput(B0);
+}
+
+uint32_t layer_state_set_user(uint32_t state)
+{
+ // Switch layer LED accordingly
+ switch (biton32(state)) {
+ case 0:
+ writePinHigh(B0);
+ break;
+ case 1:
+ writePinLow(B0);
+ break;
+ }
+ return state;
+}
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT_ortho_6x4(
+ KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_P7, KC_P8, KC_P9, KC_PPLS,
+ KC_P4, KC_P5, KC_P6, KC_BSPC,
+ KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_P0, KC_UP, KC_PDOT, TT(1),
+ KC_LEFT, KC_DOWN, KC_RGHT, BL_STEP
+ ),
+ [1] = LAYOUT_ortho_6x4(
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_K, KC_NO, KC_NO,
+ KC_H, KC_NO, KC_L, KC_NO,
+ KC_NO, KC_J, KC_NO, KC_NO,
+ KC_LSFT, KC_Z, KC_X, KC_TRNS,
+ KC_NO, KC_NO, KC_NO, KC_NO
+ )
+};
diff --git a/keyboards/handwired/tritium_numpad/keymaps/blu/layers.json b/keyboards/handwired/tritium_numpad/keymaps/blu/layers.json
new file mode 100644
index 0000000000..5335c651fa
--- /dev/null
+++ b/keyboards/handwired/tritium_numpad/keymaps/blu/layers.json
@@ -0,0 +1 @@
+[["KC_NLCK", "KC_PSLS", "KC_PAST", "KC_PMNS", "KC_P7", "KC_P8", "KC_P9", "KC_PPLS", "KC_P4", "KC_P5", "KC_P6", "KC_BSPC", "KC_P1", "KC_P2", "KC_P3", "KC_PENT", "KC_P0", "KC_UP", "KC_PDOT", "TT(1)", "KC_LEFT", "KC_DOWN", "KC_RGHT", "BL_STEP"], ["KC_NO", "KC_NO", "KC_NO", "KC_NO", "KC_NO", "KC_K", "KC_NO", "KC_NO", "KC_H", "KC_NO", "KC_L", "KC_NO", "KC_NO", "KC_J", "KC_NO", "KC_NO", "KC_LSFT", "KC_Z", "KC_X", "KC_TRNS", "KC_NO", "KC_NO", "KC_NO", "KC_NO"]] \ No newline at end of file
diff --git a/keyboards/handwired/tritium_numpad/keymaps/blu/readme.md b/keyboards/handwired/tritium_numpad/keymaps/blu/readme.md
new file mode 100644
index 0000000000..fd07b155fb
--- /dev/null
+++ b/keyboards/handwired/tritium_numpad/keymaps/blu/readme.md
@@ -0,0 +1,13 @@
+# Generated Keymap Layout
+
+This layout was generated by the QMK API. You can find the JSON data used to
+generate this keymap in the file layers.json.
+
+To make use of this file you will need follow the following steps:
+
+* Download or Clone QMK Firmware: <https://github.com/qmk/qmk_firmware/>
+* Extract QMK Firmware to a location on your hard drive
+* Copy this folder into %s
+* You are now ready to compile or use your keymap with the source
+
+More information can be found in the QMK docs: <https://docs.qmk.fm> \ No newline at end of file