From 0e819542896587aca648964efc91ae235630466f Mon Sep 17 00:00:00 2001 From: Jesper Severinsen <30658160+jesperseverinsen@users.noreply.github.com> Date: Wed, 5 Oct 2022 04:34:48 +0200 Subject: [PATCH] [Keyboard] Add Nyhxis NFR-70 keyboard (#17562) Co-authored-by: Drashna Jaelre Co-authored-by: Joel Challis Co-authored-by: Ryan --- keyboards/nyhxis/nfr_70/info.json | 182 ++++++++++++++++++ .../nyhxis/nfr_70/keymaps/default/keymap.c | 44 +++++ .../nyhxis/nfr_70/keymaps/default/readme.md | 1 + .../nyhxis/nfr_70/keymaps/tsangan/keymap.c | 44 +++++ keyboards/nyhxis/nfr_70/keymaps/via/keymap.c | 52 +++++ keyboards/nyhxis/nfr_70/keymaps/via/rules.mk | 1 + keyboards/nyhxis/nfr_70/nfr_70.c | 17 ++ keyboards/nyhxis/nfr_70/nfr_70.h | 63 ++++++ keyboards/nyhxis/nfr_70/readme.md | 17 ++ keyboards/nyhxis/nfr_70/rules.mk | 19 ++ 10 files changed, 440 insertions(+) create mode 100644 keyboards/nyhxis/nfr_70/info.json create mode 100644 keyboards/nyhxis/nfr_70/keymaps/default/keymap.c create mode 100644 keyboards/nyhxis/nfr_70/keymaps/default/readme.md create mode 100644 keyboards/nyhxis/nfr_70/keymaps/tsangan/keymap.c create mode 100644 keyboards/nyhxis/nfr_70/keymaps/via/keymap.c create mode 100644 keyboards/nyhxis/nfr_70/keymaps/via/rules.mk create mode 100644 keyboards/nyhxis/nfr_70/nfr_70.c create mode 100644 keyboards/nyhxis/nfr_70/nfr_70.h create mode 100644 keyboards/nyhxis/nfr_70/readme.md create mode 100644 keyboards/nyhxis/nfr_70/rules.mk diff --git a/keyboards/nyhxis/nfr_70/info.json b/keyboards/nyhxis/nfr_70/info.json new file mode 100644 index 0000000000..32109b7012 --- /dev/null +++ b/keyboards/nyhxis/nfr_70/info.json @@ -0,0 +1,182 @@ +{ + "keyboard_name": "NFR-70", + "manufacturer": "Nyhxis", + "url": "https://github.com/Nyhxis/keyboard-resources/tree/master/NFR-70", + "maintainer": "Nyhxis", + "diode_direction": "COL2ROW", + "matrix_pins": { + "cols": [ "B2", "B3", "B1", "F7", "F6", "F5", "F4" ], + "rows": [ "D3", "D2", "D1", "D0", "C6", "D4", "E6", "D7", "B5", "B4", "B6" ] + }, + "usb": { + "vid": "0xABCD", + "pid": "0x0001", + "device_version": "1.0.0" + }, + "layouts": { + "LAYOUT_ansi":{ + "layout": + [ + { "label": "ESC", "x": 0, "y": 0 }, + { "label": "F2", "x": 2.25, "y": 0 }, + { "label": "F4", "x": 4.25, "y": 0 }, + { "label": "F6", "x": 6.5, "y": 0 }, + { "label": "F8", "x": 8.5, "y": 0 }, + { "label": "F10", "x": 10.75, "y": 0 }, + { "label": "F12", "x": 12.75, "y": 0 }, + { "label": "F1", "x": 1.25, "y": 0 }, + { "label": "F3", "x": 3.25, "y": 0 }, + { "label": "F5", "x": 5.5, "y": 0 }, + { "label": "F7", "x": 7.5, "y": 0 }, + { "label": "F9", "x": 9.75, "y": 0 }, + { "label": "F11", "x": 11.75, "y": 0 }, + { "label": "F13", "x": 14, "y": 0 } + { "label": "1", "x": 1, "y": 1.25 }, + { "label": "3", "x": 3, "y": 1.25 }, + { "label": "5", "x": 5, "y": 1.25 }, + { "label": "7", "x": 7, "y": 1.25 }, + { "label": "9", "x": 9, "y": 1.25 }, + { "label": "-", "x": 11, "y": 1.25 }, + { "label": "BACKSPACE", "x": 13, "y": 1.25, "w": 2 } + { "label": "`", "x": 0, "y": 1.25 }, + { "label": "2", "x": 2, "y": 1.25 }, + { "label": "4", "x": 4, "y": 1.25 }, + { "label": "6", "x": 6, "y": 1.25 }, + { "label": "8", "x": 8, "y": 1.25 }, + { "label": "0", "x": 10, "y": 1.25 }, + { "label": "=", "x": 12, "y": 1.25 }, + { "label": "TAB", "x": 0, "y": 2.25, "w": 1.5 }, + { "label": "W", "x": 2.5, "y": 2.25 }, + { "label": "R", "x": 4.5, "y": 2.25 }, + { "label": "Y", "x": 6.5, "y": 2.25 }, + { "label": "I", "x": 8.5, "y": 2.25 }, + { "label": "P", "x": 10.5, "y": 2.25 }, + { "label": "]", "x": 12.5, "y": 2.25 }, + { "label": "Q", "x": 1.5, "y": 2.25 }, + { "label": "E", "x": 3.5, "y": 2.25 }, + { "label": "T", "x": 5.5, "y": 2.25 }, + { "label": "U", "x": 7.5, "y": 2.25 }, + { "label": "O", "x": 9.5, "y": 2.25 }, + { "label": "[", "x": 11.5, "y": 2.25 }, + { "label": "\\", "x": 13.5, "y": 2.25, "w": 1.5 } + { "label": "A", "x": 1.75, "y": 3.25 }, + { "label": "D", "x": 3.75, "y": 3.25 }, + { "label": "G", "x": 5.75, "y": 3.25 }, + { "label": "J", "x": 7.75, "y": 3.25 }, + { "label": "L", "x": 9.75, "y": 3.25 }, + { "label": "'", "x": 10.75, "y": 3.25 }, + { "x": 12.75, "y": 3.25 }, + { "label": "CAPS", "x": 0, "y": 3.25, "w": 1.75 }, + { "label": "S", "x": 2.75, "y": 3.25 }, + { "label": "F", "x": 4.75, "y": 3.25 }, + { "label": "H", "x": 6.75, "y": 3.25 }, + { "label": "K", "x": 8.75, "y": 3.25 }, + { "label": ";", "x": 11.75, "y": 3.25 }, + { "label": "ENTER", "x": 12.75, "y": 3.25, "w": 2.25 } + { "label": "LSHIFT", "x": 0, "y": 4.25, "w": 2.25 }, + { "label": "Z", "x": 2.25, "y": 4.25 }, + { "label": "C", "x": 4.25, "y": 4.25 }, + { "label": "B", "x": 6.25, "y": 4.25 }, + { "label": "M", "x": 8.25, "y": 4.25 }, + { "label": ".", "x": 10.25, "y": 4.25 }, + { "label": "RSHIFT", "x": 12.25, "y": 4.25, "w": 2.75 } + { "label": "NUBS", "x": 1.25, "y": 4.25 }, + { "label": "X", "x": 3.25, "y": 4.25 }, + { "label": "V", "x": 5.25, "y": 4.25 }, + { "label": "N", "x": 7.25, "y": 4.25 }, + { "label": ",", "x": 9.25, "y": 4.25 }, + { "label": "/", "x": 11.25, "y": 4.25 }, + { "label": "RALT", "x": 10, "y": 5.25, "w": 1.25 }, + { "label": "LCTRL", "x": 0, "y": 5.25, "w": 1.25 }, + { "label": "LWIN", "x": 1.25, "y": 5.25, "w": 1.25 }, + { "label": "LALT", "x": 2.5, "y": 5.25, "w": 1.25 }, + { "label": "SPACE", "x": 3.75, "y": 5.25, "w": 6.25 }, + { "label": "RWIN", "x": 11.25, "y": 5.25, "w": 1.25 }, + { "label": "MENU", "x": 12.5, "y": 5.25, "w": 1.25 }, + { "label": "RCTRL", "x": 13.75, "y": 5.25, "w": 1.25 } + ] + }, + "LAYOUT_tsangan":{ + "layout": + [ + { "label": "ESC", "x": 0, "y": 0 }, + { "label": "F2", "x": 2.25, "y": 0 }, + { "label": "F4", "x": 4.25, "y": 0 }, + { "label": "F6", "x": 6.5, "y": 0 }, + { "label": "F8", "x": 8.5, "y": 0 }, + { "label": "F10", "x": 10.75, "y": 0 }, + { "label": "F12", "x": 12.75, "y": 0 }, + { "label": "F1", "x": 1.25, "y": 0 }, + { "label": "F3", "x": 3.25, "y": 0 }, + { "label": "F5", "x": 5.5, "y": 0 }, + { "label": "F7", "x": 7.5, "y": 0 }, + { "label": "F9", "x": 9.75, "y": 0 }, + { "label": "F11", "x": 11.75, "y": 0 }, + { "label": "F13", "x": 14, "y": 0 } + { "label": "1", "x": 1, "y": 1.25 }, + { "label": "3", "x": 3, "y": 1.25 }, + { "label": "5", "x": 5, "y": 1.25 }, + { "label": "7", "x": 7, "y": 1.25 }, + { "label": "9", "x": 9, "y": 1.25 }, + { "label": "-", "x": 11, "y": 1.25 }, + { "label": "BACKSPACE", "x": 13, "y": 1.25, "w": 2 } + { "label": "`", "x": 0, "y": 1.25 }, + { "label": "2", "x": 2, "y": 1.25 }, + { "label": "4", "x": 4, "y": 1.25 }, + { "label": "6", "x": 6, "y": 1.25 }, + { "label": "8", "x": 8, "y": 1.25 }, + { "label": "0", "x": 10, "y": 1.25 }, + { "label": "=", "x": 12, "y": 1.25 }, + { "label": "TAB", "x": 0, "y": 2.25, "w": 1.5 }, + { "label": "W", "x": 2.5, "y": 2.25 }, + { "label": "R", "x": 4.5, "y": 2.25 }, + { "label": "Y", "x": 6.5, "y": 2.25 }, + { "label": "I", "x": 8.5, "y": 2.25 }, + { "label": "P", "x": 10.5, "y": 2.25 }, + { "label": "]", "x": 12.5, "y": 2.25 }, + { "label": "Q", "x": 1.5, "y": 2.25 }, + { "label": "E", "x": 3.5, "y": 2.25 }, + { "label": "T", "x": 5.5, "y": 2.25 }, + { "label": "U", "x": 7.5, "y": 2.25 }, + { "label": "O", "x": 9.5, "y": 2.25 }, + { "label": "[", "x": 11.5, "y": 2.25 }, + { "label": "\\", "x": 13.5, "y": 2.25, "w": 1.5 } + { "label": "A", "x": 1.75, "y": 3.25 }, + { "label": "D", "x": 3.75, "y": 3.25 }, + { "label": "G", "x": 5.75, "y": 3.25 }, + { "label": "J", "x": 7.75, "y": 3.25 }, + { "label": "L", "x": 9.75, "y": 3.25 }, + { "label": "'", "x": 10.75, "y": 3.25 }, + { "x": 12.75, "y": 3.25 }, + { "label": "CAPS", "x": 0, "y": 3.25, "w": 1.75 }, + { "label": "S", "x": 2.75, "y": 3.25 }, + { "label": "F", "x": 4.75, "y": 3.25 }, + { "label": "H", "x": 6.75, "y": 3.25 }, + { "label": "K", "x": 8.75, "y": 3.25 }, + { "label": ";", "x": 11.75, "y": 3.25 }, + { "label": "ENTER", "x": 12.75, "y": 3.25, "w": 2.25 } + { "label": "LSHIFT", "x": 0, "y": 4.25, "w": 2.25 }, + { "label": "Z", "x": 2.25, "y": 4.25 }, + { "label": "C", "x": 4.25, "y": 4.25 }, + { "label": "B", "x": 6.25, "y": 4.25 }, + { "label": "M", "x": 8.25, "y": 4.25 }, + { "label": ".", "x": 10.25, "y": 4.25 }, + { "label": "RSHIFT", "x": 12.25, "y": 4.25, "w": 2.75 } + { "label": "NUBS", "x": 1.25, "y": 4.25 }, + { "label": "X", "x": 3.25, "y": 4.25 }, + { "label": "V", "x": 5.25, "y": 4.25 }, + { "label": "N", "x": 7.25, "y": 4.25 }, + { "label": ",", "x": 9.25, "y": 4.25 }, + { "label": "/", "x": 11.25, "y": 4.25 }, + { "x": 10, "y": 5.25 }, + { "label": "LCTRL", "x": 0, "y": 5.25, "w": 1.5 }, + { "label": "LWIN", "x": 1.5, "y": 5.25, "w": 1 }, + { "label": "LALT", "x": 2.5, "y": 5.25, "w": 1.5 }, + { "label": "SPACE", "x": 4, "y": 5.25, "w": 7 }, + { "label": "RALT", "x": 11, "y": 5.25, "w": 1.5 }, + { "label": "RWIN", "x": 12.5, "y": 5.25, "w": 1 }, + { "label": "RCTRL", "x": 13.5, "y": 5.25, "w": 1.5 } + ] + } + } +} \ No newline at end of file diff --git a/keyboards/nyhxis/nfr_70/keymaps/default/keymap.c b/keyboards/nyhxis/nfr_70/keymaps/default/keymap.c new file mode 100644 index 0000000000..ff3e0802dd --- /dev/null +++ b/keyboards/nyhxis/nfr_70/keymaps/default/keymap.c @@ -0,0 +1,44 @@ +/* Copyright 2022 Nyhxis (@nyhxis) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_ansi( + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_BSPC, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, + KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, + KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL + ), + [1] = LAYOUT_ansi( + MO(2), KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUSE, KC_UP, KC_TRNS, KC_TRNS, + KC_TRNS, KC_VOLU, KC_VOLD, KC_MUTE, KC_MPLY, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_LEFT, KC_RIGHT, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDOWN, KC_DOWN, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + [2] = LAYOUT_ansi( + KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ) +}; diff --git a/keyboards/nyhxis/nfr_70/keymaps/default/readme.md b/keyboards/nyhxis/nfr_70/keymaps/default/readme.md new file mode 100644 index 0000000000..9b3c534eb7 --- /dev/null +++ b/keyboards/nyhxis/nfr_70/keymaps/default/readme.md @@ -0,0 +1 @@ +# The default keymap for NFR-70 \ No newline at end of file diff --git a/keyboards/nyhxis/nfr_70/keymaps/tsangan/keymap.c b/keyboards/nyhxis/nfr_70/keymaps/tsangan/keymap.c new file mode 100644 index 0000000000..b8b2ec1e03 --- /dev/null +++ b/keyboards/nyhxis/nfr_70/keymaps/tsangan/keymap.c @@ -0,0 +1,44 @@ +/* Copyright 2022 Nyhxis (@nyhxis) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_tsangan( + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_BSPC, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, + KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, + KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL + ), + [1] = LAYOUT_tsangan( + MO(2), KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUSE, KC_UP, KC_TRNS, KC_TRNS, + KC_TRNS, KC_VOLU, KC_VOLD, KC_MUTE, KC_MPLY, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_LEFT, KC_RIGHT, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDOWN, KC_DOWN, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + [2] = LAYOUT_tsangan( + KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ) +}; diff --git a/keyboards/nyhxis/nfr_70/keymaps/via/keymap.c b/keyboards/nyhxis/nfr_70/keymaps/via/keymap.c new file mode 100644 index 0000000000..ec62944db5 --- /dev/null +++ b/keyboards/nyhxis/nfr_70/keymaps/via/keymap.c @@ -0,0 +1,52 @@ +/* Copyright 2022 Nyhxis (@nyhxis) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + + #include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_ansi( + KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_F13, + KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_BSPC, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, + KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, + KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL + ), + [1] = LAYOUT_ansi( + MO(2), KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_BSPC, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SLCK, KC_PAUSE, KC_UP, KC_TRNS, KC_TRNS, + KC_TRNS, KC_VOLU, KC_VOLD, KC_MUTE, KC_MPLY, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_LEFT, KC_RIGHT, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDOWN, KC_DOWN, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + [2] = LAYOUT_ansi( + KC_TRNS, RESET, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ), + [3] = LAYOUT_ansi( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS + ) +}; diff --git a/keyboards/nyhxis/nfr_70/keymaps/via/rules.mk b/keyboards/nyhxis/nfr_70/keymaps/via/rules.mk new file mode 100644 index 0000000000..1e5b99807c --- /dev/null +++ b/keyboards/nyhxis/nfr_70/keymaps/via/rules.mk @@ -0,0 +1 @@ +VIA_ENABLE = yes diff --git a/keyboards/nyhxis/nfr_70/nfr_70.c b/keyboards/nyhxis/nfr_70/nfr_70.c new file mode 100644 index 0000000000..43d4a0e2c6 --- /dev/null +++ b/keyboards/nyhxis/nfr_70/nfr_70.c @@ -0,0 +1,17 @@ +/* Copyright 2022 Nyhxis (@nyhxis) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include "nfr_70.h" diff --git a/keyboards/nyhxis/nfr_70/nfr_70.h b/keyboards/nyhxis/nfr_70/nfr_70.h new file mode 100644 index 0000000000..e40e5f0800 --- /dev/null +++ b/keyboards/nyhxis/nfr_70/nfr_70.h @@ -0,0 +1,63 @@ +/* Copyright 2022 Nyhxis (@nyhxis) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once + +#include "quantum.h" + +#define LAYOUT_ansi( \ + K000, K010, K001, K011, K002, K012, K003, K013, K004, K014, K005, K015, K006, K016, \ + K030, K020, K031, K021, K032, K022, K033, K023, K034, K024, K035, K025, K036, K026, K066, \ + K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K056, \ + K070, K060, K071, K061, K072, K062, K073, K063, K074, K064, K075, K065, K076, \ + K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K086, \ + K100, K101, K102, K103, K096, K104, K105, K106 \ +) \ +{ \ + { K000, K001, K002, K003, K004, K005, K006 }, \ + { K010, K011, K012, K013, K014, K015, K016 }, \ + { K020, K021, K022, K023, K024, K025, K026 }, \ + { K030, K031, K032, K033, K034, K035, K036 }, \ + { K040, K041, K042, K043, K044, K045, K046 }, \ + { K050, K051, K052, K053, K054, K055, K056 }, \ + { K060, K061, K062, K063, K064, K065, K066 }, \ + { K070, K071, K072, K073, K074, K075, K076 }, \ + { K080, K081, K082, K083, K084, K085, K086 }, \ + { K090, K091, K092, K093, K094, K095, K096 }, \ + { K100, K101, K102, K103, K104, K105, K106 } \ +} + +#define LAYOUT_tsangan( \ + K000, K010, K001, K011, K002, K012, K003, K013, K004, K014, K005, K015, K006, K016, \ + K030, K020, K031, K021, K032, K022, K033, K023, K034, K024, K035, K025, K036, K026, K066, \ + K040, K050, K041, K051, K042, K052, K043, K053, K044, K054, K045, K055, K046, K056, \ + K070, K060, K071, K061, K072, K062, K073, K063, K074, K064, K075, K065, K076, \ + K080, K090, K081, K091, K082, K092, K083, K093, K084, K094, K085, K095, K096, K086, \ + K100, K101, K102, K103, K104, K105, K106 \ +) \ +{ \ + { K000, K001, K002, K003, K004, K005, K006 }, \ + { K010, K011, K012, K013, K014, K015, K016 }, \ + { K020, K021, K022, K023, K024, K025, K026 }, \ + { K030, K031, K032, K033, K034, K035, K036 }, \ + { K040, K041, K042, K043, K044, K045, K046 }, \ + { K050, K051, K052, K053, K054, K055, K056 }, \ + { K060, K061, K062, K063, K064, K065, K066 }, \ + { K070, K071, K072, K073, K074, K075, K076 }, \ + { K080, K081, K082, K083, K084, K085, K086 }, \ + { K090, K091, K092, K093, K094, K095, K096 }, \ + { K100, K101, K102, K103, K104, K105, K106 } \ +} diff --git a/keyboards/nyhxis/nfr_70/readme.md b/keyboards/nyhxis/nfr_70/readme.md new file mode 100644 index 0000000000..2411ca65b7 --- /dev/null +++ b/keyboards/nyhxis/nfr_70/readme.md @@ -0,0 +1,17 @@ +# NFR-70 + +![NFR-70](https://i.imgur.com/7jeesq6h.jpg) + +A 70% barebones keyboard using Pro-Micro and alternatives. + +Firmware was made and tested for Elite-C. Set bootloader in `rules.mk` to match your preferred MCU. + +* Keyboard Maintainer: [Nyhxis](https://github.com/Nyhxis) + +Make example for this keyboard (after setting up your build environment): + + make nyhxis/nfr_70:default + +**Reset Key**: The board can be reset by pressing the RESET button on the Elite-C or the button to the right of it labeled SW1. + +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/nyhxis/nfr_70/rules.mk b/keyboards/nyhxis/nfr_70/rules.mk new file mode 100644 index 0000000000..66c1ee26f4 --- /dev/null +++ b/keyboards/nyhxis/nfr_70/rules.mk @@ -0,0 +1,19 @@ +# MCU name +MCU = atmega32u4 + +# Bootloader selection +#BOOTLOADER = caterina # Pro-Micro +BOOTLOADER = atmel-dfu # Elite-C + +# Build Options +# change yes to no to disable +# +BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite +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 +NKRO_ENABLE = yes # Enable N-Key Rollover +BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality +RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow +AUDIO_ENABLE = no # Audio output \ No newline at end of file