diff options
| author | peepeetee <43021794+peepeetee@users.noreply.github.com> | 2021-12-25 09:17:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-24 17:17:48 -0800 |
| commit | 53996a78b59a9f1c53ad88e8dbc1ed252d3ed7d0 (patch) | |
| tree | 72fe7b398c98bcbc162897ee06a3c0eccbc41b8d | |
| parent | 1e28667ef8bf26a56faf26bf9af2542a18597721 (diff) | |
| download | qmk_firmware-53996a78b59a9f1c53ad88e8dbc1ed252d3ed7d0.tar.gz qmk_firmware-53996a78b59a9f1c53ad88e8dbc1ed252d3ed7d0.zip | |
[Keyboard] Add bm60hsrgb_poker/rev2, a continuation of #15001 (#15103)
Co-authored-by: Ryan <fauxpark@gmail.com>
18 files changed, 606 insertions, 3 deletions
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/readme.md b/keyboards/kprepublic/bm60hsrgb_poker/readme.md index ef29166df..5c9a843d1 100644 --- a/keyboards/kprepublic/bm60hsrgb_poker/readme.md +++ b/keyboards/kprepublic/bm60hsrgb_poker/readme.md | |||
| @@ -2,12 +2,15 @@ | |||
| 2 | 2 | ||
| 3 | A 60% hotswap inswitch RGB (north facing) keyboard from KP Republic. | 3 | A 60% hotswap inswitch RGB (north facing) keyboard from KP Republic. |
| 4 | 4 | ||
| 5 | * Keyboard Maintainer: [ipetepete](https://github.com/ipetepete) | 5 | * Hardware Supported: BM60HSRGB_Poker/rev2 |
| 6 | * Hardware Supported: BM60HSRGB_Poker | ||
| 7 | * Hardware Availability: [KP Republic](https://kprepublic.com/products/bm60-rgb-poker-60-gh60-hot-swap-custom-mechanical-keyboard-pcb-program-qmk-underglow-type-c) | 6 | * Hardware Availability: [KP Republic](https://kprepublic.com/products/bm60-rgb-poker-60-gh60-hot-swap-custom-mechanical-keyboard-pcb-program-qmk-underglow-type-c) |
| 8 | 7 | ||
| 9 | Make example for this keyboard (after setting up your build environment): | 8 | Make example for this keyboard (after setting up your build environment): |
| 10 | 9 | ||
| 11 | make kprepublic/bm60hsrgb_poker/rev1:default | 10 | for rev1: make kprepublic/bm60hsrgb_poker/rev1:default |
| 11 | for rev2: make kprepublic/bm60hsrgb_poker/rev2:default | ||
| 12 | |||
| 13 | To determine your board revision, check the PCB. For boards with bm60v2_poker printed on the PCB, use rev2. Otherwise, use rev1 | ||
| 12 | 14 | ||
| 13 | 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). | 15 | 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). |
| 16 | |||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/david/keymap.c b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/david/keymap.c index 5050b25a9..5050b25a9 100644 --- a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/david/keymap.c +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/david/keymap.c | |||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/default/keymap.c b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/default/keymap.c index efd74ad13..efd74ad13 100644 --- a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/default/keymap.c +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/default/keymap.c | |||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/ipetepete/keymap.c b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/keymap.c index e59660242..e59660242 100644 --- a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/ipetepete/keymap.c +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/keymap.c | |||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/ipetepete/readme.md b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/readme.md index 7d381ff12..7d381ff12 100644 --- a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/ipetepete/readme.md +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/readme.md | |||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/ipetepete/rules.mk b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/rules.mk index 3a025ba3a..3a025ba3a 100644 --- a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/ipetepete/rules.mk +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/ipetepete/rules.mk | |||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/via/keymap.c b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/via/keymap.c index 8f577b459..8f577b459 100644 --- a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/via/keymap.c +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/via/keymap.c | |||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/via/rules.mk b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/via/rules.mk index 36b7ba9cb..36b7ba9cb 100644 --- a/keyboards/kprepublic/bm60hsrgb_poker/keymaps/via/rules.mk +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/keymaps/via/rules.mk | |||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev1/readme.md b/keyboards/kprepublic/bm60hsrgb_poker/rev1/readme.md new file mode 100644 index 000000000..f21ef45da --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev1/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # BM60HSRGB_Poker 60% Mechanical Keyboard RGB PCB | ||
| 2 | |||
| 3 | A 60% hotswap inswitch RGB (north facing) keyboard from KP Republic. | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [ipetepete](https://github.com/ipetepete) | ||
| 6 | * Hardware Supported: BM60HSRGB_Poker/rev1 | ||
| 7 | * Hardware Availability: [KP Republic](https://kprepublic.com/products/bm60-rgb-poker-60-gh60-hot-swap-custom-mechanical-keyboard-pcb-program-qmk-underglow-type-c) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make kprepublic/bm60hsrgb_poker/rev1:default | ||
| 12 | |||
| 13 | 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/kprepublic/bm60hsrgb_poker/rev2/config.h b/keyboards/kprepublic/bm60hsrgb_poker/rev2/config.h new file mode 100644 index 000000000..b5efc1f59 --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/config.h | |||
| @@ -0,0 +1,153 @@ | |||
| 1 | /* Copyright 2021 bdtc123 | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "config_common.h" | ||
| 19 | |||
| 20 | /* USB Device descriptor parameter */ | ||
| 21 | #define VENDOR_ID 0x4B50 | ||
| 22 | #define PRODUCT_ID 0x1122 | ||
| 23 | #define DEVICE_VER 0x0002 | ||
| 24 | #define MANUFACTURER KP Republic | ||
| 25 | #define PRODUCT BM60V2_poker | ||
| 26 | |||
| 27 | /* key matrix size */ | ||
| 28 | #define MATRIX_ROWS 5 | ||
| 29 | #define MATRIX_COLS 14 | ||
| 30 | |||
| 31 | /* | ||
| 32 | * Keyboard Matrix Assignments | ||
| 33 | * | ||
| 34 | * Change this to how you wired your keyboard | ||
| 35 | * COLS: AVR pins used for columns, left to right | ||
| 36 | * ROWS: AVR pins used for rows, top to bottom | ||
| 37 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 38 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 39 | * | ||
| 40 | */ | ||
| 41 | #define MATRIX_ROW_PINS { E6, D2, D3, D5, F6 } | ||
| 42 | #define MATRIX_COL_PINS { B2, B3, B7, B0, B1, F7, D4, D6, D7, B4, B5, B6, C6, C7 } | ||
| 43 | #define UNUSED_PINS | ||
| 44 | |||
| 45 | /* COL2ROW, ROW2COL*/ | ||
| 46 | #define DIODE_DIRECTION ROW2COL | ||
| 47 | #define USB_POLLING_INTERVAL_MS 1 | ||
| 48 | |||
| 49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 50 | #define DEBOUNCE 5 | ||
| 51 | |||
| 52 | /* disable these deprecated features by default */ | ||
| 53 | #define NO_ACTION_MACRO | ||
| 54 | #define NO_ACTION_FUNCTION | ||
| 55 | //rgb light setting | ||
| 56 | #define RGBLIGHT_LIMIT_VAL 150 | ||
| 57 | #define RGBLED_NUM 6 | ||
| 58 | #define RGB_DI_PIN F0 | ||
| 59 | #define RGBLIGHT_EFFECT_BREATHING | ||
| 60 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 61 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 62 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 63 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 64 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 65 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 66 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 67 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 68 | #define RGBLIGHT_DEFAULT_MODE RGBLIGHT_MODE_RAINBOW_MOOD | ||
| 69 | #define RGBLIGHT_HUE_STEP 8 | ||
| 70 | #define RGBLIGHT_SAT_STEP 8 | ||
| 71 | #define RGBLIGHT_VAL_STEP 8 | ||
| 72 | |||
| 73 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
| 74 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | ||
| 75 | # define RGB_MATRIX_KEYPRESSES | ||
| 76 | #define ENABLE_RGB_MATRIX_ALPHAS_MODS | ||
| 77 | #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
| 78 | #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT | ||
| 79 | #define ENABLE_RGB_MATRIX_BREATHING | ||
| 80 | #define ENABLE_RGB_MATRIX_BAND_SAT | ||
| 81 | #define ENABLE_RGB_MATRIX_BAND_VAL | ||
| 82 | #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | ||
| 83 | #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | ||
| 84 | #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
| 85 | #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
| 86 | #define ENABLE_RGB_MATRIX_CYCLE_ALL | ||
| 87 | #define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
| 88 | #define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
| 89 | #define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | ||
| 90 | #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
| 91 | #define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | ||
| 92 | #define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL | ||
| 93 | #define ENABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
| 94 | #define ENABLE_RGB_MATRIX_DUAL_BEACON | ||
| 95 | #define ENABLE_RGB_MATRIX_RAINBOW_BEACON | ||
| 96 | #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS | ||
| 97 | #define ENABLE_RGB_MATRIX_RAINDROPS | ||
| 98 | #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | ||
| 99 | #define ENABLE_RGB_MATRIX_HUE_BREATHING | ||
| 100 | #define ENABLE_RGB_MATRIX_HUE_PENDULUM | ||
| 101 | #define ENABLE_RGB_MATRIX_HUE_WAVE | ||
| 102 | #define ENABLE_RGB_MATRIX_PIXEL_FRACTAL | ||
| 103 | #define ENABLE_RGB_MATRIX_PIXEL_RAIN | ||
| 104 | |||
| 105 | #define ENABLE_RGB_MATRIX_TYPING_HEATMAP | ||
| 106 | #define ENABLE_RGB_MATRIX_DIGITAL_RAIN | ||
| 107 | |||
| 108 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
| 109 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE | ||
| 110 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
| 111 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
| 112 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
| 113 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
| 114 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
| 115 | #define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
| 116 | #define ENABLE_RGB_MATRIX_SPLASH | ||
| 117 | #define ENABLE_RGB_MATRIX_MULTISPLASH | ||
| 118 | #define ENABLE_RGB_MATRIX_SOLID_SPLASH | ||
| 119 | #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
| 120 | |||
| 121 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 180 | ||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | // Note: The RGB LED driver configuration is not inside #ifdef blocks, so that | ||
| 128 | // the driver code would still compile even without RGBLIGHT_ENABLE and | ||
| 129 | // RGB_MATRIX_ENABLE (usually this is not required, but with the custom | ||
| 130 | // IS31FL3733+WS2812 driver setup used by this board the LED controller drivers | ||
| 131 | // are compiled unconditionally). | ||
| 132 | |||
| 133 | // Configure the IS31FL3733 driver for per-key RGB LEDs | ||
| 134 | #define DRIVER_COUNT 1 | ||
| 135 | #define DRIVER_ADDR_1 0b1010000 | ||
| 136 | #define DRIVER_1_LED_TOTAL 61 | ||
| 137 | |||
| 138 | #define ISSI_LED_TOTAL DRIVER_1_LED_TOTAL | ||
| 139 | |||
| 140 | // Underglow LEDs are WS2812, but someone might want to use RGBLIGHT for them; | ||
| 141 | // don't use those LEDs in RGB Matrix in that case. | ||
| 142 | #ifdef RGBLIGHT_ENABLE | ||
| 143 | # define WS2812_LED_TOTAL 0 | ||
| 144 | #else | ||
| 145 | # define WS2812_LED_TOTAL RGBLED_NUM | ||
| 146 | #endif | ||
| 147 | |||
| 148 | #define DRIVER_LED_TOTAL (ISSI_LED_TOTAL + WS2812_LED_TOTAL) | ||
| 149 | |||
| 150 | #ifdef RGB_MATRIX_ENABLE | ||
| 151 | # define RGB_MATRIX_KEYPRESSES | ||
| 152 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 153 | #endif | ||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/info.json b/keyboards/kprepublic/bm60hsrgb_poker/rev2/info.json new file mode 100644 index 000000000..0ad2aa9d3 --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/info.json | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "bm60v2_poker", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "layouts": { | ||
| 6 | "LAYOUT": { | ||
| 7 | "layout": [ | ||
| 8 | {"x":0, "y":0}, | ||
| 9 | {"x":1, "y":0}, | ||
| 10 | {"x":2, "y":0}, | ||
| 11 | {"x":3, "y":0}, | ||
| 12 | {"x":4, "y":0}, | ||
| 13 | {"x":5, "y":0}, | ||
| 14 | {"x":6, "y":0}, | ||
| 15 | {"x":7, "y":0}, | ||
| 16 | {"x":8, "y":0}, | ||
| 17 | {"x":9, "y":0}, | ||
| 18 | {"x":10, "y":0}, | ||
| 19 | {"x":11, "y":0}, | ||
| 20 | {"x":12, "y":0}, | ||
| 21 | {"x":13, "y":0, "w":2}, | ||
| 22 | |||
| 23 | {"x":0, "y":1, "w":1.5}, | ||
| 24 | {"x":1.5, "y":1}, | ||
| 25 | {"x":2.5, "y":1}, | ||
| 26 | {"x":3.5, "y":1}, | ||
| 27 | {"x":4.5, "y":1}, | ||
| 28 | {"x":5.5, "y":1}, | ||
| 29 | {"x":6.5, "y":1}, | ||
| 30 | {"x":7.5, "y":1}, | ||
| 31 | {"x":8.5, "y":1}, | ||
| 32 | {"x":9.5, "y":1}, | ||
| 33 | {"x":10.5, "y":1}, | ||
| 34 | {"x":11.5, "y":1}, | ||
| 35 | {"x":12.5, "y":1}, | ||
| 36 | {"x":13.5, "y":1, "w":1.5}, | ||
| 37 | |||
| 38 | {"x":0, "y":2, "w":1.75}, | ||
| 39 | {"x":1.75, "y":2}, | ||
| 40 | {"x":2.75, "y":2}, | ||
| 41 | {"x":3.75, "y":2}, | ||
| 42 | {"x":4.75, "y":2}, | ||
| 43 | {"x":5.75, "y":2}, | ||
| 44 | {"x":6.75, "y":2}, | ||
| 45 | {"x":7.75, "y":2}, | ||
| 46 | {"x":8.75, "y":2}, | ||
| 47 | {"x":9.75, "y":2}, | ||
| 48 | {"x":10.75, "y":2}, | ||
| 49 | {"x":11.75, "y":2}, | ||
| 50 | {"x":12.75, "y":2, "w":2.25}, | ||
| 51 | |||
| 52 | {"x":0, "y":3, "w":2.25}, | ||
| 53 | {"x":2.25, "y":3}, | ||
| 54 | {"x":3.25, "y":3}, | ||
| 55 | {"x":4.25, "y":3}, | ||
| 56 | {"x":5.25, "y":3}, | ||
| 57 | {"x":6.25, "y":3}, | ||
| 58 | {"x":7.25, "y":3}, | ||
| 59 | {"x":8.25, "y":3}, | ||
| 60 | {"x":9.25, "y":3}, | ||
| 61 | {"x":10.25, "y":3}, | ||
| 62 | {"x":11.25, "y":3}, | ||
| 63 | {"x":14, "y":3,"w":2.75}, | ||
| 64 | |||
| 65 | {"x":0, "y":4, "w":1.25}, | ||
| 66 | {"x":1.25, "y":4, "w":1.25}, | ||
| 67 | {"x":2.5, "y":4, "w":1.25}, | ||
| 68 | {"x":3.75, "y":4, "w":6.25}, | ||
| 69 | {"x":10, "y":4,"w":1.25}, | ||
| 70 | {"x":11.25, "y":4,"w":1.25}, | ||
| 71 | {"x":12.5, "y":4,"w":1.25}, | ||
| 72 | {"x":13.75, "y":4,"w":1.25} | ||
| 73 | ] | ||
| 74 | } | ||
| 75 | } | ||
| 76 | } | ||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/default/keymap.c b/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/default/keymap.c new file mode 100644 index 000000000..b1c5c57ea --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/default/keymap.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2021 bdtc123 | ||
| 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_60_ansi( | ||
| 21 | KC_GESC, 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, | ||
| 22 | 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, | ||
| 23 | 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, | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_60_ansi( | ||
| 28 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RESET, | ||
| 29 | _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | |||
| 35 | }; | ||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/via/keymap.c b/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/via/keymap.c new file mode 100644 index 000000000..f74fa21de --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/via/keymap.c | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | /* Copyright 2021 bdtc123 | ||
| 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_60_ansi( | ||
| 21 | KC_GESC, 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, | ||
| 22 | 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, | ||
| 23 | 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, | ||
| 24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RGUI, KC_RCTL | ||
| 26 | ), | ||
| 27 | [1] = LAYOUT_60_ansi( | ||
| 28 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, RESET, | ||
| 29 | _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | [2] = LAYOUT_60_ansi( | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 40 | ), | ||
| 41 | [3] = LAYOUT_60_ansi( | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 47 | ), | ||
| 48 | |||
| 49 | }; | ||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/via/rules.mk b/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/readme.md b/keyboards/kprepublic/bm60hsrgb_poker/rev2/readme.md new file mode 100644 index 000000000..18a074cdb --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/readme.md | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # BM60 Poker 60% Mechanical Keyboard RGB PCB | ||
| 2 | |||
| 3 | A 60% hotswap inswitch RGB (north facing) keyboard from KP Republic. | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [bdtc123](https://github.com/bdtc123) | ||
| 6 | * Hardware Supported: BM60HSRGB_Poker/rev2 | ||
| 7 | * Hardware Availability: [KP Republic](https://kprepublic.com/products/bm60-rgb-poker-60-gh60-hot-swap-custom-mechanical-keyboard-pcb-program-qmk-underglow-type-c) | ||
| 8 | |||
| 9 | Make example for this keyboard (after setting up your build environment): | ||
| 10 | |||
| 11 | make kprepublic/bm60hsrgb_poker/rev2:default | ||
| 12 | |||
| 13 | 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/kprepublic/bm60hsrgb_poker/rev2/rev2.c b/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.c new file mode 100644 index 000000000..32cfce362 --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.c | |||
| @@ -0,0 +1,196 @@ | |||
| 1 | /* Copyright 2021 bdtc123 | ||
| 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 | #include "rev2.h" | ||
| 17 | |||
| 18 | #ifdef RGB_MATRIX_ENABLE | ||
| 19 | |||
| 20 | # include "i2c_master.h" | ||
| 21 | # include "is31fl3733.h" | ||
| 22 | # include "ws2812.h" | ||
| 23 | |||
| 24 | const is31_led PROGMEM g_is31_leds[DRIVER_LED_TOTAL] = { | ||
| 25 | { 0, B_1, A_1, C_1 }, | ||
| 26 | { 0, B_2, A_2, C_2 }, | ||
| 27 | { 0, B_3, A_3, C_3 }, | ||
| 28 | { 0, B_4, A_4, C_4 }, | ||
| 29 | { 0, B_5, A_5, C_5 }, | ||
| 30 | { 0, B_6, A_6, C_6 }, | ||
| 31 | { 0, B_7, A_7, C_7 }, | ||
| 32 | { 0, B_8, A_8, C_8 }, | ||
| 33 | { 0, B_9, A_9, C_9 }, | ||
| 34 | { 0, B_10, A_10, C_10 }, | ||
| 35 | { 0, B_11, A_11, C_11 }, | ||
| 36 | { 0, B_12, A_12, C_12 }, | ||
| 37 | { 0, B_13, A_13, C_13 }, | ||
| 38 | { 0, B_14, A_14, C_14 }, | ||
| 39 | |||
| 40 | { 0, E_1, D_1, F_1 }, | ||
| 41 | { 0, E_2, D_2, F_2 }, | ||
| 42 | { 0, E_3, D_3, F_3 }, | ||
| 43 | { 0, E_4, D_4, F_4 }, | ||
| 44 | { 0, E_5, D_5, F_5 }, | ||
| 45 | { 0, E_6, D_6, F_6 }, | ||
| 46 | { 0, E_7, D_7, F_7 }, | ||
| 47 | { 0, E_8, D_8, F_8 }, | ||
| 48 | { 0, E_9, D_9, F_9 }, | ||
| 49 | { 0, E_10, D_10, F_10 }, | ||
| 50 | { 0, E_11, D_11, F_11 }, | ||
| 51 | { 0, E_12, D_12, F_12 }, | ||
| 52 | { 0, E_13, D_13, F_13 }, | ||
| 53 | { 0, E_14, D_14, F_14 }, | ||
| 54 | |||
| 55 | { 0, H_1, G_1, I_1 }, | ||
| 56 | { 0, H_2, G_2, I_2 }, | ||
| 57 | { 0, H_3, G_3, I_3 }, | ||
| 58 | { 0, H_4, G_4, I_4 }, | ||
| 59 | { 0, H_5, G_5, I_5 }, | ||
| 60 | { 0, H_6, G_6, I_6 }, | ||
| 61 | { 0, H_7, G_7, I_7 }, | ||
| 62 | { 0, H_8, G_8, I_8 }, | ||
| 63 | { 0, H_9, G_9, I_9 }, | ||
| 64 | { 0, H_10, G_10, I_10 }, | ||
| 65 | { 0, H_11, G_11, I_11 }, | ||
| 66 | { 0, H_12, G_12, I_12 }, | ||
| 67 | { 0, H_14, G_14, I_14 }, | ||
| 68 | |||
| 69 | { 0, K_1, J_1, L_1 }, | ||
| 70 | { 0, K_2, J_2, L_2 }, | ||
| 71 | { 0, K_3, J_3, L_3 }, | ||
| 72 | { 0, K_4, J_4, L_4 }, | ||
| 73 | { 0, K_5, J_5, L_5 }, | ||
| 74 | { 0, K_6, J_6, L_6 }, | ||
| 75 | { 0, K_7, J_7, L_7 }, | ||
| 76 | { 0, K_8, J_8, L_8 }, | ||
| 77 | { 0, K_9, J_9, L_9 }, | ||
| 78 | { 0, K_10, J_10, L_10 }, | ||
| 79 | { 0, K_11, J_11, L_11 }, | ||
| 80 | { 0, K_13, J_13, L_13 }, | ||
| 81 | |||
| 82 | { 0, H_16, G_16, I_16 }, | ||
| 83 | { 0, H_15, G_15, I_15 }, | ||
| 84 | { 0, H_13, G_13, I_13 }, | ||
| 85 | { 0, E_15, D_15, F_15 }, | ||
| 86 | { 0, K_15, J_15, L_15 }, | ||
| 87 | { 0, K_16, J_16, L_16 }, | ||
| 88 | { 0, K_12, J_12, L_12 }, | ||
| 89 | { 0, E_16, D_16, F_16 } | ||
| 90 | }; | ||
| 91 | |||
| 92 | led_config_t g_led_config = { | ||
| 93 | { | ||
| 94 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }, | ||
| 95 | { 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 }, | ||
| 96 | { 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, NO_LED, 40 }, | ||
| 97 | { 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, NO_LED, NO_LED, 52 }, | ||
| 98 | { 53, 54, 55, NO_LED, NO_LED, 56, NO_LED, NO_LED, NO_LED, 57, 58, 59, NO_LED, 60 } | ||
| 99 | }, { | ||
| 100 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace | ||
| 101 | { 0, 0 }, { 15, 0 }, { 30, 0 }, { 45, 0 }, { 60, 0 }, { 75, 0 }, { 90, 0 }, { 105, 0 }, { 120, 0 }, { 135, 0 }, { 150, 0 }, { 165, 0 }, { 180, 0 }, { 202, 0 }, | ||
| 102 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], , | ||
| 103 | { 7, 16 }, { 22, 16 }, { 37, 16 }, { 52, 16 }, { 67, 16 }, { 82, 16 }, { 97, 16 }, { 112, 16 }, { 127, 16 }, { 142, 16 }, { 157, 16 }, { 172, 16 }, { 187, 16 }, { 206, 16 }, | ||
| 104 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter | ||
| 105 | { 11, 32 }, { 26, 32 }, { 41, 32 }, { 56, 32 }, { 71, 32 }, { 86, 32 }, { 101, 32 }, { 116, 32 }, { 131, 32 }, { 146, 32 }, { 161, 32 }, { 176, 32 }, { 198, 32 }, | ||
| 106 | // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, | ||
| 107 | { 18, 48 }, { 30, 48 }, { 45, 48 }, { 60, 48 }, { 75, 48 }, { 90, 48 }, { 105, 48 }, { 120, 48 }, { 135, 48 }, { 150, 48 }, { 165, 48 }, { 191, 48 }, | ||
| 108 | // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right | ||
| 109 | { 3, 64 }, { 22, 64 }, { 33, 64 }, { 101, 64 }, { 135, 64 }, { 153, 64 }, { 210, 64 }, { 225, 64 } | ||
| 110 | # if WS2812_LED_TOTAL > 0 | ||
| 111 | ,{ 28, 40}, { 62, 40}, { 96, 40}, {130, 40}, {164, 40}, {198, 40} | ||
| 112 | # endif | ||
| 113 | }, { | ||
| 114 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace | ||
| 115 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 116 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash | ||
| 117 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, | ||
| 118 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter | ||
| 119 | 9, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 120 | // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, | ||
| 121 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 122 | // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right | ||
| 123 | 1, 1, 1, 4, 1, 1, 1, 1 | ||
| 124 | # if WS2812_LED_TOTAL > 0 | ||
| 125 | ,2, 2, 2, 2, 2, 2 | ||
| 126 | # endif | ||
| 127 | } | ||
| 128 | }; | ||
| 129 | |||
| 130 | __attribute__ ((weak)) | ||
| 131 | void rgb_matrix_indicators_user(void) { | ||
| 132 | if (host_keyboard_led_state().caps_lock) { | ||
| 133 | rgb_matrix_set_color(28, 0xFF, 0xFF, 0xFF); | ||
| 134 | } | ||
| 135 | } | ||
| 136 | |||
| 137 | // clang-format on | ||
| 138 | |||
| 139 | // ========================================================================== | ||
| 140 | // Custom RGB Matrix driver that combines IS31FL3733 and WS2812 | ||
| 141 | // ========================================================================== | ||
| 142 | |||
| 143 | # if WS2812_LED_TOTAL > 0 | ||
| 144 | LED_TYPE rgb_matrix_ws2812_array[WS2812_LED_TOTAL]; | ||
| 145 | # endif | ||
| 146 | |||
| 147 | static void rgb_matrix_driver_init(void) { | ||
| 148 | i2c_init(); | ||
| 149 | IS31FL3733_init(DRIVER_ADDR_1, 0); | ||
| 150 | for (uint8_t index = 0; index < ISSI_LED_TOTAL; index++) { | ||
| 151 | bool enabled = true; | ||
| 152 | IS31FL3733_set_led_control_register(index, enabled, enabled, enabled); | ||
| 153 | } | ||
| 154 | IS31FL3733_update_led_control_registers(DRIVER_ADDR_1, 0); | ||
| 155 | } | ||
| 156 | |||
| 157 | static void rgb_matrix_driver_flush(void) { | ||
| 158 | IS31FL3733_update_pwm_buffers(DRIVER_ADDR_1, 0); | ||
| 159 | # if WS2812_LED_TOTAL > 0 | ||
| 160 | ws2812_setleds(rgb_matrix_ws2812_array, WS2812_LED_TOTAL); | ||
| 161 | # endif | ||
| 162 | } | ||
| 163 | |||
| 164 | static void rgb_matrix_driver_set_color(int index, uint8_t red, uint8_t green, uint8_t blue) { | ||
| 165 | if (index < ISSI_LED_TOTAL) { | ||
| 166 | IS31FL3733_set_color(index, red, green, blue); | ||
| 167 | } else { | ||
| 168 | # if WS2812_LED_TOTAL > 0 | ||
| 169 | rgb_matrix_ws2812_array[index - ISSI_LED_TOTAL].r = red; | ||
| 170 | rgb_matrix_ws2812_array[index - ISSI_LED_TOTAL].g = green; | ||
| 171 | rgb_matrix_ws2812_array[index - ISSI_LED_TOTAL].b = blue; | ||
| 172 | # endif | ||
| 173 | } | ||
| 174 | } | ||
| 175 | |||
| 176 | static void rgb_matrix_driver_set_color_all(uint8_t red, uint8_t green, uint8_t blue) { | ||
| 177 | IS31FL3733_set_color_all(red, green, blue); | ||
| 178 | # if WS2812_LED_TOTAL > 0 | ||
| 179 | for (uint8_t i = 0; i < WS2812_LED_TOTAL; i++) { | ||
| 180 | rgb_matrix_ws2812_array[i].r = red; | ||
| 181 | rgb_matrix_ws2812_array[i].g = green; | ||
| 182 | rgb_matrix_ws2812_array[i].b = blue; | ||
| 183 | } | ||
| 184 | # endif | ||
| 185 | } | ||
| 186 | |||
| 187 | // clang-format off | ||
| 188 | const rgb_matrix_driver_t rgb_matrix_driver = { | ||
| 189 | .init = rgb_matrix_driver_init, | ||
| 190 | .flush = rgb_matrix_driver_flush, | ||
| 191 | .set_color = rgb_matrix_driver_set_color, | ||
| 192 | .set_color_all = rgb_matrix_driver_set_color_all, | ||
| 193 | }; | ||
| 194 | // clang-format on | ||
| 195 | |||
| 196 | #endif /* RGB_MATRIX_ENABLE */ | ||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.h b/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.h new file mode 100644 index 000000000..6b4344586 --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/rev2.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* Copyright 2021 bdtc123 | ||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | #define LAYOUT_60_ansi( \ | ||
| 21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \ | ||
| 22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \ | ||
| 23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2D, \ | ||
| 24 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3D, \ | ||
| 25 | K40, K41, K42, K45, K49, K4A, K4B, K4D \ | ||
| 26 | ) { \ | ||
| 27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
| 28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \ | ||
| 29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, KC_NO, K2D }, \ | ||
| 30 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, KC_NO, KC_NO, K3D }, \ | ||
| 31 | { K40, K41, K42, KC_NO, KC_NO, K45, KC_NO, KC_NO, KC_NO, K49, K4A, K4B, KC_NO, K4D }, \ | ||
| 32 | } | ||
diff --git a/keyboards/kprepublic/bm60hsrgb_poker/rev2/rules.mk b/keyboards/kprepublic/bm60hsrgb_poker/rev2/rules.mk new file mode 100644 index 000000000..cd9c25149 --- /dev/null +++ b/keyboards/kprepublic/bm60hsrgb_poker/rev2/rules.mk | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = no # Console for debug | ||
| 14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | AUDIO_ENABLE = no # Audio output | ||
| 18 | LAYOUTS = 60_ansi | ||
| 19 | LTO_ENABLE = yes | ||
| 20 | |||
| 21 | # RGB Matrix is required to support per-key LEDs connected to IS31FL3733. | ||
| 22 | RGB_MATRIX_ENABLE = yes | ||
| 23 | |||
| 24 | # The custom RGB Matrix driver combines IS31FL3733 and WS2812; things that are | ||
| 25 | # normally done by common_features.mk for both of these drivers need to be done | ||
| 26 | # here manually. | ||
| 27 | RGB_MATRIX_DRIVER = custom | ||
| 28 | COMMON_VPATH += $(DRIVER_PATH)/led/issi | ||
| 29 | SRC += is31fl3733.c | ||
| 30 | QUANTUM_LIB_SRC += i2c_master.c | ||
| 31 | WS2812_DRIVER_REQUIRED = yes | ||
