forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Keyboard] YMDK NP21 refactor (qmk#10181)
- Loading branch information
1 parent
c7fa435
commit 4b5cde2
Showing
7 changed files
with
290 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,26 @@ | ||
#include QMK_KEYBOARD_H | ||
|
||
#define _NP 0 | ||
#define _BL 1 | ||
|
||
enum custom_keycodes { | ||
NP = SAFE_RANGE, | ||
BL | ||
enum layer_names { | ||
_NP, | ||
_BL | ||
}; | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
/* Qwerty */ | ||
|
||
[_NP] = LAYOUT_ortho_6x4( | ||
KC_ESC, KC_TAB, KC_BSPC, MO(_BL), | ||
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
KC_P1, KC_P2, KC_P3, KC_PENT, | ||
KC_P0, KC_DOT, KC_PDOT, KC_PENT | ||
), | ||
|
||
[_BL] = LAYOUT_ortho_6x4( | ||
_______, _______, _______, _______, | ||
_______, _______, _______, _______, | ||
_______, BL_ON, _______, BL_INC, | ||
_______, BL_TOGG, _______, BL_INC, | ||
_______, BL_OFF, _______, BL_DEC, | ||
BL_BRTG, _______, _______, BL_DEC | ||
) | ||
[_NP] = LAYOUT_ortho_6x4( | ||
KC_ESC, KC_TAB, KC_BSPC, MO(_BL), | ||
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
KC_P1, KC_P2, KC_P3, KC_PENT, | ||
KC_P0, KC_DOT, KC_PDOT, KC_PENT | ||
), | ||
|
||
[_BL] = LAYOUT_ortho_6x4( | ||
_______, _______, _______, _______, | ||
_______, _______, _______, _______, | ||
_______, BL_ON, _______, BL_INC, | ||
_______, BL_TOGG, _______, BL_INC, | ||
_______, BL_OFF, _______, BL_DEC, | ||
BL_BRTG, _______, _______, BL_DEC | ||
) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# default | ||
# The default keymap for the YMDK NP21 keypad | ||
|
||
The default keymap for the YMDK NP21 keypad. | ||
|
||
Base Layer Function Layer | ||
.-----. .-----. | ||
| USB | | USB | | ||
,-------------------------------. ,-------------------------------. | ||
| Esc | Tab | Back | Fn | | | | |▒▒▒▒▒▒▒| | ||
| | | Space | | | | | |▒▒▒▒▒▒▒| | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| Num | / | * | - | | | | | | | ||
| Lock | | | | | | | | | | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| 7 | 8 | 9 | + | | | BL | | BL | | ||
| Home | Up | PgUp | | | | On | | Inc | | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| 4 | 5 | 6 | + | | | BL | | BL | | ||
| Left | | Right | | | | Togg | | Inc | | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| 1 | 2 | 3 | Ent | | | BL | | BL | | ||
| End | Down | PgDn | | | | Off | | Dec | | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| 0 | . | . | Ent | | BL | | | BL | | ||
| Ins | | Del | | | Brthg | | | Dec | | ||
`-------------------------------' `-------------------------------' | ||
``` | ||
Base Layer Function Layer | ||
.-----. .-----. | ||
| USB | | USB | | ||
,-------------------------------. ,-------------------------------. | ||
| Esc | Tab | Back | Fn | | | | |▒▒▒▒▒▒▒| | ||
| | | Space | | | | | |▒▒▒▒▒▒▒| | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| Num | / | * | - | | | | | | | ||
| Lock | | | | | | | | | | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| 7 | 8 | 9 | + | | | BL | | BL | | ||
| Home | Up | PgUp | | | | On | | Inc | | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| 4 | 5 | 6 | + | | | BL | | BL | | ||
| Left | | Right | | | | Togg | | Inc | | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| 1 | 2 | 3 | Ent | | | BL | | BL | | ||
| End | Down | PgDn | | | | Off | | Dec | | ||
|-------+-------+-------+-------| |-------+-------+-------+-------| | ||
| 0 | . | . | Ent | | BL | | | BL | | ||
| Ins | | Del | | | Brthg | | | Dec | | ||
`-------------------------------' `-------------------------------' | ||
``` |
File renamed without changes.
Oops, something went wrong.