diff options
| author | Jesse Leventhal <45154268+jessel92@users.noreply.github.com> | 2020-06-03 19:25:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-04 00:25:59 +0100 |
| commit | 6fc4f1eddd8df1841dd7b6c59943bc32580cee82 (patch) | |
| tree | 6952b71468f5d83300fcae7998ba7d29ae4d54b6 /keyboards/themadnoodle | |
| parent | be73820f7bc4f03e3d095b694f31092187583ac7 (diff) | |
| download | qmk_firmware-6fc4f1eddd8df1841dd7b6c59943bc32580cee82.tar.gz qmk_firmware-6fc4f1eddd8df1841dd7b6c59943bc32580cee82.zip | |
[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')
| -rw-r--r-- | keyboards/themadnoodle/ncc1701kb/v2/config.h | 50 | ||||
| -rw-r--r-- | keyboards/themadnoodle/ncc1701kb/v2/info.json | 22 | ||||
| -rw-r--r-- | keyboards/themadnoodle/ncc1701kb/v2/keymaps/default/keymap.c | 83 | ||||
| -rw-r--r-- | keyboards/themadnoodle/ncc1701kb/v2/readme.md | 17 | ||||
| -rw-r--r-- | keyboards/themadnoodle/ncc1701kb/v2/rules.mk | 34 | ||||
| -rw-r--r-- | keyboards/themadnoodle/ncc1701kb/v2/v2.c | 1 | ||||
| -rw-r--r-- | keyboards/themadnoodle/ncc1701kb/v2/v2.h | 32 | ||||
| -rw-r--r-- | keyboards/themadnoodle/noodlepad/config.h | 50 | ||||
| -rw-r--r-- | keyboards/themadnoodle/noodlepad/info.json | 22 | ||||
| -rw-r--r-- | keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c | 83 | ||||
| -rw-r--r-- | keyboards/themadnoodle/noodlepad/noodlepad.c | 1 | ||||
| -rw-r--r-- | keyboards/themadnoodle/noodlepad/noodlepad.h | 31 | ||||
| -rw-r--r-- | keyboards/themadnoodle/noodlepad/readme.md | 17 | ||||
| -rw-r--r-- | keyboards/themadnoodle/noodlepad/rules.mk | 34 |
14 files changed, 477 insertions, 0 deletions
diff --git a/keyboards/themadnoodle/ncc1701kb/v2/config.h b/keyboards/themadnoodle/ncc1701kb/v2/config.h new file mode 100644 index 000000000..6e19eeddd --- /dev/null +++ b/keyboards/themadnoodle/ncc1701kb/v2/config.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 The Mad Noodle (Jesse Leventhal) | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xFEED | ||
| 24 | #define PRODUCT_ID 0x1701 | ||
| 25 | #define DEVICE_VER 0x0002 | ||
| 26 | #define MANUFACTURER The Mad Noodle | ||
| 27 | #define PRODUCT NCC1701KB v2 | ||
| 28 | #define DESCRIPTION NCC1701KB v2 macro keypad | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 3 | ||
| 32 | #define MATRIX_COLS 3 | ||
| 33 | |||
| 34 | /* NCC-1701-KB PCB default pin-out */ | ||
| 35 | #define MATRIX_ROW_PINS { D4, D6, D7 } | ||
| 36 | #define MATRIX_COL_PINS { B4, B5, B6 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | /* RGB BackLight */ | ||
| 40 | #define RGB_DI_PIN B7 | ||
| 41 | #define RGBLED_NUM 4 | ||
| 42 | #define RGBLIGHT_SLEEP | ||
| 43 | #define RGBLIGHT_ANIMATIONS | ||
| 44 | /*Encoders */ | ||
| 45 | #define ENCODERS_PAD_A { D0 } | ||
| 46 | #define ENCODERS_PAD_B { D1 } | ||
| 47 | |||
| 48 | |||
| 49 | /* COL2ROW or ROW2COL */ | ||
| 50 | #define DIODE_DIRECTION ROW2COL | ||
diff --git a/keyboards/themadnoodle/ncc1701kb/v2/info.json b/keyboards/themadnoodle/ncc1701kb/v2/info.json new file mode 100644 index 000000000..b0b82d532 --- /dev/null +++ b/keyboards/themadnoodle/ncc1701kb/v2/info.json | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "NCC-1701-KB v2", | ||
| 3 | "url": "instagram.com/the_mad_noodle", | ||
| 4 | "maintainer": "The-Mad-Noodle", | ||
| 5 | "width": 3, | ||
| 6 | "height": 3, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ortho_3x3": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0}, | ||
| 11 | {"label":"Encoder", "x":1, "y":0}, | ||
| 12 | {"x":2, "y":0}, | ||
| 13 | {"x":0, "y":1}, | ||
| 14 | {"x":1, "y":1}, | ||
| 15 | {"x":2, "y":1}, | ||
| 16 | {"x":0, "y":2}, | ||
| 17 | {"x":1, "y":2}, | ||
| 18 | {"x":2, "y":2} | ||
| 19 | ] | ||
| 20 | } | ||
| 21 | } | ||
| 22 | } | ||
diff --git a/keyboards/themadnoodle/ncc1701kb/v2/keymaps/default/keymap.c b/keyboards/themadnoodle/ncc1701kb/v2/keymaps/default/keymap.c new file mode 100644 index 000000000..486db5070 --- /dev/null +++ b/keyboards/themadnoodle/ncc1701kb/v2/keymaps/default/keymap.c | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | |||
| 5 | /* LAYER 0 | ||
| 6 | * ,-----------------------. | ||
| 7 | * | << | MUTE | >> | ENCODER - PRESS (MUTE) / HOLD (LAYER 2) / KNOB (VOLUME CONTROL) | ||
| 8 | * |-------+-------+-------| | ||
| 9 | * | STOP | PLAY | MEDIA | | ||
| 10 | * |-------+-------+-------| | ||
| 11 | * | CALC | MAIL | PC/FN | | ||
| 12 | * `-----------------------' | ||
| 13 | */ | ||
| 14 | |||
| 15 | [0] = LAYOUT_ortho_3x3( | ||
| 16 | KC_MPRV, LT(2, KC_MUTE), KC_MNXT, | ||
| 17 | KC_MSTP, KC_MPLY, KC_MSEL, | ||
| 18 | KC_CALC, KC_MAIL, LT(1, KC_MYCM) | ||
| 19 | ), | ||
| 20 | |||
| 21 | |||
| 22 | /* LAYER 1 | ||
| 23 | * ,-----------------------. | ||
| 24 | * | MODE+ |RGB TOG| MODE- | ENCODER - PRESS (NA) / KNOB (Hue Control) | ||
| 25 | * |-------+-------+-------| | ||
| 26 | * | SPD- | SPD+ |Bright | | ||
| 27 | * |-------+-------+-------| | ||
| 28 | * | SAT+ | SAT- | | | ||
| 29 | * `-----------------------' | ||
| 30 | */ | ||
| 31 | |||
| 32 | [1] = LAYOUT_ortho_3x3( | ||
| 33 | RGB_MOD, RGB_TOG, RGB_RMOD, | ||
| 34 | RGB_SPI, RGB_SPD, RGB_VAI, | ||
| 35 | RGB_SAI, RGB_SAD, KC_TRNS | ||
| 36 | ), | ||
| 37 | |||
| 38 | |||
| 39 | /* LAYER 2 (ENCODER) | ||
| 40 | * ,-----------------------. | ||
| 41 | * | | | | ENCODER - PRESS (NA) / KNOB (Arrow Left/Right) | ||
| 42 | * |-------+-------+-------| | ||
| 43 | * | | | | | ||
| 44 | * |-------+-------+-------| | ||
| 45 | * | | | | | ||
| 46 | * `-----------------------' | ||
| 47 | */ | ||
| 48 | |||
| 49 | [2] = LAYOUT_ortho_3x3( | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 51 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 52 | KC_TRNS, KC_TRNS, KC_TRNS | ||
| 53 | ) | ||
| 54 | |||
| 55 | }; | ||
| 56 | |||
| 57 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 58 | |||
| 59 | switch (get_highest_layer(layer_state)) { | ||
| 60 | case 1: | ||
| 61 | if (clockwise) { | ||
| 62 | rgblight_increase_hue(); | ||
| 63 | } else { | ||
| 64 | rgblight_decrease_hue(); | ||
| 65 | } | ||
| 66 | break; | ||
| 67 | case 2: | ||
| 68 | if (clockwise) { | ||
| 69 | tap_code(KC_RGHT); | ||
| 70 | } else { | ||
| 71 | tap_code(KC_LEFT); | ||
| 72 | } | ||
| 73 | break; | ||
| 74 | default: | ||
| 75 | if (clockwise) { | ||
| 76 | tap_code(KC_VOLU); | ||
| 77 | } else { | ||
| 78 | tap_code(KC_VOLD); | ||
| 79 | } | ||
| 80 | break; | ||
| 81 | |||
| 82 | } | ||
| 83 | } | ||
diff --git a/keyboards/themadnoodle/ncc1701kb/v2/readme.md b/keyboards/themadnoodle/ncc1701kb/v2/readme.md new file mode 100644 index 000000000..4e70dd342 --- /dev/null +++ b/keyboards/themadnoodle/ncc1701kb/v2/readme.md | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # NCC-1701-KB v2 Keypad with Encoder | ||
| 2 | |||
| 3 |  | ||
| 4 |  | ||
| 5 | |||
| 6 | The NCC-1701-KB v2 by The Mad Noodle Prototypes is a custom Star Trek inspired 3x3 mechanical keypad with an encoder knob and full RGB Underglow. | ||
| 7 | |||
| 8 | * Keyboard Maintainer: [The Mad Noodle Prototypes](https://github.com/The-Mad-Noodle) | ||
| 9 | * Hardware Supported: NCC-1701-KB v2 PCB, ATmega32U4 | ||
| 10 | * Hardware Availability: [MadNoodlePrototypes.com](https://www.madnoodleprototypes.com/shop) | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make themadnoodle/ncc1701kb/v2:default | ||
| 15 | |||
| 16 | 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. | ||
| 17 | Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/themadnoodle/ncc1701kb/v2/rules.mk b/keyboards/themadnoodle/ncc1701kb/v2/rules.mk new file mode 100644 index 000000000..960f1d7a6 --- /dev/null +++ b/keyboards/themadnoodle/ncc1701kb/v2/rules.mk | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 27 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 28 | MIDI_ENABLE = no # MIDI controls | ||
| 29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 31 | UNICODE_ENABLE = yes # Unicode | ||
| 32 | API_SYSEX_ENABLE = yes | ||
| 33 | TAP_DANCE_ENABLE = no | ||
| 34 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/themadnoodle/ncc1701kb/v2/v2.c b/keyboards/themadnoodle/ncc1701kb/v2/v2.c new file mode 100644 index 000000000..caf7c6f0f --- /dev/null +++ b/keyboards/themadnoodle/ncc1701kb/v2/v2.c | |||
| @@ -0,0 +1 @@ | |||
| #include "v2.h" | |||
diff --git a/keyboards/themadnoodle/ncc1701kb/v2/v2.h b/keyboards/themadnoodle/ncc1701kb/v2/v2.h new file mode 100644 index 000000000..5d3b65be5 --- /dev/null +++ b/keyboards/themadnoodle/ncc1701kb/v2/v2.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2020 The Mad Noodle (Jesse Leventhal) | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | #define LAYOUT_ortho_3x3( \ | ||
| 23 | k00, k01, k02, \ | ||
| 24 | k10, k11, k12, \ | ||
| 25 | k20, k21, k22 \ | ||
| 26 | ) \ | ||
| 27 | { \ | ||
| 28 | { k00, k01, k02 }, \ | ||
| 29 | { k10, k11, k12 }, \ | ||
| 30 | { k20, k21, k22 } \ | ||
| 31 | } | ||
| 32 | |||
diff --git a/keyboards/themadnoodle/noodlepad/config.h b/keyboards/themadnoodle/noodlepad/config.h new file mode 100644 index 000000000..0b1d723e0 --- /dev/null +++ b/keyboards/themadnoodle/noodlepad/config.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 The Mad Noodle (Jesse Leventhal) | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xFEED | ||
| 24 | #define PRODUCT_ID 0x1701 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER The Mad Noodle | ||
| 27 | #define PRODUCT Noodle Pad v1 | ||
| 28 | #define DESCRIPTION Noodle Pad macro keypad | ||
| 29 | |||
| 30 | /* key matrix size */ | ||
| 31 | #define MATRIX_ROWS 3 | ||
| 32 | #define MATRIX_COLS 3 | ||
| 33 | |||
| 34 | /* NCC-1701-KB PCB default pin-out */ | ||
| 35 | #define MATRIX_ROW_PINS { D4, D6, D7 } | ||
| 36 | #define MATRIX_COL_PINS { B4, B5, B6 } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | /* RGB BackLight */ | ||
| 40 | #define RGB_DI_PIN B7 | ||
| 41 | #define RGBLED_NUM 4 | ||
| 42 | #define RGBLIGHT_SLEEP | ||
| 43 | #define RGBLIGHT_ANIMATIONS | ||
| 44 | /*Encoders */ | ||
| 45 | #define ENCODERS_PAD_A { D0 } | ||
| 46 | #define ENCODERS_PAD_B { D1 } | ||
| 47 | |||
| 48 | |||
| 49 | /* COL2ROW or ROW2COL */ | ||
| 50 | #define DIODE_DIRECTION ROW2COL | ||
diff --git a/keyboards/themadnoodle/noodlepad/info.json b/keyboards/themadnoodle/noodlepad/info.json new file mode 100644 index 000000000..9e75cb635 --- /dev/null +++ b/keyboards/themadnoodle/noodlepad/info.json | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "NoodlePad", | ||
| 3 | "url": "instagram.com/the_mad_noodle", | ||
| 4 | "maintainer": "The-Mad-Noodle", | ||
| 5 | "width": 3, | ||
| 6 | "height": 3, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ortho_3x3": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0}, | ||
| 11 | {"label":"Encoder", "x":1, "y":0}, | ||
| 12 | {"x":2, "y":0}, | ||
| 13 | {"x":0, "y":1}, | ||
| 14 | {"x":1, "y":1}, | ||
| 15 | {"x":2, "y":1}, | ||
| 16 | {"x":0, "y":2}, | ||
| 17 | {"x":1, "y":2}, | ||
| 18 | {"x":2, "y":2} | ||
| 19 | ] | ||
| 20 | } | ||
| 21 | } | ||
| 22 | } | ||
diff --git a/keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c b/keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c new file mode 100644 index 000000000..e487c2726 --- /dev/null +++ b/keyboards/themadnoodle/noodlepad/keymaps/default/keymap.c | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 4 | |||
| 5 | /* LAYER 0 | ||
| 6 | * ,-----------------------. | ||
| 7 | * | << | MUTE | >> | ENCODER - PRESS (MUTE) / KNOB (VOLUME CONTROL) | ||
| 8 | * |-------+-------+-------| | ||
| 9 | * | STOP | PLAY | MEDIA | | ||
| 10 | * |-------+-------+-------| | ||
| 11 | * | CALC | MAIL | PC/FN | | ||
| 12 | * `-----------------------' | ||
| 13 | */ | ||
| 14 | |||
| 15 | [0] = LAYOUT_ortho_3x3( | ||
| 16 | KC_MPRV, LT(2, KC_MUTE), KC_MNXT, | ||
| 17 | KC_MSTP, KC_MPLY, KC_MSEL, | ||
| 18 | KC_CALC, KC_MAIL, LT(1, KC_MYCM) | ||
| 19 | ), | ||
| 20 | |||
| 21 | |||
| 22 | /* LAYER 1 | ||
| 23 | * ,-----------------------. | ||
| 24 | * | MODE+ |RGB TOG| MODE- | ENCODER - PRESS (NA) / KNOB (Hue Control) | ||
| 25 | * |-------+-------+-------| | ||
| 26 | * | SPD- | SPD+ |Bright | | ||
| 27 | * |-------+-------+-------| | ||
| 28 | * | SAT+ | SAT- | | | ||
| 29 | * `-----------------------' | ||
| 30 | */ | ||
| 31 | |||
| 32 | [1] = LAYOUT_ortho_3x3( | ||
| 33 | RGB_MOD, RGB_TOG, RGB_RMOD, | ||
| 34 | RGB_SPI, RGB_SPD, RGB_VAI, | ||
| 35 | RGB_SAI, RGB_SAD, KC_TRNS | ||
| 36 | ), | ||
| 37 | |||
| 38 | |||
| 39 | /* LAYER 2 (ENCODER) | ||
| 40 | * ,-----------------------. | ||
| 41 | * | | | | ENCODER - PRESS (NA) / KNOB (Arrow Left/Right) | ||
| 42 | * |-------+-------+-------| | ||
| 43 | * | | | | | ||
| 44 | * |-------+-------+-------| | ||
| 45 | * | | | | | ||
| 46 | * `-----------------------' | ||
| 47 | */ | ||
| 48 | |||
| 49 | [2] = LAYOUT_ortho_3x3( | ||
| 50 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 51 | KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 52 | KC_TRNS, KC_TRNS, KC_TRNS | ||
| 53 | ) | ||
| 54 | |||
| 55 | }; | ||
| 56 | |||
| 57 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 58 | |||
| 59 | switch (get_highest_layer(layer_state)) { | ||
| 60 | case 1: | ||
| 61 | if (clockwise) { | ||
| 62 | rgblight_increase_hue(); | ||
| 63 | } else { | ||
| 64 | rgblight_decrease_hue(); | ||
| 65 | } | ||
| 66 | break; | ||
| 67 | case 2: | ||
| 68 | if (clockwise) { | ||
| 69 | tap_code(KC_RGHT); | ||
| 70 | } else { | ||
| 71 | tap_code(KC_LEFT); | ||
| 72 | } | ||
| 73 | break; | ||
| 74 | default: | ||
| 75 | if (clockwise) { | ||
| 76 | tap_code(KC_VOLU); | ||
| 77 | } else { | ||
| 78 | tap_code(KC_VOLD); | ||
| 79 | } | ||
| 80 | break; | ||
| 81 | |||
| 82 | } | ||
| 83 | } | ||
diff --git a/keyboards/themadnoodle/noodlepad/noodlepad.c b/keyboards/themadnoodle/noodlepad/noodlepad.c new file mode 100644 index 000000000..afabf7862 --- /dev/null +++ b/keyboards/themadnoodle/noodlepad/noodlepad.c | |||
| @@ -0,0 +1 @@ | |||
| #include "noodlepad.h" | |||
diff --git a/keyboards/themadnoodle/noodlepad/noodlepad.h b/keyboards/themadnoodle/noodlepad/noodlepad.h new file mode 100644 index 000000000..e1aa5d2a6 --- /dev/null +++ b/keyboards/themadnoodle/noodlepad/noodlepad.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* Copyright 2020 The Mad Noodle (Jesse Leventhal) | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | #define LAYOUT_ortho_3x3( \ | ||
| 23 | k00, k01, k02, \ | ||
| 24 | k10, k11, k12, \ | ||
| 25 | k20, k21, k22 \ | ||
| 26 | ) \ | ||
| 27 | { \ | ||
| 28 | { k00, k01, k02 }, \ | ||
| 29 | { k10, k11, k12 }, \ | ||
| 30 | { k20, k21, k22 } \ | ||
| 31 | } | ||
diff --git a/keyboards/themadnoodle/noodlepad/readme.md b/keyboards/themadnoodle/noodlepad/readme.md new file mode 100644 index 000000000..e4439dac4 --- /dev/null +++ b/keyboards/themadnoodle/noodlepad/readme.md | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | # Noodle Pad v1 Keypad with Encoder | ||
| 2 | |||
| 3 |  | ||
| 4 |  | ||
| 5 | |||
| 6 | The Noodle Pad by The Mad Noodle Prototypes is a custom 3x3 mechanical keypad with an encoder knob and full RGB Underglow. | ||
| 7 | |||
| 8 | * Keyboard Maintainer: [The Mad Noodle Prototypes](https://github.com/The-Mad-Noodle) | ||
| 9 | * Hardware Supported: NoodlePad PCB, ATmega32U4 | ||
| 10 | * Hardware Availability: [MadNoodlePrototypes.com](https://www.madnoodleprototypes.com/shop) | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make themadnoodle/noodlepad:default | ||
| 15 | |||
| 16 | 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. | ||
| 17 | Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/themadnoodle/noodlepad/rules.mk b/keyboards/themadnoodle/noodlepad/rules.mk new file mode 100644 index 000000000..960f1d7a6 --- /dev/null +++ b/keyboards/themadnoodle/noodlepad/rules.mk | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | # Teensy halfkay | ||
| 6 | # Pro Micro caterina | ||
| 7 | # Atmel DFU atmel-dfu | ||
| 8 | # LUFA DFU lufa-dfu | ||
| 9 | # QMK DFU qmk-dfu | ||
| 10 | # ATmega32A bootloadHID | ||
| 11 | # ATmega328P USBasp | ||
| 12 | BOOTLOADER = atmel-dfu | ||
| 13 | |||
| 14 | # Build Options | ||
| 15 | # change yes to no to disable | ||
| 16 | # | ||
| 17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 20 | CONSOLE_ENABLE = no # Console for debug | ||
| 21 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 25 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 26 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 27 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 28 | MIDI_ENABLE = no # MIDI controls | ||
| 29 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 30 | AUDIO_ENABLE = no # Audio output on port C6 | ||
| 31 | UNICODE_ENABLE = yes # Unicode | ||
| 32 | API_SYSEX_ENABLE = yes | ||
| 33 | TAP_DANCE_ENABLE = no | ||
| 34 | ENCODER_ENABLE = yes | ||
