diff options
| author | Leon Omelan <rozpierog@gmail.com> | 2021-11-28 07:44:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-27 22:44:00 -0800 |
| commit | 35b6d1e9927ab1329f2f1095d7f43e92dc7c38e8 (patch) | |
| tree | 69a647f660267e61e3f42dc7489b823aab9273da | |
| parent | d4690d0c231e782961d5aa56686dd0981fe503cd (diff) | |
| download | qmk_firmware-35b6d1e9927ab1329f2f1095d7f43e92dc7c38e8.tar.gz qmk_firmware-35b6d1e9927ab1329f2f1095d7f43e92dc7c38e8.zip | |
[Keyboard] Add Nozbe Macropad (#14803)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/handwired/nozbe_macro/config.h | 57 | ||||
| -rw-r--r-- | keyboards/handwired/nozbe_macro/info.json | 15 | ||||
| -rw-r--r-- | keyboards/handwired/nozbe_macro/keymaps/default/keymap.c | 31 | ||||
| -rw-r--r-- | keyboards/handwired/nozbe_macro/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/handwired/nozbe_macro/nozbe_macro.c | 17 | ||||
| -rw-r--r-- | keyboards/handwired/nozbe_macro/nozbe_macro.h | 25 | ||||
| -rw-r--r-- | keyboards/handwired/nozbe_macro/readme.md | 26 | ||||
| -rw-r--r-- | keyboards/handwired/nozbe_macro/rules.mk | 21 |
8 files changed, 193 insertions, 0 deletions
diff --git a/keyboards/handwired/nozbe_macro/config.h b/keyboards/handwired/nozbe_macro/config.h new file mode 100644 index 000000000..996ed08ab --- /dev/null +++ b/keyboards/handwired/nozbe_macro/config.h | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | /* Copyright 2021 Marcin Leon Omelan (@rozPierog) | ||
| 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 "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0xFEED | ||
| 24 | #define PRODUCT_ID 0x6060 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER Leon Omelan | ||
| 27 | #define PRODUCT Nozbe Reunion Pad | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 1 | ||
| 31 | #define MATRIX_COLS 4 | ||
| 32 | |||
| 33 | /* key matrix pins */ | ||
| 34 | #define MATRIX_ROW_PINS \ | ||
| 35 | { B0 } | ||
| 36 | #define MATRIX_COL_PINS \ | ||
| 37 | { D1, D0, D4, C6 } | ||
| 38 | #define UNUSED_PINS | ||
| 39 | |||
| 40 | /* COL2ROW or ROW2COL */ | ||
| 41 | #define DIODE_DIRECTION COL2ROW | ||
| 42 | |||
| 43 | /* number of backlight levels */ | ||
| 44 | #define BACKLIGHT_PIN B5 | ||
| 45 | #ifdef BACKLIGHT_PIN | ||
| 46 | # define BACKLIGHT_LEVELS 3 | ||
| 47 | #endif | ||
| 48 | |||
| 49 | /* Set 0 if debouncing isn't needed */ | ||
| 50 | #define DEBOUNCE 5 | ||
| 51 | |||
| 52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 53 | #define LOCKING_SUPPORT_ENABLE | ||
| 54 | |||
| 55 | /* Locking resynchronize hack */ | ||
| 56 | #define LOCKING_RESYNC_ENABLE | ||
| 57 | |||
diff --git a/keyboards/handwired/nozbe_macro/info.json b/keyboards/handwired/nozbe_macro/info.json new file mode 100644 index 000000000..056ccf9fc --- /dev/null +++ b/keyboards/handwired/nozbe_macro/info.json | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "nozbe_macro", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "Leon Omelan", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"label":"k00", "x":0, "y":0}, | ||
| 9 | {"label":"k01", "x":1, "y":0}, | ||
| 10 | {"label":"k02", "x":2, "y":0}, | ||
| 11 | {"label":"k03", "x":3, "y":0} | ||
| 12 | ] | ||
| 13 | } | ||
| 14 | } | ||
| 15 | } | ||
diff --git a/keyboards/handwired/nozbe_macro/keymaps/default/keymap.c b/keyboards/handwired/nozbe_macro/keymaps/default/keymap.c new file mode 100644 index 000000000..7012e50d4 --- /dev/null +++ b/keyboards/handwired/nozbe_macro/keymaps/default/keymap.c | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* Copyright 2021 Marcin Leon Omelan (@rozPierog) | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _FN, | ||
| 22 | }; | ||
| 23 | |||
| 24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 25 | [_BASE] = LAYOUT( | ||
| 26 | LT(_FN, KC_N), LALT(KC_UP), LALT(KC_DOWN), LALT(KC_D) | ||
| 27 | ), | ||
| 28 | [_FN] = LAYOUT( | ||
| 29 | KC_TRNS, KC_1, KC_2, BL_STEP | ||
| 30 | ), | ||
| 31 | }; | ||
diff --git a/keyboards/handwired/nozbe_macro/keymaps/default/readme.md b/keyboards/handwired/nozbe_macro/keymaps/default/readme.md new file mode 100644 index 000000000..99051c3a2 --- /dev/null +++ b/keyboards/handwired/nozbe_macro/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for nozbe_macro | |||
diff --git a/keyboards/handwired/nozbe_macro/nozbe_macro.c b/keyboards/handwired/nozbe_macro/nozbe_macro.c new file mode 100644 index 000000000..b6d38fec8 --- /dev/null +++ b/keyboards/handwired/nozbe_macro/nozbe_macro.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 Marcin Leon Omelan (@rozPierog) | ||
| 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 | #include "nozbe_macro.h" | ||
diff --git a/keyboards/handwired/nozbe_macro/nozbe_macro.h b/keyboards/handwired/nozbe_macro/nozbe_macro.h new file mode 100644 index 000000000..2c2c95091 --- /dev/null +++ b/keyboards/handwired/nozbe_macro/nozbe_macro.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* Copyright 2021 Marcin Leon Omelan (@rozPierog) | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT( \ | ||
| 22 | k00, k01, k02, k03 \ | ||
| 23 | ) { \ | ||
| 24 | { k00, k01, k02, k03 } \ | ||
| 25 | } | ||
diff --git a/keyboards/handwired/nozbe_macro/readme.md b/keyboards/handwired/nozbe_macro/readme.md new file mode 100644 index 000000000..1e51dabff --- /dev/null +++ b/keyboards/handwired/nozbe_macro/readme.md | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # Nozbe Macropad handwired | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | 4 key macropad with optional rotary encoder. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [rozPierog](https://github.com/rozPierog) | ||
| 8 | * Hardware Supported: Custom handwired 4 key (or 3 key + rotary encoder) pad | ||
| 9 | * Hardware Availability: *n/a* | ||
| 10 | * Github Repository: [NozbePad](https://github.com/rozPierog/NozbePad) | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make handwired/nozbe_macro:default | ||
| 15 | |||
| 16 | Flashing example for this keyboard: | ||
| 17 | |||
| 18 | make handwired/nozbe_macro:default:flash | ||
| 19 | |||
| 20 | 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). | ||
| 21 | |||
| 22 | ## Bootloader | ||
| 23 | |||
| 24 | Enter the bootloader in 1 way: | ||
| 25 | |||
| 26 | * **Short pins**: short RST and GND pins at the back | ||
diff --git a/keyboards/handwired/nozbe_macro/rules.mk b/keyboards/handwired/nozbe_macro/rules.mk new file mode 100644 index 000000000..5f180ae00 --- /dev/null +++ b/keyboards/handwired/nozbe_macro/rules.mk | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | AUDIO_ENABLE = no # Audio output | ||
