summaryrefslogtreecommitdiff
path: root/keyboards/xbows/numpad
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/xbows/numpad')
-rw-r--r--keyboards/xbows/numpad/config.h47
-rw-r--r--keyboards/xbows/numpad/info.json41
-rw-r--r--keyboards/xbows/numpad/keymaps/default/config.h43
-rw-r--r--keyboards/xbows/numpad/keymaps/default/keymap.c49
-rw-r--r--keyboards/xbows/numpad/keymaps/via/config.h64
-rw-r--r--keyboards/xbows/numpad/keymaps/via/keymap.c63
-rw-r--r--keyboards/xbows/numpad/keymaps/via/rules.mk1
-rw-r--r--keyboards/xbows/numpad/numpad.c80
-rw-r--r--keyboards/xbows/numpad/numpad.h33
-rw-r--r--keyboards/xbows/numpad/readme.md29
-rw-r--r--keyboards/xbows/numpad/rules.mk25
11 files changed, 475 insertions, 0 deletions
diff --git a/keyboards/xbows/numpad/config.h b/keyboards/xbows/numpad/config.h
new file mode 100644
index 0000000000..fd13305ed9
--- /dev/null
+++ b/keyboards/xbows/numpad/config.h
@@ -0,0 +1,47 @@
+/* Copyright 2021 Shulin Huang <mumu@x-bows.com>
+ *
+ * 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/>.
+ */
+#pragma once
+
+#include "config_common.h"
+
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x1228
+#define DEVICE_VER 0x0001
+#define MANUFACTURER X-BOWS
+#define PRODUCT NUMPAD
+
+#define MATRIX_ROWS 6
+#define MATRIX_COLS 4
+#define MATRIX_ROW_PINS { B5, B4, C6, B6, D7, B3 }
+#define MATRIX_COL_PINS { D4, D6, B2, B1 }
+#define DIODE_DIRECTION COL2ROW
+
+#define DEBOUNCE 3
+
+#ifdef RGB_MATRIX_ENABLE
+# define RGB_MATRIX_LED_PROCESS_LIMIT 18
+# define RGB_MATRIX_LED_FLUSH_LIMIT 16
+# define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
+# define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended
+# define RGB_MATRIX_KEYPRESSES
+# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
+# define RGB_MATRIX_CENTER { 30, 32 }
+
+# define DRIVER_ADDR_1 0b1110111
+# define DRIVER_COUNT 1
+# define DRIVER_1_LED_TOTAL 22
+# define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL)
+#endif
diff --git a/keyboards/xbows/numpad/info.json b/keyboards/xbows/numpad/info.json
new file mode 100644
index 0000000000..607ab93a3a
--- /dev/null
+++ b/keyboards/xbows/numpad/info.json
@@ -0,0 +1,41 @@
+{
+ "keyboard_name": "NUMPAD",
+ "url": "",
+ "maintainer": "xbows-qmk",
+ "width": 4,
+ "height": 6.5,
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"label":"Esc", "x":0, "y":0},
+ {"label":"Tab", "x":1, "y":0},
+ {"label":"Backspace", "x":2, "y":0},
+ {"label":"Fn", "x":3, "y":0},
+
+ {"label":"Num Lock", "x":0, "y":1.5},
+ {"label":"/", "x":1, "y":1.5},
+ {"label":"*", "x":2, "y":1.5},
+ {"label":"-", "x":3, "y":1.5},
+
+ {"label":"7", "x":0, "y":2.5},
+ {"label":"8", "x":1, "y":2.5},
+ {"label":"9", "x":2, "y":2.5},
+ {"label":"+", "x":3, "y":2.5},
+
+ {"label":"4", "x":0, "y":3.5},
+ {"label":"5", "x":1, "y":3.5},
+ {"label":"6", "x":2, "y":3.5},
+ {"label":"+", "x":3, "y":3.5},
+
+ {"label":"1", "x":0, "y":4.5},
+ {"label":"2", "x":1, "y":4.5},
+ {"label":"3", "x":2, "y":4.5},
+ {"label":"Enter", "x":3, "y":4.5, "h":2},
+
+ {"label":"0", "x":0, "y":5.5, "w":2},
+ {"label":".", "x":3, "y":5.5}
+
+ ]
+ }
+ }
+}
diff --git a/keyboards/xbows/numpad/keymaps/default/config.h b/keyboards/xbows/numpad/keymaps/default/config.h
new file mode 100644
index 0000000000..c8235f5161
--- /dev/null
+++ b/keyboards/xbows/numpad/keymaps/default/config.h
@@ -0,0 +1,43 @@
+/* Copyright 2021 Shulin Huang <mumu@x-bows.com>
+ *
+ * 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/>.
+ */
+ #pragma once
+
+ #ifdef RGB_MATRIX_ENABLE
+ # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
+ # define DISABLE_RGB_MATRIX_SOLID_COLOR // Static single hue, no speed support
+ # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
+ # define DISABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
+ # define DISABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
+ # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
+ # define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAT // Single hue spinning spiral fades saturation
+ # define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
+ # define DISABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
+
+ # define DISABLE_RGB_MATRIX_DIGITAL_RAIN // That famous computer simulation
+ # define DISABLE_RGB_MATRIX_TYPING_HEATMAP // How hot is your WPM!
+
+ # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
+ # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
+ # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
+ # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
+ # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
+ # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
+ //# define DISABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
+ # define DISABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
+ # define DISABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
+ //# define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
+
+ #endif
diff --git a/keyboards/xbows/numpad/keymaps/default/keymap.c b/keyboards/xbows/numpad/keymaps/default/keymap.c
new file mode 100644
index 0000000000..b2b4da7fb5
--- /dev/null
+++ b/keyboards/xbows/numpad/keymaps/default/keymap.c
@@ -0,0 +1,49 @@
+/* Copyright 2021 Shulin Huang <mumu@x-bows.com>
+ *
+ * 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] = {
+ /* Keymap VANILLA: (Base Layer) Default Layer
+ *
+ * |-------------------------------|
+ * | Esc | Tab | BS | Fn |
+ * |-------------------------------|
+ * | NUM | / | * | = |
+ * |-------------------------------|
+ * | 7 | 8 | 9 | - |
+ * |-------------------------------|
+ * | 4 | 5 | 6 | + |
+ * |-------------------------------|
+ * | 1 | 2 | 3 | ENTER |
+ * |-------------------------------|
+ * | 0 | . |
+ * |-----------------------|
+ */
+ [0] = LAYOUT(
+ KC_ESC , KC_TAB, KC_BSPC, MO(1),
+ KC_NLCK, KC_PSLS, KC_PAST, KC_EQL,
+ KC_P7, KC_P8, KC_P9, KC_PMNS,
+ KC_P4, KC_P5, KC_P6, KC_PPLS,
+ KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_P0, KC_PDOT),
+ [1] = LAYOUT(
+ RESET, EEP_RST, KC_TRNS, KC_TRNS,
+ KC_CALC, KC_MYCM, KC_MSEL, KC_MAIL,
+ RGB_MOD, RGB_VAI, RGB_HUI, KC_VOLD,
+ RGB_SPD, RGB_TOG, RGB_SPI, KC_VOLU,
+ KC_TRNS, RGB_VAD, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS)
+};
diff --git a/keyboards/xbows/numpad/keymaps/via/config.h b/keyboards/xbows/numpad/keymaps/via/config.h
new file mode 100644
index 0000000000..aa5e4c1cd2
--- /dev/null
+++ b/keyboards/xbows/numpad/keymaps/via/config.h
@@ -0,0 +1,64 @@
+/* Copyright 2021 Shulin Huang <mumu@x-bows.com>
+ *
+ * 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/>.
+ */
+#pragma once
+
+#ifdef RGB_MATRIX_ENABLE
+# define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
+# define DISABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue
+# define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN // Static gradient top to bottom, speed controls how much gradient changes
+# define DISABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT // Static gradient left to right, speed controls how much gradient changes
+//# define DISABLE_RGB_MATRIX_BREATHING // Single hue brightness cycling animation
+# define DISABLE_RGB_MATRIX_BAND_SAT // Single hue band fading saturation scrolling left to right
+# define DISABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right
+# define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT // Single hue 3 blade spinning pinwheel fades saturation
+# define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness
+# define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT // Single hue spinning spiral fades saturation
+# define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness
+//# define DISABLE_RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient
+//# define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right
+# define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom
+//# define DISABLE_RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in
+# define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in
+# define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradent Chevron shapped scrolling left to right
+# define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard
+# define DISABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard
+# define DISABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard
+//# define DISABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard
+# define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard
+# define DISABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue
+# define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation
+//# define DISABLE_RGB_MATRIX_HUE_BREATHING // Hue shifts up a slight ammount at the same time, then shifts back
+# define DISABLE_RGB_MATRIX_HUE_PENDULUM // Hue shifts up a slight ammount in a wave to the right, then back to the left
+//# define DISABLE_RGB_MATRIX_HUE_WAVE // Hue shifts up a slight ammount and then back down in a wave to the right
+
+# define DISABLE_RGB_MATRIX_DIGITAL_RAIN // That famous computer simulation
+# define DISABLE_RGB_MATRIX_TYPING_HEATMAP // How hot is your WPM!
+
+//# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE // Pulses keys hit to hue & value then fades value out
+//# define DISABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue
+# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE // Hue & value pulse near a single key hit then fades value out
+# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE // Hue & value pulse near multiple key hits then fades value out
+# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS // Hue & value pulse the same column and row of a single key hit then fades value out
+# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS // Hue & value pulse the same column and row of multiple key hits then fades value out
+# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS // Hue & value pulse away on the same column and row of a single key hit then fades value out
+# define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS // Hue & value pulse away on the same column and row of multiple key hits then fades value out
+//# define DISABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out
+# define DISABLE_RGB_MATRIX_MULTISPLASH // Full gradient & value pulse away from multiple key hits then fades value out
+# define DISABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out
+//# define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH // Hue & value pulse away from multiple key hits then fades value out
+
+
+#endif
diff --git a/keyboards/xbows/numpad/keymaps/via/keymap.c b/keyboards/xbows/numpad/keymaps/via/keymap.c
new file mode 100644
index 0000000000..6b122cc5d0
--- /dev/null
+++ b/keyboards/xbows/numpad/keymaps/via/keymap.c
@@ -0,0 +1,63 @@
+/* Copyright 2021 Shulin Huang <mumu@x-bows.com>
+ *
+ * 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] = {
+ /* Keymap VANILLA: (Base Layer) Default Layer
+ *
+ * |-------------------------------|
+ * | Esc | Tab | BS | Fn |
+ * |-------------------------------|
+ * | NUM | / | * | = |
+ * |-------------------------------|
+ * | 7 | 8 | 9 | - |
+ * |-------------------------------|
+ * | 4 | 5 | 6 | + |
+ * |-------------------------------|
+ * | 1 | 2 | 3 | ENTER |
+ * |-------------------------------|
+ * | 0 | . |
+ * |-----------------------|
+ */
+ [0] = LAYOUT(
+ KC_ESC , KC_TAB, KC_BSPC, MO(1),
+ KC_NLCK, KC_PSLS, KC_PAST, KC_EQL,
+ KC_P7, KC_P8, KC_P9, KC_PMNS,
+ KC_P4, KC_P5, KC_P6, KC_PPLS,
+ KC_P1, KC_P2, KC_P3, KC_PENT,
+ KC_P0, KC_PDOT),
+ [1] = LAYOUT(
+ RESET, EEP_RST, KC_TRNS, KC_TRNS,
+ KC_CALC, KC_MYCM, KC_MSEL, KC_MAIL,
+ RGB_MOD, RGB_VAI, RGB_HUI, KC_VOLD,
+ RGB_SPD, RGB_TOG, RGB_SPI, KC_VOLU,
+ KC_TRNS, RGB_VAD, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS),
+ [2] = LAYOUT(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, 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(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, 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/xbows/numpad/keymaps/via/rules.mk b/keyboards/xbows/numpad/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/xbows/numpad/keymaps/via/rules.mk
@@ -0,0 +1 @@
+VIA_ENABLE = yes
diff --git a/keyboards/xbows/numpad/numpad.c b/keyboards/xbows/numpad/numpad.c
new file mode 100644
index 0000000000..0ab677c769
--- /dev/null
+++ b/keyboards/xbows/numpad/numpad.c
@@ -0,0 +1,80 @@
+/* Copyright 2021 Shulin Huang <mumu@x-bows.com>
+ *
+ * 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 "numpad.h"
+ #ifdef RGB_MATRIX_ENABLE
+ const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
+
+ {0, C3_3, C2_3, C1_3}, // L01
+ {0, C3_4, C2_4, C1_4}, // L02
+ {0, C9_5, C8_5, C7_5}, // L03
+ {0, C9_6, C8_6, C7_6}, // L04
+
+ {0, C6_1, C5_1, C4_1}, // L05
+ {0, C6_2, C5_2, C4_2}, // L06
+ {0, C6_3, C5_3, C4_3}, // L07
+ {0, C6_6, C5_6, C4_6}, // L08
+
+ {0, C9_1, C8_1, C7_1}, // L09
+ {0, C9_2, C8_2, C7_2}, // L10
+ {0, C9_3, C8_3, C7_3}, // L11
+ {0, C9_4, C8_4, C7_4}, // L12
+
+ {0, C3_11, C2_11, C1_11}, // L13
+ {0, C3_12, C2_12, C1_12}, // L14
+ {0, C3_13, C2_13, C1_13}, // L15
+ {0, C3_14, C2_14, C1_14}, // L16
+
+ {0, C6_9, C5_9, C4_9}, // L17
+ {0, C6_10, C5_10, C4_10}, // L18
+ {0, C6_11, C5_11, C4_11}, // L19
+ {0, C6_14, C5_14, C4_14}, // L20
+
+ {0, C6_16, C5_16, C4_16}, // L21
+ {0, C6_15, C5_15, C4_15}, // L22
+
+ };
+
+ led_config_t g_led_config = { {
+ { 0, 1, 2, 3 },
+ { 4, 5, 6, 7 },
+ { 8, 9, 10, 11 },
+ { 12, 13, 14, 15 },
+ { 16, 17, 18, 19 },
+ { 20, NO_LED, 21, NO_LED}
+ }, {
+ {0,0}, {20,0}, {40,0}, {60,0},
+ {0,13}, {20,13}, {40,13}, {60,13},
+ {0,25}, {20,25}, {40,25}, {60,25},
+ {0,38}, {20,38}, {40,38}, {60,38},
+ {0,50}, {20,50}, {40,50}, {60,57},
+ {10,63}, {40,63}
+ }, {
+ 4, 4, 4, 4,
+ 4, 4, 4, 4,
+ 4, 4, 4, 4,
+ 4, 4, 4, 4,
+ 4, 4, 4, 4,
+ 4, 4,
+ } };
+
+
+ __attribute__ ((weak)) void rgb_matrix_indicators_user(void) {
+ if (host_keyboard_led_state().num_lock) {
+ rgb_matrix_set_color(4, 0xFF, 0xFF, 0xFF);
+ }
+}
+
+#endif
diff --git a/keyboards/xbows/numpad/numpad.h b/keyboards/xbows/numpad/numpad.h
new file mode 100644
index 0000000000..c160bff757
--- /dev/null
+++ b/keyboards/xbows/numpad/numpad.h
@@ -0,0 +1,33 @@
+/* Copyright 2021 Shulin Huang <mumu@x-bows.com>
+ *
+ * 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/>.
+ */
+#pragma once
+#include "quantum.h"
+#define LAYOUT( \
+ K000, K001, K002, K003, \
+ K100, K101, K102, K103, \
+ K200, K201, K202, K203, \
+ K300, K301, K302, K303, \
+ K400, K401, K402, K403, \
+ K500, K502 \
+) \
+ { \
+ { K000, K001, K002, K003 }, \
+ { K100, K101, K102, K103 }, \
+ { K200, K201, K202, K203 }, \
+ { K300, K301, K302, K303 }, \
+ { K400, K401, K402, K403 }, \
+ { K500, KC_NO,K502, KC_NO} \
+}
diff --git a/keyboards/xbows/numpad/readme.md b/keyboards/xbows/numpad/readme.md
new file mode 100644
index 0000000000..804042afff
--- /dev/null
+++ b/keyboards/xbows/numpad/readme.md
@@ -0,0 +1,29 @@
+# NUMPAD
+![NUMPAD](https://cdn.shopifycdn.net/s/files/1/0014/7623/1237/products/BestSeller_8_1024x1024@2x.png?v=1616165816)
+
+Knight-Plus is an Ergonomic Mechanical keyboard suite redesigned by X-Bow that includes both the main keyboard and the numpad.
+
+If you spend your work days in front of a computer, you have likely felt some discomfort after a long day of typing. While spending less time on our computers would be the ideal remedy for this problem, that is not a realistic solution for most people. X-Bows was designed to limit the stress on your hands and wrists while also providing a productive and stylish typing experience.
+
+
+X-Bows was designed with three criteria in mind:
+* Enhancing the comfort and ergonomics of the keyboard
+* Limiting the learning curve for our new layout
+* Creating an attractive design
+
+
+* Keyboard Maintainer: X-BOWS
+* Hardware Supported: X-BOWS Numpad
+* Hardware Availability: [X-BOWS](https://x-bows.com/)
+
+Make example for this keyboard (after setting up your build environment):
+
+ make xbows/numpad:default
+ make xbows/numpad:via
+
+Flashing example for this keyboard:
+
+ make xbows/numpad:default:flash
+ make xbows/numpad:via: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).
diff --git a/keyboards/xbows/numpad/rules.mk b/keyboards/xbows/numpad/rules.mk
new file mode 100644
index 0000000000..f716d8fd3c
--- /dev/null
+++ b/keyboards/xbows/numpad/rules.mk
@@ -0,0 +1,25 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+BOOTLOADER = atmel-dfu
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
+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
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
+NO_USB_STARTUP_CHECK = no # Disables usb supend check after keyboard startup
+# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
+NKRO_ENABLE = yes # USB Nkey Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
+BLUETOOTH_ENABLE = no # Enable Bluetooth
+AUDIO_ENABLE = no # Audio output
+RGB_MATRIX_ENABLE = yes
+RGB_MATRIX_DRIVER = IS31FL3731