From 526c6b4906e6b143128bee61200c2390b0b517ff Mon Sep 17 00:00:00 2001 From: Danny Date: Mon, 24 Jul 2023 22:46:03 -0400 Subject: Add Nyquistpad (#21578) Co-authored-by: jack <0x6a73@protonmail.com> Co-authored-by: Ryan --- keyboards/keebio/nyquistpad/config.h | 13 ++ keyboards/keebio/nyquistpad/info.json | 161 +++++++++++++++++++++ .../keebio/nyquistpad/keymaps/default/keymap.c | 30 ++++ keyboards/keebio/nyquistpad/keymaps/via/keymap.c | 30 ++++ keyboards/keebio/nyquistpad/keymaps/via/rules.mk | 2 + keyboards/keebio/nyquistpad/readme.md | 25 ++++ keyboards/keebio/nyquistpad/rules.mk | 1 + 7 files changed, 262 insertions(+) create mode 100644 keyboards/keebio/nyquistpad/config.h create mode 100644 keyboards/keebio/nyquistpad/info.json create mode 100644 keyboards/keebio/nyquistpad/keymaps/default/keymap.c create mode 100644 keyboards/keebio/nyquistpad/keymaps/via/keymap.c create mode 100644 keyboards/keebio/nyquistpad/keymaps/via/rules.mk create mode 100644 keyboards/keebio/nyquistpad/readme.md create mode 100644 keyboards/keebio/nyquistpad/rules.mk (limited to 'keyboards') diff --git a/keyboards/keebio/nyquistpad/config.h b/keyboards/keebio/nyquistpad/config.h new file mode 100644 index 0000000000..82a64e39bf --- /dev/null +++ b/keyboards/keebio/nyquistpad/config.h @@ -0,0 +1,13 @@ +// Copyright 2023 Danny Nguyen (danny@keeb.io) +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET +#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 1000U + +// RGB Matrix +#define RGB_MATRIX_LED_COUNT 36 +#define RGB_DISABLE_WHEN_USB_SUSPENDED +#define RGB_MATRIX_FRAMEBUFFER_EFFECTS +#define RGB_MATRIX_KEYPRESSES diff --git a/keyboards/keebio/nyquistpad/info.json b/keyboards/keebio/nyquistpad/info.json new file mode 100644 index 0000000000..2e077caed3 --- /dev/null +++ b/keyboards/keebio/nyquistpad/info.json @@ -0,0 +1,161 @@ +{ + "manufacturer": "Keebio", + "url": "https://keeb.io", + "maintainer": "nooges", + "keyboard_name": "Nyquistpad", + "usb": { + "vid": "0xCB10", + "pid": "0x1356", + "device_version": "1.0.0" + }, + "processor": "RP2040", + "bootloader": "rp2040", + "diode_direction": "COL2ROW", + "features": { + "bootmagic": true, + "extrakey": true, + "mousekey": true, + "rgb_matrix": true + }, + "matrix_pins": { + "cols": ["GP29", "GP22", "GP0", "GP3", "GP11", "GP6"], + "rows": ["GP2", "GP1", "GP17", "GP25", "GP24"] + }, + "encoder": { + "enabled": true, + "rotary": [ + {"pin_a": "GP26", "pin_b": "GP27" } + ] + }, + "ws2812": { + "driver": "vendor", + "pin": "GP28" + }, + + "layouts": { + "LAYOUT": { + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0}, + {"matrix": [0, 1], "x": 1, "y": 0}, + {"matrix": [0, 2], "x": 2, "y": 0}, + {"matrix": [0, 3], "x": 3, "y": 0}, + {"matrix": [0, 4], "x": 4, "y": 0}, + {"matrix": [0, 5], "x": 5, "y": 0}, + {"matrix": [1, 0], "x": 0, "y": 1}, + {"matrix": [1, 1], "x": 1, "y": 1}, + {"matrix": [1, 2], "x": 2, "y": 1}, + {"matrix": [1, 3], "x": 3, "y": 1}, + {"matrix": [1, 4], "x": 4, "y": 1}, + {"matrix": [1, 5], "x": 5, "y": 1}, + {"matrix": [2, 0], "x": 0, "y": 2}, + {"matrix": [2, 1], "x": 1, "y": 2}, + {"matrix": [2, 2], "x": 2, "y": 2}, + {"matrix": [2, 3], "x": 3, "y": 2}, + {"matrix": [2, 4], "x": 4, "y": 2}, + {"matrix": [2, 5], "x": 5, "y": 2}, + {"matrix": [3, 0], "x": 0, "y": 3}, + {"matrix": [3, 1], "x": 1, "y": 3}, + {"matrix": [3, 2], "x": 2, "y": 3}, + {"matrix": [3, 3], "x": 3, "y": 3}, + {"matrix": [3, 4], "x": 4, "y": 3}, + {"matrix": [3, 5], "x": 5, "y": 3}, + {"matrix": [4, 0], "x": 0, "y": 4}, + {"matrix": [4, 1], "x": 1, "y": 4}, + {"matrix": [4, 2], "x": 2, "y": 4}, + {"matrix": [4, 3], "x": 3, "y": 4}, + {"matrix": [4, 4], "x": 4, "y": 4}, + {"matrix": [4, 5], "x": 5, "y": 4} + ] + } + }, + "rgb_matrix": { + "driver": "WS2812", + "animations": { + "alphas_mods": true, + "gradient_up_down": true, + "gradient_left_right": true, + "breathing": true, + "band_sat": true, + "band_val": true, + "band_pinwheel_sat": true, + "band_pinwheel_val": true, + "band_spiral_sat": true, + "band_spiral_val": true, + "cycle_all": true, + "cycle_left_right": true, + "cycle_up_down": true, + "cycle_out_in": true, + "cycle_out_in_dual": true, + "rainbow_moving_chevron": true, + "cycle_pinwheel": true, + "cycle_spiral": true, + "dual_beacon": true, + "rainbow_beacon": true, + "rainbow_pinwheels": true, + "raindrops": true, + "jellybean_raindrops": true, + "hue_breathing": true, + "hue_pendulum": true, + "hue_wave": true, + "pixel_fractal": true, + "pixel_flow": true, + "pixel_rain": true, + "typing_heatmap": true, + "digital_rain": true, + "solid_reactive_simple": true, + "solid_reactive": true, + "solid_reactive_wide": true, + "solid_reactive_multiwide": true, + "solid_reactive_cross": true, + "solid_reactive_multicross": true, + "solid_reactive_nexus": true, + "solid_reactive_multinexus": true, + "splash": true, + "multisplash": true, + "solid_splash": true, + "solid_multisplash": true + }, + "layout": [ + { "flags": 4, "matrix": [0, 0], "x": 18, "y": 6 }, + { "flags": 4, "matrix": [0, 1], "x": 56, "y": 6 }, + { "flags": 4, "matrix": [0, 2], "x": 92, "y": 6 }, + { "flags": 2, "x": 112, "y": 6 }, + { "flags": 4, "matrix": [0, 3], "x": 130, "y": 6 }, + { "flags": 4, "matrix": [0, 4], "x": 168, "y": 6 }, + { "flags": 4, "matrix": [0, 5], "x": 204, "y": 6 }, + + { "flags": 4, "matrix": [1, 5], "x": 204, "y": 19 }, + { "flags": 2, "x": 186, "y": 12 }, + { "flags": 4, "matrix": [1, 4], "x": 168, "y": 19 }, + { "flags": 4, "matrix": [1, 3], "x": 130, "y": 19 }, + { "flags": 4, "matrix": [1, 2], "x": 92, "y": 19 }, + { "flags": 4, "matrix": [1, 1], "x": 56, "y": 19 }, + { "flags": 2, "x": 36, "y": 12 }, + { "flags": 4, "matrix": [1, 0], "x": 18, "y": 19 }, + + { "flags": 4, "matrix": [2, 0], "x": 18, "y": 32 }, + { "flags": 4, "matrix": [2, 1], "x": 56, "y": 32 }, + { "flags": 4, "matrix": [2, 2], "x": 92, "y": 32 }, + { "flags": 4, "matrix": [2, 3], "x": 130, "y": 32 }, + { "flags": 4, "matrix": [2, 4], "x": 168, "y": 32 }, + { "flags": 4, "matrix": [2, 5], "x": 204, "y": 32 }, + + { "flags": 4, "matrix": [3, 5], "x": 204, "y": 44 }, + { "flags": 2, "x": 186, "y": 44 }, + { "flags": 4, "matrix": [3, 4], "x": 168, "y": 44 }, + { "flags": 4, "matrix": [3, 3], "x": 130, "y": 44 }, + { "flags": 2, "x": 112, "y": 44 }, + { "flags": 4, "matrix": [3, 2], "x": 92, "y": 44 }, + { "flags": 4, "matrix": [3, 1], "x": 56, "y": 44 }, + { "flags": 2, "x": 36, "y": 44 }, + { "flags": 4, "matrix": [3, 0], "x": 18, "y": 44 }, + + { "flags": 4, "matrix": [4, 0], "x": 18, "y": 57 }, + { "flags": 4, "matrix": [4, 1], "x": 56, "y": 57 }, + { "flags": 4, "matrix": [4, 2], "x": 92, "y": 57 }, + { "flags": 4, "matrix": [4, 3], "x": 130, "y": 57 }, + { "flags": 4, "matrix": [4, 4], "x": 192, "y": 57 }, + { "flags": 4, "matrix": [4, 5], "x": 210, "y": 57 } + ] + } +} diff --git a/keyboards/keebio/nyquistpad/keymaps/default/keymap.c b/keyboards/keebio/nyquistpad/keymaps/default/keymap.c new file mode 100644 index 0000000000..42b049facd --- /dev/null +++ b/keyboards/keebio/nyquistpad/keymaps/default/keymap.c @@ -0,0 +1,30 @@ +// Copyright 2023 Danny Nguyen (danny@keeb.io) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, + KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, + MO(2), KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC + ), + [1] = LAYOUT( + RGB_MOD, _______, _______, _______, _______, _______, + _______, _______, KC_UP, _______, KC_VOLU, KC_PGUP, + _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_VOLD, KC_PGDN, + _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______ + ), + [2] = LAYOUT( + KC_F6, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, + KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, + _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______ + ) + +}; diff --git a/keyboards/keebio/nyquistpad/keymaps/via/keymap.c b/keyboards/keebio/nyquistpad/keymaps/via/keymap.c new file mode 100644 index 0000000000..42b049facd --- /dev/null +++ b/keyboards/keebio/nyquistpad/keymaps/via/keymap.c @@ -0,0 +1,30 @@ +// Copyright 2023 Danny Nguyen (danny@keeb.io) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + [0] = LAYOUT( + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, + KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, + MO(2), KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC + ), + [1] = LAYOUT( + RGB_MOD, _______, _______, _______, _______, _______, + _______, _______, KC_UP, _______, KC_VOLU, KC_PGUP, + _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_VOLD, KC_PGDN, + _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______ + ), + [2] = LAYOUT( + KC_F6, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, + KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, + _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______ + ) + +}; diff --git a/keyboards/keebio/nyquistpad/keymaps/via/rules.mk b/keyboards/keebio/nyquistpad/keymaps/via/rules.mk new file mode 100644 index 0000000000..36b7ba9cbc --- /dev/null +++ b/keyboards/keebio/nyquistpad/keymaps/via/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +LTO_ENABLE = yes diff --git a/keyboards/keebio/nyquistpad/readme.md b/keyboards/keebio/nyquistpad/readme.md new file mode 100644 index 0000000000..39c9a678c8 --- /dev/null +++ b/keyboards/keebio/nyquistpad/readme.md @@ -0,0 +1,25 @@ +# Nyquistpad + +A 5x6 macropad keyboard based off of a prototype Nyquist PCB. + +* Keyboard Maintainer: Keebio +* Hardware Supported: Nyquistpad PCB +* Hardware Availability: [Keebio](https://keeb.io/) + +Make example for this keyboard (after setting up your build environment): + + make keebio/nyquistpad:default + +Flashing example for this keyboard: + + make keebio/nyquistpad:default:flash + +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 + +Enter the bootloader in 3 ways: + +* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard +* **Physical reset button**: Press and hold the button on the back of the PCB for at least 2 seconds and let go, or double-press the button +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available diff --git a/keyboards/keebio/nyquistpad/rules.mk b/keyboards/keebio/nyquistpad/rules.mk new file mode 100644 index 0000000000..6e7633bfe0 --- /dev/null +++ b/keyboards/keebio/nyquistpad/rules.mk @@ -0,0 +1 @@ +# This file intentionally left blank -- cgit v1.2.3