Skip to content

Commit

Permalink
[Keyboard] Add Nyhxis NFR-70 keyboard (#17562)
Browse files Browse the repository at this point in the history
Co-authored-by: Drashna Jaelre <[email protected]>
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
4 people authored Oct 5, 2022
1 parent b100db1 commit 0e81954
Show file tree
Hide file tree
Showing 10 changed files with 440 additions and 0 deletions.
182 changes: 182 additions & 0 deletions keyboards/nyhxis/nfr_70/info.json
Original file line number Diff line number Diff line change
@@ -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 }
]
}
}
}
44 changes: 44 additions & 0 deletions keyboards/nyhxis/nfr_70/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
*/

#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
)
};
1 change: 1 addition & 0 deletions keyboards/nyhxis/nfr_70/keymaps/default/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# The default keymap for NFR-70
44 changes: 44 additions & 0 deletions keyboards/nyhxis/nfr_70/keymaps/tsangan/keymap.c
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
*/

#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
)
};
Loading

0 comments on commit 0e81954

Please sign in to comment.