Skip to content

Commit

Permalink
[Keyboard] Add nt210 (qmk#16461)
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Challis <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
3 people authored Mar 26, 2022
1 parent 7e0dde1 commit 084df6a
Show file tree
Hide file tree
Showing 7 changed files with 203 additions and 0 deletions.
20 changes: 20 additions & 0 deletions keyboards/evyd13/nt210/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Copyright 2022 Evelien Dekkers (@evyd13)
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
84 changes: 84 additions & 0 deletions keyboards/evyd13/nt210/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"manufacturer": "Evelien Dekkers",
"keyboard_name": "nt210",
"maintainer": "evyd13",
"bootloader": "atmel-dfu",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": false,
"nkro": true
},
"matrix_pins": {
"cols": ["B0", "D6", "D5", "D4"],
"rows": ["C4", "C5", "C6", "C7", "B7", "B6"]
},
"processor": "atmega32u2",
"url": "https://github.com/evyd13/nt-series/tree/main/nt-210",
"usb": {
"device_version": "1.0.0",
"pid": "0x4705",
"vid": "0xCC3F"
},
"indicators": {
"num_lock": "B4"
},
"layouts": {
"LAYOUT_numpad_6x4": {
"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": [1, 0], "x": 0, "y": 1.5 },
{ "matrix": [1, 1], "x": 1, "y": 1.5 },
{ "matrix": [1, 2], "x": 2, "y": 1.5 },
{ "matrix": [1, 3], "x": 3, "y": 1.5 },
{ "matrix": [2, 0], "x": 0, "y": 2.5 },
{ "matrix": [2, 1], "x": 1, "y": 2.5 },
{ "matrix": [2, 2], "x": 2, "y": 2.5 },
{ "h": 2, "matrix": [2, 3], "x": 3, "y": 2.5 },
{ "matrix": [3, 0], "x": 0, "y": 3.5 },
{ "matrix": [3, 1], "x": 1, "y": 3.5 },
{ "matrix": [3, 2], "x": 2, "y": 3.5 },
{ "matrix": [4, 0], "x": 0, "y": 4.5 },
{ "matrix": [4, 1], "x": 1, "y": 4.5 },
{ "matrix": [4, 2], "x": 2, "y": 4.5 },
{ "h": 2, "matrix": [4, 3], "x": 3, "y": 4.5 },
{ "matrix": [5, 0], "w": 2, "x": 0, "y": 5.5 },
{ "matrix": [5, 2], "x": 2, "y": 5.5 }
]
},
"LAYOUT_ortho_6x4": {
"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": [1, 0], "x": 0, "y": 1.5 },
{ "matrix": [1, 1], "x": 1, "y": 1.5 },
{ "matrix": [1, 2], "x": 2, "y": 1.5 },
{ "matrix": [1, 3], "x": 3, "y": 1.5 },
{ "matrix": [2, 0], "x": 0, "y": 2.5 },
{ "matrix": [2, 1], "x": 1, "y": 2.5 },
{ "matrix": [2, 2], "x": 2, "y": 2.5 },
{ "matrix": [2, 3], "x": 3, "y": 2.5 },
{ "matrix": [3, 0], "x": 0, "y": 3.5 },
{ "matrix": [3, 1], "x": 1, "y": 3.5 },
{ "matrix": [3, 2], "x": 2, "y": 3.5 },
{ "matrix": [3, 3], "x": 3, "y": 3.5 },
{ "matrix": [4, 0], "x": 0, "y": 4.5 },
{ "matrix": [4, 1], "x": 1, "y": 4.5 },
{ "matrix": [4, 2], "x": 2, "y": 4.5 },
{ "matrix": [4, 3], "x": 3, "y": 4.5 },
{ "matrix": [5, 0], "x": 0, "y": 5.5 },
{ "matrix": [5, 1], "x": 1, "y": 5.5 },
{ "matrix": [5, 2], "x": 2, "y": 5.5 },
{ "matrix": [5, 3], "x": 3, "y": 5.5 }
]
}
}
}
21 changes: 21 additions & 0 deletions keyboards/evyd13/nt210/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright 2022 Evelien Dekkers (@evyd13)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

// Defines names for use in layer keycodes and the keymap
enum layer_names {
_BASE,
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[_BASE] = LAYOUT_ortho_6x4(
KC_ESC, KC_TAB, KC_EQL, KC_BSPC,
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6, KC_NO,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, KC_NO, KC_PDOT, KC_NO),

};
48 changes: 48 additions & 0 deletions keyboards/evyd13/nt210/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2022 Evelien Dekkers (@evyd13)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

// Defines names for use in layer keycodes and the keymap
enum layer_names {
_BASE,
_FN1,
_FN2,
_FN3,
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

[_BASE] = LAYOUT_ortho_6x4(
KC_ESC, KC_TAB, KC_EQL, KC_BSPC,
KC_NUM, KC_PSLS, KC_PAST, KC_PMNS,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6, KC_NO,
KC_P1, KC_P2, KC_P3, KC_PENT,
KC_P0, KC_NO, KC_PDOT, KC_NO),

[_FN1] = LAYOUT_ortho_6x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______),

[_FN2] = LAYOUT_ortho_6x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______),

[_FN3] = LAYOUT_ortho_6x4(
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______,
_______, _______, _______, _______),

};
2 changes: 2 additions & 0 deletions keyboards/evyd13/nt210/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
27 changes: 27 additions & 0 deletions keyboards/evyd13/nt210/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# nt210

![nt120 PCB](https://i.imgur.com/DZAfoOlh.jpg)

A custom PCB for the Leopold FC210TP.

* Keyboard Maintainer: [Evelien Dekkers](https://github.com/evyd13)
* Hardware Supported: nt-120 PCB
* Hardware Availability: [Open source on GitHub](https://github.com/evyd13/nt-series/tree/main/nt-210)

Make example for this keyboard (after setting up your build environment):

make evyd13/nt210:default

Flashing example for this keyboard:

make evyd13/nt210: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**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
1 change: 1 addition & 0 deletions keyboards/evyd13/nt210/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file intentionally left blank

0 comments on commit 084df6a

Please sign in to comment.