Skip to content

Commit

Permalink
[Keyboard] Noodlepad Additions and Updates (qmk#22701)
Browse files Browse the repository at this point in the history
Co-authored-by: jack <0x6a73@protonmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
  • Loading branch information
3 people authored and itsjonny96 committed Jan 6, 2024
1 parent 9e6f1aa commit 497343f
Show file tree
Hide file tree
Showing 11 changed files with 223 additions and 170 deletions.
6 changes: 6 additions & 0 deletions keyboards/themadnoodle/noodlepad/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2023 Jesse Leventhal (@The=Mad-Noodle)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_SWIRL + 5
85 changes: 85 additions & 0 deletions keyboards/themadnoodle/noodlepad/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// Copyright 2023 The Mad Noodle(@the_mad_noodle)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

/* LAYER 0
* ,-------|ENCODER|-------.
* | << | MUTE | >> |
* |-------+-------+-------|
* | STOP | PLAY | MEDIA |
* |-------+-------+-------|
* | CALC | MY PC | TO(3) |
* `-----------------------'
*/

[0] = LAYOUT_ortho_3x3(
KC_MPRV, KC_MUTE, KC_MNXT,
KC_MSTP, KC_MPLY, KC_MSEL,
KC_CALC, KC_MYCM, TO(3)
),


/* LAYER 1
* ,-------|ENCODER|-------.
* | MODE+ |RGB TOG| MODE- |
* |-------+-------+-------|
* |Bright-| PLAIN |Bright+|
* |-------+-------+-------|
* | SWIRL |BREATH | TO(0) |
* `-----------------------'
*/

[1] = LAYOUT_ortho_3x3(
RGB_MOD, RGB_TOG, RGB_RMOD,
RGB_VAD, RGB_M_P, RGB_VAI,
RGB_M_SW, RGB_M_B, TO(0)
),


/* LAYER 2
* ,-------|ENCODER|-------.
* | | | |
* |-------+-------+-------|
* | | | |
* |-------+-------+-------|
* | | | TO(0) |
* `-----------------------'
*/

[2] = LAYOUT_ortho_3x3(
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, TO(0)
),


/* LAYER 3
* ,-------|ENCODER|-------.
* | | | |
* |-------+-------+-------|
* | TO(1) | | TO(2) |
* |-------+-------+-------|
* | | | TO(0) |
* `-----------------------'
*/

[3] = LAYOUT_ortho_3x3(
KC_TRNS, KC_TRNS, KC_TRNS,
TO(1), KC_TRNS, TO(2),
KC_TRNS, KC_TRNS, TO(0)
)

};

/*Encoder Mapping*/
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
[1] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI)},
[2] = { ENCODER_CCW_CW(RGB_SAD, RGB_SAI)},
[3] = { ENCODER_CCW_CW(KC_UP, KC_DOWN)},
};
#endif
2 changes: 2 additions & 0 deletions keyboards/themadnoodle/noodlepad/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ENCODER_MAP_ENABLE = yes
VIA_ENABLE = yes
43 changes: 23 additions & 20 deletions keyboards/themadnoodle/noodlepad/v1/info.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
{
"keyboard_name": "NoodlePad",
"url": "instagram.com/the_mad_noodle",
"maintainer": "The-Mad-Noodle",
"width": 3,
"height": 3,
"layouts": {
"LAYOUT_ortho_3x3": {
"layout": [
{"x":0, "y":0},
{"label":"Encoder", "x":1, "y":0},
{"x":2, "y":0},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2}
]
"manufacturer": "The Mad Noodle",
"keyboard_name": "NoodlePad v1",
"maintainer": "The-Mad-Noodle",
"url": "https://www.madnoodleprototypes.com/",
"ws2812": {
"pin": "B7"
},
"matrix_pins": {
"rows": ["D4", "D6", "D7"],
"cols": ["B4", "B5", "B6"]
},
"processor": "atmega32u4",
"usb": {
"device_version": "1.0.0",
"pid": "0x0001",
"vid": "0x6A6C"
},
"encoder": {
"rotary": [
{ "pin_a": "D0", "pin_b": "D1" }
]

}
}
}
}
32 changes: 21 additions & 11 deletions keyboards/themadnoodle/noodlepad/v1/readme.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
# Noodle Pad v1 Keypad with Encoder
# NoodlePad v.1

