From 4617192b689dc69596d45abb354587443d4d4edd Mon Sep 17 00:00:00 2001 From: Manassarn Manoonchai Date: Thu, 22 Jul 2021 01:41:03 +0700 Subject: [PATCH 1/3] Add narze/xd004 keymap --- keyboards/xd004/keymaps/narze/keymap.c | 13 +++++++++++++ keyboards/xd004/keymaps/narze/readme.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 keyboards/xd004/keymaps/narze/keymap.c create mode 100644 keyboards/xd004/keymaps/narze/readme.md diff --git a/keyboards/xd004/keymaps/narze/keymap.c b/keyboards/xd004/keymaps/narze/keymap.c new file mode 100644 index 000000000000..9a990efaecad --- /dev/null +++ b/keyboards/xd004/keymaps/narze/keymap.c @@ -0,0 +1,13 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + + // 0: Base Layer + LAYOUT_all(HYPR(KC_F2), HYPR(KC_F1), LCTL(KC_B), LCTL(KC_X)), + +}; + +// Loop +void matrix_scan_user(void){ + // Empty +}; diff --git a/keyboards/xd004/keymaps/narze/readme.md b/keyboards/xd004/keymaps/narze/readme.md new file mode 100644 index 000000000000..bbc4a7983c5c --- /dev/null +++ b/keyboards/xd004/keymaps/narze/readme.md @@ -0,0 +1,13 @@ +# narze Keymap for XD004 PCB + +(Key 1 is on the opposite of USB port side, so I flip the keys to make usb port be on the left) + +- Key 1 : Hyper + F2 +- Key 2 : Hyper + F1 +- Key 3 : Ctrl + B (Microphone : Toggle mute) +- Key 4 : Ctrl + X (Microphone : Push to talk) + +## Build & Flash + +- Put this board in DFU : bridge the last two pins (#5 & 6) of the 6-pin "J2" header on the opposite edge of the board to the USB port. +- `make xd004/v1:narze:dfu` or `qmk flash -kb xd004/v1 -km narze` From 173c9dfa6d5917451e9cdb2b8fba12dfde0d7590 Mon Sep 17 00:00:00 2001 From: "Manassarn \"Noom\" Manoonchai" <248741+narze@users.noreply.github.com> Date: Wed, 21 Jul 2021 18:56:20 +0000 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Ryan --- keyboards/xd004/keymaps/narze/keymap.c | 5 ----- keyboards/xd004/keymaps/narze/readme.md | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/keyboards/xd004/keymaps/narze/keymap.c b/keyboards/xd004/keymaps/narze/keymap.c index 9a990efaecad..85ace194c50f 100644 --- a/keyboards/xd004/keymaps/narze/keymap.c +++ b/keyboards/xd004/keymaps/narze/keymap.c @@ -6,8 +6,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { LAYOUT_all(HYPR(KC_F2), HYPR(KC_F1), LCTL(KC_B), LCTL(KC_X)), }; - -// Loop -void matrix_scan_user(void){ - // Empty -}; diff --git a/keyboards/xd004/keymaps/narze/readme.md b/keyboards/xd004/keymaps/narze/readme.md index bbc4a7983c5c..6f4bca9a90bf 100644 --- a/keyboards/xd004/keymaps/narze/readme.md +++ b/keyboards/xd004/keymaps/narze/readme.md @@ -10,4 +10,4 @@ ## Build & Flash - Put this board in DFU : bridge the last two pins (#5 & 6) of the 6-pin "J2" header on the opposite edge of the board to the USB port. -- `make xd004/v1:narze:dfu` or `qmk flash -kb xd004/v1 -km narze` +- `make xd004/v1:narze:flash` or `qmk flash -kb xd004/v1 -km narze` From cf33f60da06c2660980501edac7816c115d13df1 Mon Sep 17 00:00:00 2001 From: Manassarn Manoonchai Date: Thu, 22 Jul 2021 12:32:40 +0700 Subject: [PATCH 3/3] Add license --- keyboards/xd004/keymaps/narze/keymap.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/keyboards/xd004/keymaps/narze/keymap.c b/keyboards/xd004/keymaps/narze/keymap.c index 85ace194c50f..30ea48d6837b 100644 --- a/keyboards/xd004/keymaps/narze/keymap.c +++ b/keyboards/xd004/keymaps/narze/keymap.c @@ -1,3 +1,19 @@ +/* Copyright 2021 narze + * + * 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] = {