diff options
author | Xelus22 <17491233+Xelus22@users.noreply.github.com> | 2021-04-25 08:57:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 18:57:22 +1000 |
commit | 611cd80861b1bd8ad57ef5b78f11a349e74b1949 (patch) | |
tree | 7a987f68d94fe0df6f317b32ee2830acaa4fd05d | |
parent | 89bd04b9eba72c93e6e9227179aa4a1236f3061b (diff) | |
download | qmk_firmware-611cd80861b1bd8ad57ef5b78f11a349e74b1949.tar.gz qmk_firmware-611cd80861b1bd8ad57ef5b78f11a349e74b1949.zip |
[Keyboard] Ninjin (#12496)
* ninjin init
* put in gpl thing
* underglow
* update to latest chibios
* fix gpl headers
* remove other files
* fix header
* Update keyboards/xelus/ninjin/readme.md
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update keyboards/xelus/ninjin/mcuconf.h
Co-authored-by: Nick Brassel <nick@tzarc.org>
* Update keyboards/xelus/ninjin/halconf.h
Co-authored-by: Nick Brassel <nick@tzarc.org>
Co-authored-by: Nick Brassel <nick@tzarc.org>
-rw-r--r-- | keyboards/xelus/ninjin/config.h | 60 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/halconf.h | 21 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/keymaps/default/keymap.c | 35 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/keymaps/via/keymap.c | 44 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/mcuconf.h | 22 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/ninjin.c | 28 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/ninjin.h | 37 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/readme.md | 16 | ||||
-rw-r--r-- | keyboards/xelus/ninjin/rules.mk | 24 |
10 files changed, 288 insertions, 0 deletions
diff --git a/keyboards/xelus/ninjin/config.h b/keyboards/xelus/ninjin/config.h new file mode 100644 index 000000000..cbaca37b5 --- /dev/null +++ b/keyboards/xelus/ninjin/config.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | /* USB Device descriptor parameter */ | ||
20 | #define VENDOR_ID 0x5845 // XE | ||
21 | #define PRODUCT_ID 0x4E4A // NJ | ||
22 | #define DEVICE_VER 0x0001 | ||
23 | #define MANUFACTURER Xelus | ||
24 | #define PRODUCT Ninjin | ||
25 | #define DESCRIPTION Ninjin | ||
26 | |||
27 | /* key matrix size */ | ||
28 | #define MATRIX_ROWS 6 | ||
29 | #define MATRIX_COLS 17 | ||
30 | |||
31 | #define MATRIX_COL_PINS { A9, A8, B15, B14, B13, B12, B11, B10, B2, B1, B0, A7, A6, A5, A4, B6, B5 } | ||
32 | #define MATRIX_ROW_PINS { B4, B3, A15, A3, B9, B8 } | ||
33 | #define DIODE_DIRECTION COL2ROW | ||
34 | |||
35 | /* RGB Underglow */ | ||
36 | #define RGB_DI_PIN A10 | ||
37 | #define RGBLED_NUM 26 | ||
38 | #define RGBLIGHT_ANIMATIONS | ||
39 | #define RGBLIGHT_LIMIT_VAL 200 | ||
40 | |||
41 | // PWM RGB Underglow Defines | ||
42 | #define WS2812_PWM_DRIVER PWMD1 | ||
43 | #define WS2812_PWM_CHANNEL 3 | ||
44 | #define WS2812_PWM_PAL_MODE 2 | ||
45 | #define WS2812_DMA_STREAM STM32_DMA1_STREAM5 | ||
46 | #define WS2812_DMA_CHANNEL 3 | ||
47 | #define WS2812_EXTERNAL_PULLUP | ||
48 | |||
49 | /* Set 0 if debouncing isn't needed */ | ||
50 | #define DEBOUNCE 5 | ||
51 | |||
52 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
53 | #define LOCKING_SUPPORT_ENABLE | ||
54 | |||
55 | /* Locking resynchronize hack */ | ||
56 | #define LOCKING_RESYNC_ENABLE | ||
57 | |||
58 | #define LED_CAPS_LOCK_PIN A2 | ||
59 | #define LED_SCROLL_LOCK_PIN A13 | ||
60 | #define LED_PIN_ON_STATE 1 \ No newline at end of file | ||
diff --git a/keyboards/xelus/ninjin/halconf.h b/keyboards/xelus/ninjin/halconf.h new file mode 100644 index 000000000..ee41dd8b9 --- /dev/null +++ b/keyboards/xelus/ninjin/halconf.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #define HAL_USE_PWM TRUE | ||
20 | |||
21 | #include_next <halconf.h> | ||
diff --git a/keyboards/xelus/ninjin/keymaps/default/keymap.c b/keyboards/xelus/ninjin/keymaps/default/keymap.c new file mode 100644 index 000000000..9a3f4896e --- /dev/null +++ b/keyboards/xelus/ninjin/keymaps/default/keymap.c | |||
@@ -0,0 +1,35 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | [0] = LAYOUT_all( | ||
21 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, | ||
22 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, | ||
23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, | ||
24 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, | ||
26 | KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
27 | |||
28 | [1] = LAYOUT_all( | ||
29 | RESET, 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, | ||
30 | 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, | ||
31 | 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, | ||
32 | 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, | ||
33 | 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, | ||
34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
35 | }; | ||
diff --git a/keyboards/xelus/ninjin/keymaps/via/keymap.c b/keyboards/xelus/ninjin/keymaps/via/keymap.c new file mode 100644 index 000000000..4422a5995 --- /dev/null +++ b/keyboards/xelus/ninjin/keymaps/via/keymap.c | |||
@@ -0,0 +1,44 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | [0] = LAYOUT_all( | ||
21 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SLCK, KC_PAUS, | ||
22 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP, | ||
23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN, | ||
24 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, | ||
26 | KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), | ||
27 | |||
28 | [1] = LAYOUT_all( | ||
29 | RESET, 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, | ||
30 | 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, | ||
31 | 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, | ||
32 | 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, | ||
33 | 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, | ||
34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
35 | |||
36 | [2] = LAYOUT_all( | ||
37 | 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, | ||
38 | 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, | ||
39 | 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, | ||
40 | 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, | ||
41 | 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, | ||
42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
43 | |||
44 | }; | ||
diff --git a/keyboards/xelus/ninjin/keymaps/via/rules.mk b/keyboards/xelus/ninjin/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/xelus/ninjin/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/xelus/ninjin/mcuconf.h b/keyboards/xelus/ninjin/mcuconf.h new file mode 100644 index 000000000..83ff8e2db --- /dev/null +++ b/keyboards/xelus/ninjin/mcuconf.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include_next <mcuconf.h> | ||
20 | |||
21 | #undef STM32_PWM_USE_TIM1 | ||
22 | #define STM32_PWM_USE_TIM1 TRUE | ||
diff --git a/keyboards/xelus/ninjin/ninjin.c b/keyboards/xelus/ninjin/ninjin.c new file mode 100644 index 000000000..a474e4b40 --- /dev/null +++ b/keyboards/xelus/ninjin/ninjin.c | |||
@@ -0,0 +1,28 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include "ninjin.h" | ||
18 | |||
19 | void eeconfig_init_kb(void) { // EEPROM is getting reset! | ||
20 | rgblight_enable(); // Enable RGB by default | ||
21 | rgblight_mode(RGBLIGHT_MODE_RGB_TEST); // set to RGBLIGHT_MODE_RGB_TEST by default | ||
22 | |||
23 | eeconfig_update_kb(0); | ||
24 | eeconfig_init_user(); | ||
25 | } | ||
26 | |||
27 | // Tested and verified working on Ninjin | ||
28 | void matrix_io_delay(void) { __asm__ volatile("nop\nnop\nnop\n"); } | ||
diff --git a/keyboards/xelus/ninjin/ninjin.h b/keyboards/xelus/ninjin/ninjin.h new file mode 100644 index 000000000..40a01ea5a --- /dev/null +++ b/keyboards/xelus/ninjin/ninjin.h | |||
@@ -0,0 +1,37 @@ | |||
1 | /* Copyright 2021 Harrison Chan (Xelus) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | #define ____ KC_NO | ||
22 | |||
23 | #define LAYOUT_all( \ | ||
24 | K000, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016, \ | ||
25 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ | ||
26 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \ | ||
27 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, \ | ||
28 | K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K412, K415, \ | ||
29 | K500, K501, K502, K505, K510, K512, K513, K514, K515, K516 \ | ||
30 | ) { \ | ||
31 | { K000, ____, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014, K015, K016 }, \ | ||
32 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116 }, \ | ||
33 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216 }, \ | ||
34 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, ____, K313, ____, ____, ____ }, \ | ||
35 | { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, ____, K412, ____, ____, K415, ____ }, \ | ||
36 | { K500, K501, K502, ____, ____, K505, ____, ____, ____, ____, K510, ____, K512, K513, K514, K515, K516 } \ | ||
37 | } | ||
diff --git a/keyboards/xelus/ninjin/readme.md b/keyboards/xelus/ninjin/readme.md new file mode 100644 index 000000000..d84c2c7a9 --- /dev/null +++ b/keyboards/xelus/ninjin/readme.md | |||
@@ -0,0 +1,16 @@ | |||
1 | # Ninjin | ||
2 | |||
3 | Ninjin is a USB-C, hotswap and underglow TKL PCB. | ||
4 | |||
5 | * Keyboard Maintainer: [Xelus22](https://github.com/Xelus22) | ||
6 | * Hardware Supported: STM32F072CBT6 | ||
7 | |||
8 | Make example for this keyboard (after setting up your build environment): | ||
9 | |||
10 | make xelus/ninjin:default | ||
11 | |||
12 | Flashing example for this keyboard: | ||
13 | |||
14 | make xelus/ninjin:flash | ||
15 | |||
16 | 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/xelus/ninjin/rules.mk b/keyboards/xelus/ninjin/rules.mk new file mode 100644 index 000000000..bb7ad5260 --- /dev/null +++ b/keyboards/xelus/ninjin/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F072 | ||
3 | |||
4 | # Build Options | ||
5 | # change yes to no to disable | ||
6 | # | ||
7 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
8 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
9 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
10 | CONSOLE_ENABLE = yes # Console for debug | ||
11 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
12 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
13 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
14 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
15 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
18 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
19 | AUDIO_ENABLE = no # Audio output | ||
20 | |||
21 | WS2812_DRIVER = pwm | ||
22 | |||
23 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
24 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||