diff --git a/keyboards/xbows/numpad_v2/config.h b/keyboards/xbows/numpad_v2/config.h new file mode 100644 index 00000000000..e13de332295 --- /dev/null +++ b/keyboards/xbows/numpad_v2/config.h @@ -0,0 +1,18 @@ +/* Copyright 2025 Shulin Huang + * + * 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 . + */ +#pragma once + +#define IS31FL3731_I2C_ADDRESS_1 IS31FL3731_I2C_ADDRESS_VCC diff --git a/keyboards/xbows/numpad_v2/keyboard.json b/keyboards/xbows/numpad_v2/keyboard.json new file mode 100644 index 00000000000..0ccd2f8d022 --- /dev/null +++ b/keyboards/xbows/numpad_v2/keyboard.json @@ -0,0 +1,106 @@ +{ + "keyboard_name": "NUMPAD_V2", + "manufacturer": "X-BOWS", + "maintainer": "xbows-qmk", + "usb": { + "vid": "0x5842", + "pid": "0x4E76", + "device_version": "0.0.1" + }, + "rgb_matrix": { + "animations": { + "breathing": true, + "band_spiral_val": true, + "cycle_all": true, + "cycle_left_right": true, + "cycle_up_down": true, + "cycle_out_in": true, + "cycle_pinwheel": true, + "cycle_spiral": true, + "rainbow_pinwheels": true, + "raindrops": true, + "solid_reactive_simple": true, + "solid_reactive": true, + "solid_reactive_wide": true, + "solid_reactive_cross": true, + "splash": true, + "solid_multisplash": true + }, + "center_point": [30, 32], + "driver": "is31fl3731", + "layout": [ + {"matrix": [0, 0], "x": 0, "y": 0, "flags": 4}, + {"matrix": [0, 1], "x": 20, "y": 0, "flags": 4}, + {"matrix": [0, 2], "x": 40, "y": 0, "flags": 4}, + {"matrix": [0, 3], "x": 60, "y": 0, "flags": 4}, + {"matrix": [1, 0], "x": 0, "y": 13, "flags": 4}, + {"matrix": [1, 1], "x": 20, "y": 13, "flags": 4}, + {"matrix": [1, 2], "x": 40, "y": 13, "flags": 4}, + {"matrix": [1, 3], "x": 60, "y": 13, "flags": 4}, + {"matrix": [2, 0], "x": 0, "y": 25, "flags": 4}, + {"matrix": [2, 1], "x": 20, "y": 25, "flags": 4}, + {"matrix": [2, 2], "x": 40, "y": 25, "flags": 4}, + {"matrix": [2, 3], "x": 52, "y": 34, "flags": 4}, + {"matrix": [3, 0], "x": 0, "y": 38, "flags": 4}, + {"matrix": [3, 1], "x": 20, "y": 38, "flags": 4}, + {"matrix": [3, 2], "x": 40, "y": 38, "flags": 4}, + {"matrix": [4, 0], "x": 0, "y": 50, "flags": 4}, + {"matrix": [4, 1], "x": 20, "y": 50, "flags": 4}, + {"matrix": [4, 2], "x": 40, "y": 50, "flags": 4}, + {"matrix": [4, 3], "x": 52, "y": 57, "flags": 4}, + {"matrix": [5, 0], "x": 10, "y": 63, "flags": 4}, + {"matrix": [5, 2], "x": 40, "y": 63, "flags": 4} + ], + "led_process_limit": 18, + "max_brightness": 200, + "sleep": true + }, + "features": { + "bootmagic": true, + "extrakey": true, + "mousekey": true, + "nkro": true, + "rgb_matrix": true + }, + "matrix_pins": { + "cols": ["D4", "D6", "B2", "B1"], + "rows": ["B5", "B4", "C6", "B6", "D7", "B3"] + }, + "diode_direction": "COL2ROW", + "processor": "atmega32u4", + "bootloader": "atmel-dfu", + "debounce": 3, + "community_layouts": ["numpad_6x4"], + "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}, + + {"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": [2, 3], "x": 3, "y": 2.5, "h": 2}, + + {"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": [5, 0], "x": 0, "y": 5.5, "w": 2}, + {"matrix": [5, 2], "x": 2, "y": 5.5}, + {"matrix": [4, 3], "x": 3, "y": 4.5, "h": 2} + ] + } + } +} diff --git a/keyboards/xbows/numpad_v2/keymaps/default/keymap.c b/keyboards/xbows/numpad_v2/keymaps/default/keymap.c new file mode 100644 index 00000000000..3fd67eeb86e --- /dev/null +++ b/keyboards/xbows/numpad_v2/keymaps/default/keymap.c @@ -0,0 +1,33 @@ +/* Copyright 2025 Shulin Huang + * + * 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] = { + [0] = LAYOUT_numpad_6x4( + KC_ESC, KC_TAB, KC_BSPC, MO(1), + KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, + KC_P7, KC_P8, KC_P9, + KC_P4, KC_P5, KC_P6, KC_PPLS, + KC_P1, KC_P2, KC_P3, + KC_P0, KC_PDOT, KC_PENT), + [1] = LAYOUT_numpad_6x4( + QK_BOOT, EE_CLR, KC_TRNS, KC_TRNS, + KC_CALC, KC_MYCM, KC_MSEL, KC_MAIL, + RM_NEXT, RM_VALU, RM_HUEU, + RM_SPDD, RM_TOGG, RM_SPDU, KC_TRNS, + KC_TRNS, RM_VALD, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS) +}; diff --git a/keyboards/xbows/numpad_v2/numpad_v2.c b/keyboards/xbows/numpad_v2/numpad_v2.c new file mode 100644 index 00000000000..4ff1243b37f --- /dev/null +++ b/keyboards/xbows/numpad_v2/numpad_v2.c @@ -0,0 +1,59 @@ +/* Copyright 2025 Shulin Huang + * + * 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 "quantum.h" + #ifdef RGB_MATRIX_ENABLE + const is31fl3731_led_t PROGMEM g_is31fl3731_leds[IS31FL3731_LED_COUNT] = { + + {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, C3_14, C2_14, C1_14}, // 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, C6_9, C5_9, C4_9}, // L16 + {0, C6_10, C5_10, C4_10}, // L17 + {0, C6_11, C5_11, C4_11}, // L17 + {0, C6_14, C5_14, C4_14}, // L19 + + {0, C6_16, C5_16, C4_16}, // L20 + {0, C6_15, C5_15, C4_15}, // L21 + + }; +bool rgb_matrix_indicators_kb(void) { + if (!rgb_matrix_indicators_user()) { + return false; + } + if (host_keyboard_led_state().num_lock) { + rgb_matrix_set_color(4, 0xFF, 0xFF, 0xFF); + } + return true; +} + +#endif diff --git a/keyboards/xbows/numpad_v2/readme.md b/keyboards/xbows/numpad_v2/readme.md new file mode 100644 index 00000000000..662fb1a6801 --- /dev/null +++ b/keyboards/xbows/numpad_v2/readme.md @@ -0,0 +1,34 @@ +# NUMPAD_V2 +![NUMPAD_V2](https://i.imgur.com/LHzwyVL.jpg) + +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_v2 +* Hardware Availability: [X-BOWS](https://x-bows.com/) + +Make example for this keyboard (after setting up your build environment): + + make xbows/numpad_v2:default + +Flashing example for this keyboard: + + make xbows/numpad_v2: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 2 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 +* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available