summaryrefslogtreecommitdiffstats
path: root/keyboards/themadnoodle/noodlepad/keymaps
diff options
context:
space:
mode:
authorJesse Leventhal <45154268+jessel92@users.noreply.github.com>2020-06-03 19:25:59 -0400
committerGitHub <noreply@github.com>2020-06-04 00:25:59 +0100
commit6fc4f1eddd8df1841dd7b6c59943bc32580cee82 (patch)
tree6952b71468f5d83300fcae7998ba7d29ae4d54b6 /keyboards/themadnoodle/noodlepad/keymaps
parentbe73820f7bc4f03e3d095b694f31092187583ac7 (diff)
[keyboard] Add two new The Mad Noodle Keypads (#8934)
* Adding support for two new The Mad Noodle Keypads (Revised..Again) * Adding support for two new The Mad Noodle Keypads (Revised..Again) * Update keyboards/themadnoodle/ncc1701kbv2/ncc1701kbv2.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/noodlepad.h Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/ncc1701kbv2/rules.mk Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/rules.mk Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Requested Changes to all files * Revert "Requested Changes to all files" This reverts commit 7f6c708da8edf779664ccc80b8932cad3ad37bf3. * Update keyboards/themadnoodle/ncc1701kbv2/info.json Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/ncc1701kbv2/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/ncc1701kbv2/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/ncc1701kbv2/keymaps/default/keymap.c Co-Authored-By: Drashna Jaelre <drashna@live.com> * Update keyboards/themadnoodle/noodlepad/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/themadnoodle/ncc1701kbv2/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/themadnoodle/ncc1701kb/rules.mk Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/themadnoodle/ncc1701kbv2/keymaps/default/keymap.c Co-authored-by: Drashna Jaelre <drashna@live.com> * rework ncc1701kb v1 to vendor/keyboard/revision structure * rework ncc1701kb v2 to vendor/keyboard/revision structure * Update keyboards/themadnoodle/ncc1701kb/v2/rules.mk Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/themadnoodle/noodlepad/config.h Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/themadnoodle/noodlepad/info.json Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/themadnoodle/noodlepad/noodlepad.h Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * Update keyboards/themadnoodle/noodlepad/rules.mk Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> * checkedout folder and removed v1 as requested * Update keyboards/themadnoodle/noodlepad/config.h Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/themadnoodle/ncc1701kb/v2/config.h Co-authored-by: Joel Challis <git@zvecr.com> * Updated Noodle Pad Readme Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com> Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/themadnoodle/noodlepad/keymaps')
-rw-r--r--keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c83
1 files changed, 83 insertions, 0 deletions
diff --git a/keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c b/keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..e487c27262
--- /dev/null
+++ b/keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c
@@ -0,0 +1,83 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ /* LAYER 0
+ * ,-----------------------.
+ * | << | MUTE | >> | ENCODER - PRESS (MUTE) / KNOB (VOLUME CONTROL)
+ * |-------+-------+-------|
+ * | STOP | PLAY | MEDIA |
+ * |-------+-------+-------|
+ * | CALC | MAIL | PC/FN |
+ * `-----------------------'
+ */
+
+ [0] = LAYOUT_ortho_3x3(
+ KC_MPRV, LT(2, KC_MUTE), KC_MNXT,
+ KC_MSTP, KC_MPLY, KC_MSEL,
+ KC_CALC, KC_MAIL, LT(1, KC_MYCM)
+ ),
+
+
+ /* LAYER 1
+ * ,-----------------------.
+ * | MODE+ |RGB TOG| MODE- | ENCODER - PRESS (NA) / KNOB (Hue Control)
+ * |-------+-------+-------|
+ * | SPD- | SPD+ |Bright |
+ * |-------+-------+-------|
+ * | SAT+ | SAT- | |
+ * `-----------------------'
+ */
+
+ [1] = LAYOUT_ortho_3x3(
+ RGB_MOD, RGB_TOG, RGB_RMOD,
+ RGB_SPI, RGB_SPD, RGB_VAI,
+ RGB_SAI, RGB_SAD, KC_TRNS
+ ),
+
+
+ /* LAYER 2 (ENCODER)
+ * ,-----------------------.
+ * | | | | ENCODER - PRESS (NA) / KNOB (Arrow Left/Right)
+ * |-------+-------+-------|
+ * | | | |
+ * |-------+-------+-------|
+ * | | | |
+ * `-----------------------'
+ */
+
+ [2] = LAYOUT_ortho_3x3(
+ KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS
+ )
+
+};
+
+void encoder_update_user(uint8_t index, bool clockwise) {
+
+ switch (get_highest_layer(layer_state)) {
+ case 1:
+ if (clockwise) {
+ rgblight_increase_hue();
+ } else {
+ rgblight_decrease_hue();
+ }
+ break;
+ case 2:
+ if (clockwise) {
+ tap_code(KC_RGHT);
+ } else {
+ tap_code(KC_LEFT);
+ }
+ break;
+ default:
+ if (clockwise) {
+ tap_code(KC_VOLU);
+ } else {
+ tap_code(KC_VOLD);
+ }
+ break;
+
+ }
+}