![NoodlePad TOP](https://static.wixstatic.com/media/59d0ff_052f27ee5ae84266821af7277c51c4ed~mv2.jpg)
![NoodlePad RGB](https://static.wixstatic.com/media/59d0ff_c91f2adc258547a38cc5b480a8d9c510~mv2.jpg)
![NoodPad v1](https://i.imgur.com/dmThaHq.jpg)

The Noodle Pad by The Mad Noodle Prototypes is a custom 3x3 mechanical keypad with an encoder knob and full RGB Underglow.
The Noodlepad v.1 is a 8 key macro keypad with a push button encoder knob.

* Keyboard Maintainer: [The Mad Noodle Prototypes](https://github.com/The-Mad-Noodle)
* Hardware Supported: NoodlePad PCB, ATmega32U4
* Hardware Availability: [MadNoodlePrototypes.com](https://www.madnoodleprototypes.com/shop)
* Keyboard Maintainer: [The Mad Noodle](https://github.com/The-Mad-Noodle)
* Hardware Supported: NoodlePad v.1 PCB
* Hardware Availability: https://www.madnoodleprototypes.com/shop

Make example for this keyboard (after setting up your build environment):

make themadnoodle/noodlepad:default
Compile example for this keyboard (after setting up your build environment):

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.
Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
qmk compile -kb themadnoodle/noodlepad/v1 -km default

Flashing example for this keyboard:

qmk flash -kb themadnoodle/noodlepad/v1 -km default

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. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

## Bootloader & Flashing


**Physical reset button**:

* Press the physical button located on the top left of the back of the PCB (Labeled RST) to enter Bootloader Mode
35 changes: 1 addition & 34 deletions keyboards/themadnoodle/noodlepad/v1/rules.mk
Original file line number Diff line number Diff line change
@@ -1,34 +1 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
# Teensy halfkay
# Pro Micro caterina
# Atmel DFU atmel-dfu
# LUFA DFU lufa-dfu
# QMK DFU qmk-dfu
# ATmega32A bootloadHID
# ATmega328P USBasp
BOOTLOADER = atmel-dfu

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
MIDI_ENABLE = no # MIDI controls
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
AUDIO_ENABLE = no # Audio output on port C6
UNICODE_ENABLE = yes # Unicode
API_SYSEX_ENABLE = yes
TAP_DANCE_ENABLE = no
ENCODER_ENABLE = yes
#this file was left intentionally blank
42 changes: 22 additions & 20 deletions keyboards/themadnoodle/noodlepad/v2/info.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
{
"keyboard_name": "NoodlePad",
"url": "instagram.com/the_mad_noodle",
"maintainer": "The-Mad-Noodle",
"width": 3,
"height": 3,
"layouts": {
"LAYOUT_ortho_3x3": {
"layout": [
{"x":0, "y":0},
{"label":"Encoder", "x":1, "y":0},
{"x":2, "y":0},
{"x":0, "y":1},
{"x":1, "y":1},
{"x":2, "y":1},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2}
]
"manufacturer": "The Mad Noodle",
"keyboard_name": "NoodlePad v2",
"maintainer": "The-Mad-Noodle",
"url": "https://www.madnoodleprototypes.com/",
"ws2812": {
"pin": "B7"
},
"matrix_pins": {
"cols": ["F0", "B5", "B6"],
"rows": ["F1", "D6", "D7"]
},
"usb": {
"device_version": "2.0.0",
"pid": "0x0002",
"vid": "0x6A6C"
},
"encoder": {
"rotary": [
{ "pin_a": "D0", "pin_b": "D1" }
]

}
}
}
}
80 changes: 40 additions & 40 deletions keyboards/themadnoodle/noodlepad/v2/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// Copyright 2023 The Mad Noodle(@the_mad_noodle)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

/* LAYER 0
* ,-----------------------.
* | << | MUTE | >> | ENCODER - PRESS (MUTE) / KNOB (VOLUME CONTROL)
* ,-------|ENCODER|-------.
* | << | MUTE | >> |
* |-------+-------+-------|
* | STOP | PLAY | MEDIA |
* |-------+-------+-------|
Expand All @@ -20,25 +23,25 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {


/* LAYER 1
* ,-----------------------.
* | MODE+ |RGB TOG| MODE- | ENCODER - PRESS (NA) / KNOB (Hue Control)
* ,-------|ENCODER|-------.
* | MODE+ |RGB TOG| MODE- |
* |-------+-------+-------|
* | SPD- | SPD+ |Bright |
* |Bright-| PLAIN |Bright+|
* |-------+-------+-------|
* | SAT+ | SAT- | |
* | SWIRL |BREATH | |
* `-----------------------'
*/

[1] = LAYOUT_ortho_3x3(
RGB_MOD, RGB_TOG, RGB_RMOD,
RGB_SPI, RGB_SPD, RGB_VAI,
RGB_SAI, RGB_SAD, KC_TRNS
RGB_VAD, RGB_M_P, RGB_VAI,
LT(3,RGB_M_SW), RGB_M_B, KC_TRNS
),


/* LAYER 2 (ENCODER)
* ,-----------------------.
* | | | | ENCODER - PRESS (NA) / KNOB (Arrow Left/Right)
/* LAYER 2
* ,-------|ENCODER|-------.
* | | | |
* |-------+-------+-------|
* | | | |
* |-------+-------+-------|
Expand All @@ -47,39 +50,36 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/

[2] = LAYOUT_ortho_3x3(
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS
),


/* LAYER 3
* ,-------|ENCODER|-------.
* | | | |
* |-------+-------+-------|
* | | | |
* |-------+-------+-------|
* | | | |
* `-----------------------'
*/

[3] = LAYOUT_ortho_3x3(
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS
)

};

bool 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;

}
return false;

}
/*Encoder Mapping*/
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[1] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI) },
[2] = { ENCODER_CCW_CW(KC_LEFT, KC_RGHT) },
[3] = { ENCODER_CCW_CW(RGB_SAD, RGB_SAI) },
};
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ENCODER_MAP_ENABLE = yes
Loading

0 comments on commit 497343f

Please sign in to comment.