diff options
Diffstat (limited to 'keyboards/ungodly/nines')
| -rw-r--r-- | keyboards/ungodly/nines/config.h | 51 | ||||
| -rw-r--r-- | keyboards/ungodly/nines/info.json | 22 | ||||
| -rw-r--r-- | keyboards/ungodly/nines/keymaps/default/keymap.c | 32 | ||||
| -rw-r--r-- | keyboards/ungodly/nines/keymaps/via/keymap.c | 44 | ||||
| -rw-r--r-- | keyboards/ungodly/nines/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/ungodly/nines/nines.c | 32 | ||||
| -rw-r--r-- | keyboards/ungodly/nines/nines.h | 37 | ||||
| -rw-r--r-- | keyboards/ungodly/nines/readme.md | 20 | ||||
| -rw-r--r-- | keyboards/ungodly/nines/rules.mk | 23 |
9 files changed, 262 insertions, 0 deletions
diff --git a/keyboards/ungodly/nines/config.h b/keyboards/ungodly/nines/config.h new file mode 100644 index 000000000..a2f874bda --- /dev/null +++ b/keyboards/ungodly/nines/config.h | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | /* Copyright 2020 Ungodly Design <hello@ungodly.design> | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "config_common.h" | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0x5544 // "UD" = Ungodly Design | ||
| 22 | #define PRODUCT_ID 0x544E // "TN" = The Nines | ||
| 23 | #define DEVICE_VER 0x9999 | ||
| 24 | #define MANUFACTURER Ungodly Design | ||
| 25 | #define PRODUCT The Nines | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 3 | ||
| 29 | #define MATRIX_COLS 3 | ||
| 30 | |||
| 31 | /* Keyboard Matrix Assignments */ | ||
| 32 | #define DIRECT_PINS { \ | ||
| 33 | { F4, F5, F6 }, \ | ||
| 34 | { F7, B1, B3 }, \ | ||
| 35 | { B2, B6, B5 } \ | ||
| 36 | } | ||
| 37 | #define UNUSED_PINS | ||
| 38 | |||
| 39 | /* Rotary Encoder Assignments */ | ||
| 40 | #define ENCODERS_PAD_A { C6, E6 } | ||
| 41 | #define ENCODERS_PAD_B { D7, B4 } | ||
| 42 | |||
| 43 | #define ENCODER_RESOLUTION 2 | ||
| 44 | |||
| 45 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 46 | #define DEBOUNCE 5 | ||
| 47 | |||
| 48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 49 | #define LOCKING_SUPPORT_ENABLE | ||
| 50 | /* Locking resynchronize hack */ | ||
| 51 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/ungodly/nines/info.json b/keyboards/ungodly/nines/info.json new file mode 100644 index 000000000..4a3c54244 --- /dev/null +++ b/keyboards/ungodly/nines/info.json | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "The Nines", | ||
| 3 | "url": "https://www.qlavier.com/", | ||
| 4 | "maintainer": "Ungodly Design", | ||
| 5 | "width": 3, | ||
| 6 | "height": 3, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ortho_3x3": { | ||
| 9 | "layout": [ | ||
| 10 | {"x":0, "y":0}, | ||
| 11 | {"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/ungodly/nines/keymaps/default/keymap.c b/keyboards/ungodly/nines/keymaps/default/keymap.c new file mode 100644 index 000000000..2100f4b80 --- /dev/null +++ b/keyboards/ungodly/nines/keymaps/default/keymap.c | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2020 Ungodly Design <hello@ungodly.design> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | |||
| 20 | [0] = LAYOUT_ortho_3x3( | ||
| 21 | KC_MPLY, KC_HOME, KC_MUTE, | ||
| 22 | MO(1), KC_UP, KC_END, | ||
| 23 | KC_LEFT, KC_DOWN, KC_RGHT | ||
| 24 | ), | ||
| 25 | |||
| 26 | [1] = LAYOUT_ortho_3x3( | ||
| 27 | RESET, _______, KC_STOP, | ||
| 28 | _______, KC_HOME, _______, | ||
| 29 | KC_MPRV, KC_END , KC_MNXT | ||
| 30 | ) | ||
| 31 | |||
| 32 | }; | ||
diff --git a/keyboards/ungodly/nines/keymaps/via/keymap.c b/keyboards/ungodly/nines/keymaps/via/keymap.c new file mode 100644 index 000000000..e0567ff0f --- /dev/null +++ b/keyboards/ungodly/nines/keymaps/via/keymap.c | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | /* Copyright 2020 Ungodly Design <hello@ungodly.design> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | |||
| 20 | [0] = LAYOUT_ortho_3x3( | ||
| 21 | KC_MPLY, KC_HOME, KC_MUTE, | ||
| 22 | MO(1), KC_UP, KC_END, | ||
| 23 | KC_LEFT, KC_DOWN, KC_RGHT | ||
| 24 | ), | ||
| 25 | |||
| 26 | [1] = LAYOUT_ortho_3x3( | ||
| 27 | RESET, _______, KC_STOP, | ||
| 28 | _______, KC_HOME, _______, | ||
| 29 | KC_MPRV, KC_END , KC_MNXT | ||
| 30 | ), | ||
| 31 | |||
| 32 | [2] = LAYOUT_ortho_3x3( | ||
| 33 | _______, _______, _______, | ||
| 34 | _______, _______, _______, | ||
| 35 | _______, _______, _______ | ||
| 36 | ), | ||
| 37 | |||
| 38 | [3] = LAYOUT_ortho_3x3( | ||
| 39 | _______, _______, _______, | ||
| 40 | _______, _______, _______, | ||
| 41 | _______, _______, _______ | ||
| 42 | ) | ||
| 43 | |||
| 44 | }; | ||
diff --git a/keyboards/ungodly/nines/keymaps/via/rules.mk b/keyboards/ungodly/nines/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/ungodly/nines/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/ungodly/nines/nines.c b/keyboards/ungodly/nines/nines.c new file mode 100644 index 000000000..3b29b268d --- /dev/null +++ b/keyboards/ungodly/nines/nines.c | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2020 Ungodly Design <hello@ungodly.design> | ||
| 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 | #include "nines.h" | ||
| 17 | |||
| 18 | __attribute__((weak)) void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 19 | if (index == 0) { /* Left encoder */ | ||
| 20 | if (clockwise) { | ||
| 21 | tap_code(KC_VOLU); | ||
| 22 | } else { | ||
| 23 | tap_code(KC_VOLD); | ||
| 24 | } | ||
| 25 | } else if (index == 1) { /* Right encoder */ | ||
| 26 | if (clockwise) { | ||
| 27 | tap_code(KC_VOLU); | ||
| 28 | } else { | ||
| 29 | tap_code(KC_VOLD); | ||
| 30 | } | ||
| 31 | } | ||
| 32 | } | ||
diff --git a/keyboards/ungodly/nines/nines.h b/keyboards/ungodly/nines/nines.h new file mode 100644 index 000000000..f67615ecf --- /dev/null +++ b/keyboards/ungodly/nines/nines.h | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | /* Copyright 2020 Ungodly Design <hello@ungodly.design> | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | /* This a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT_ortho_3x3( \ | ||
| 29 | k00, k01, k02, \ | ||
| 30 | k10, k11, k12, \ | ||
| 31 | k20, k21, k22 \ | ||
| 32 | ) \ | ||
| 33 | { \ | ||
| 34 | { k00, k01, k02 }, \ | ||
| 35 | { k10, k11, k12 }, \ | ||
| 36 | { k20, k21, k22 } \ | ||
| 37 | } | ||
diff --git a/keyboards/ungodly/nines/readme.md b/keyboards/ungodly/nines/readme.md new file mode 100644 index 000000000..21b2628be --- /dev/null +++ b/keyboards/ungodly/nines/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # Nines | ||
| 2 | |||
| 3 | A 9 key (3x3) macropad with rotary encoder support. | ||
| 4 | Made by Ungodly Design for Qlavier. | ||
| 5 | |||
| 6 |  | ||
| 7 | |||
| 8 | |Reset Bootloader| | | ||
| 9 | |---|---| | ||
| 10 | |Use tweezers to short the two pins to the left of the pro-micro.|| | ||
| 11 | |||
| 12 | * Keyboard Maintainer: [Luis Godinez](https://github.com/luis-Godinez) | ||
| 13 | * Hardware Supported: The Nines PCB | ||
| 14 | * Hardware Availability: [Qlavier](https://www.qlavier.com/shop/) | ||
| 15 | |||
| 16 | Make example for this keyboard (after setting up your build environment): | ||
| 17 | |||
| 18 | make ungodly/nines:default | ||
| 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). | ||
diff --git a/keyboards/ungodly/nines/rules.mk b/keyboards/ungodly/nines/rules.mk new file mode 100644 index 000000000..c8cbaf06b --- /dev/null +++ b/keyboards/ungodly/nines/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 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 = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | ENCODER_ENABLE = yes # Rotary encoder support | ||
