diff options
| author | peepeetee <43021794+peepeetee@users.noreply.github.com> | 2021-03-06 17:13:20 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-06 15:13:20 -0800 |
| commit | 9b85b1b638f95ec92398fdb8847561ac90e8745d (patch) | |
| tree | 0a9f16c6c981359900fa0d9f104ef1873ee75744 | |
| parent | 788b1854b42a916919c3e8efc77b366ba03d2d8c (diff) | |
| download | qmk_firmware-9b85b1b638f95ec92398fdb8847561ac90e8745d.tar.gz qmk_firmware-9b85b1b638f95ec92398fdb8847561ac90e8745d.zip | |
[Keyboard] bm68rgb (#12128)
* add support for Bbm68rgb
* pull request changes filled
* pull request changes filled(this time for real)
* added new line to files that did not have new lines at end of file
* updated modifier keys for rgb effects
* Update keyboards/bm68rgb/readme.md
* Apply suggestions from code review
* Apply suggestions from code review
* add nkro suppport
* Update keyboards/bm68rgb/rules.mk
* modified keymap to better correspond to physical layout
* updated comment style
| -rw-r--r-- | keyboards/bm68rgb/bm68rgb.c | 59 | ||||
| -rw-r--r-- | keyboards/bm68rgb/bm68rgb.h | 41 | ||||
| -rw-r--r-- | keyboards/bm68rgb/config.h | 144 | ||||
| -rw-r--r-- | keyboards/bm68rgb/info.json | 81 | ||||
| -rw-r--r-- | keyboards/bm68rgb/keymaps/default/keymap.c | 52 | ||||
| -rw-r--r-- | keyboards/bm68rgb/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/bm68rgb/readme.md | 24 | ||||
| -rw-r--r-- | keyboards/bm68rgb/rules.mk | 27 |
8 files changed, 429 insertions, 0 deletions
diff --git a/keyboards/bm68rgb/bm68rgb.c b/keyboards/bm68rgb/bm68rgb.c new file mode 100644 index 000000000..4e49a96ca --- /dev/null +++ b/keyboards/bm68rgb/bm68rgb.c | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* Copyright 2021 peepeetee | ||
| 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 "bm68rgb.h" | ||
| 18 | |||
| 19 | #ifdef RGB_MATRIX_ENABLE | ||
| 20 | led_config_t g_led_config = { { | ||
| 21 | // Key Matrix to LED Index | ||
| 22 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 }, | ||
| 23 | { 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 }, | ||
| 24 | { 30, NO_LED, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43 }, | ||
| 25 | { NO_LED, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57 }, | ||
| 26 | { 58, 59, 60, NO_LED, NO_LED, NO_LED, 61, NO_LED, NO_LED, 62, 63, 64, 65, 66, 67 } | ||
| 27 | }, { | ||
| 28 | // LED Index to Physical Position | ||
| 29 | //I have no idea how to calculate this based on a templete, nor do have a good enough ruler to measure this. | ||
| 30 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete | ||
| 31 | { 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 }, { 225, 0 }, | ||
| 32 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home | ||
| 33 | { 4, 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 }, { 225, 16 }, | ||
| 34 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up | ||
| 35 | { 6, 32 }, { 26, 32 }, { 41, 32 }, { 56, 32 }, { 71, 32 }, { 86, 32 }, { 101, 32 }, { 116, 32 }, { 131, 32 }, { 146, 32 }, { 161, 32 }, { 176, 32 }, { 201, 32 }, { 225, 32 }, | ||
| 36 | // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down | ||
| 37 | { 9, 48 }, { 34, 48 }, { 49, 48 }, { 64, 48 }, { 79, 48 }, { 94, 48 }, { 109, 48 }, { 124, 48 }, { 139, 48 }, { 154, 48 }, { 169, 48 }, { 189, 48 }, { 210, 48 }, { 225, 48 }, | ||
| 38 | // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right | ||
| 39 | { 2, 64 }, { 21, 64 }, { 39, 64 }, { 94, 64 }, { 148, 64 }, { 163, 64 }, { 178, 64 }, { 193, 64 }, { 208, 64 }, { 225, 64 }, | ||
| 40 | // UNDERGLOW | ||
| 41 | { 185, 45 }, { 160, 45 }, { 125, 45 }, { 95, 45 }, { 60, 45 }, { 25, 45 } | ||
| 42 | }, { | ||
| 43 | // LED Index to Flag | ||
| 44 | //need to recheck what should be a modifier | ||
| 45 | |||
| 46 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete | ||
| 47 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, | ||
| 48 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], backslash , Home | ||
| 49 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 50 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter, Page up | ||
| 51 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, | ||
| 52 | // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, Page Down | ||
| 53 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, | ||
| 54 | // Ctrl, GUI, Alt, Space, RAlt, FN, Ctrl, Left, Down, Right | ||
| 55 | 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, | ||
| 56 | // UNDERGLOW | ||
| 57 | 2, 2, 2, 2, 2, 2 | ||
| 58 | } }; | ||
| 59 | #endif | ||
diff --git a/keyboards/bm68rgb/bm68rgb.h b/keyboards/bm68rgb/bm68rgb.h new file mode 100644 index 000000000..3e18b914c --- /dev/null +++ b/keyboards/bm68rgb/bm68rgb.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* Copyright 2021 peepeetee | ||
| 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 | /* This is a shortcut to help you visually see your layout. | ||
| 22 | * | ||
| 23 | * The first section contains all of the arguments representing the physical | ||
| 24 | * layout of the board and position of the keys. | ||
| 25 | * | ||
| 26 | * The second converts the arguments into a two-dimensional array which | ||
| 27 | * represents the switch matrix. | ||
| 28 | */ | ||
| 29 | #define LAYOUT_65_ansi( \ | ||
| 30 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E,\ | ||
| 31 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E,\ | ||
| 32 | k20, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D, k2E,\ | ||
| 33 | k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E,\ | ||
| 34 | k40, k41, k42, k46, k49, k4A, k4B, k4C, k4D, k4E\ | ||
| 35 | ) { \ | ||
| 36 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A, k0B, k0C, k0D, k0E }, \ | ||
| 37 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A, k1B, k1C, k1D, k1E }, \ | ||
| 38 | { k20, KC_NO, k22, k23, k24, k25, k26, k27, k28, k29, k2A, k2B, k2C, k2D, k2E }, \ | ||
| 39 | { KC_NO, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A, k3B, k3C, k3D, k3E }, \ | ||
| 40 | { k40, k41, k42, KC_NO, KC_NO, KC_NO, k46, KC_NO, KC_NO, k49, k4A, k4B, k4C, k4D, k4E }, \ | ||
| 41 | } | ||
diff --git a/keyboards/bm68rgb/config.h b/keyboards/bm68rgb/config.h new file mode 100644 index 000000000..250b9d734 --- /dev/null +++ b/keyboards/bm68rgb/config.h | |||
| @@ -0,0 +1,144 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2021 peepeetee | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | #include "config_common.h" | ||
| 21 | |||
| 22 | /* USB Device descriptor parameter */ | ||
| 23 | #define VENDOR_ID 0x4B50 //KP | ||
| 24 | #define PRODUCT_ID 0xEF6F | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER KPRepublic | ||
| 27 | #define PRODUCT bm68rgb | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 15 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { B0, \ | ||
| 44 | B1, \ | ||
| 45 | B2, \ | ||
| 46 | B3, \ | ||
| 47 | E6 } | ||
| 48 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, F7, F6 } | ||
| 49 | #define UNUSED_PINS | ||
| 50 | |||
| 51 | /* COL2ROW, ROW2COL */ | ||
| 52 | #define DIODE_DIRECTION COL2ROW | ||
| 53 | |||
| 54 | // The pin connected to the data pin of the LEDs | ||
| 55 | #define RGB_DI_PIN E2 | ||
| 56 | // The number of LEDs connected | ||
| 57 | #define DRIVER_LED_TOTAL 74 | ||
| 58 | #ifdef RGB_DI_PIN | ||
| 59 | #define RGBLED_NUM 74 | ||
| 60 | //# define RGBLIGHT_HUE_STEP 8 | ||
| 61 | //# define RGBLIGHT_SAT_STEP 8 | ||
| 62 | //# define RGBLIGHT_VAL_STEP 8 | ||
| 63 | //# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 64 | //# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 65 | /*== all animations enable ==*/ | ||
| 66 | //# define RGBLIGHT_ANIMATIONS | ||
| 67 | /*== or choose animations ==*/ | ||
| 68 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 69 | //# define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 70 | //# define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 71 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 72 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 73 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 74 | //# define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 75 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 76 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 77 | /*== customize breathing effect ==*/ | ||
| 78 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 79 | //# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 80 | /*==== use exp() and sin() ====*/ | ||
| 81 | //# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 82 | //# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 83 | #endif | ||
| 84 | |||
| 85 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 86 | #define DEBOUNCE 5 | ||
| 87 | |||
| 88 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 89 | //#define MATRIX_HAS_GHOST | ||
| 90 | |||
| 91 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 92 | #define LOCKING_SUPPORT_ENABLE | ||
| 93 | /* Locking resynchronize hack */ | ||
| 94 | #define LOCKING_RESYNC_ENABLE | ||
| 95 | |||
| 96 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 97 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 98 | */ | ||
| 99 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 100 | |||
| 101 | /* | ||
| 102 | * Force NKRO | ||
| 103 | * | ||
| 104 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 105 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 106 | * makefile for this to work.) | ||
| 107 | * | ||
| 108 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 109 | * until the next keyboard reset. | ||
| 110 | * | ||
| 111 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 112 | * fully operational during normal computer usage. | ||
| 113 | * | ||
| 114 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 115 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 116 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 117 | * power-up. | ||
| 118 | * | ||
| 119 | */ | ||
| 120 | //#define FORCE_NKRO | ||
| 121 | |||
| 122 | /* | ||
| 123 | * Feature disable options | ||
| 124 | * These options are also useful to firmware size reduction. | ||
| 125 | */ | ||
| 126 | |||
| 127 | /* disable debug print */ | ||
| 128 | //#define NO_DEBUG | ||
| 129 | |||
| 130 | /* disable print */ | ||
| 131 | //#define NO_PRINT | ||
| 132 | |||
| 133 | /* disable action features */ | ||
| 134 | //#define NO_ACTION_LAYER | ||
| 135 | //#define NO_ACTION_TAPPING | ||
| 136 | //#define NO_ACTION_ONESHOT | ||
| 137 | |||
| 138 | /* disable these deprecated features by default */ | ||
| 139 | #define NO_ACTION_MACRO | ||
| 140 | #define NO_ACTION_FUNCTION | ||
| 141 | |||
| 142 | /* Bootmagic Lite key configuration */ | ||
| 143 | //#define BOOTMAGIC_LITE_ROW 0 | ||
| 144 | //#define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/bm68rgb/info.json b/keyboards/bm68rgb/info.json new file mode 100644 index 000000000..a0b48ba90 --- /dev/null +++ b/keyboards/bm68rgb/info.json | |||
| @@ -0,0 +1,81 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "bm68rgb", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "peepeetee", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_65_ansi": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K00 (B0,D0)", "x":0, "y":0}, | ||
| 11 | {"label":"K01 (B0,D1)", "x":1, "y":0}, | ||
| 12 | {"label":"K02 (B0,D2)", "x":2, "y":0}, | ||
| 13 | {"label":"K03 (B0,D3)", "x":3, "y":0}, | ||
| 14 | {"label":"K04 (B0,D5)", "x":4, "y":0}, | ||
| 15 | {"label":"K05 (B0,D4)", "x":5, "y":0}, | ||
| 16 | {"label":"K06 (B0,D6)", "x":6, "y":0}, | ||
| 17 | {"label":"K07 (B0,D7)", "x":7, "y":0}, | ||
| 18 | {"label":"K08 (B0,B4)", "x":8, "y":0}, | ||
| 19 | {"label":"K09 (B0,B5)", "x":9, "y":0}, | ||
| 20 | {"label":"K0A (B0,B6)", "x":10, "y":0}, | ||
| 21 | {"label":"K0B (B0,C6)", "x":11, "y":0}, | ||
| 22 | {"label":"K0C (B0,C7)", "x":12, "y":0}, | ||
| 23 | {"label":"K0D (B0,F7)", "x":13, "y":0, "w":2}, | ||
| 24 | {"label":"K0E (B0,F6)", "x":15, "y":0}, | ||
| 25 | {"label":"K10 (B1,D0)", "x":0, "y":1, "w":1.5}, | ||
| 26 | {"label":"K11 (B1,D1)", "x":1.5, "y":1}, | ||
| 27 | {"label":"K12 (B1,D2)", "x":2.5, "y":1}, | ||
| 28 | {"label":"K13 (B1,D3)", "x":3.5, "y":1}, | ||
| 29 | {"label":"K14 (B1,D5)", "x":4.5, "y":1}, | ||
| 30 | {"label":"K15 (B1,D4)", "x":5.5, "y":1}, | ||
| 31 | {"label":"K16 (B1,D6)", "x":6.5, "y":1}, | ||
| 32 | {"label":"K17 (B1,D7)", "x":7.5, "y":1}, | ||
| 33 | {"label":"K18 (B1,B4)", "x":8.5, "y":1}, | ||
| 34 | {"label":"K19 (B1,B5)", "x":9.5, "y":1}, | ||
| 35 | {"label":"K1A (B1,B6)", "x":10.5, "y":1}, | ||
| 36 | {"label":"K1B (B1,C6)", "x":11.5, "y":1}, | ||
| 37 | {"label":"K1C (B1,C7)", "x":12.5, "y":1}, | ||
| 38 | {"label":"K1D (B1,F7)", "x":13.5, "y":1, "w":1.5}, | ||
| 39 | {"label":"K1E (B1,F6)", "x":15, "y":1}, | ||
| 40 | {"label":"K20 (B2,D0)", "x":0, "y":2, "w":1.75}, | ||
| 41 | {"label":"K22 (B2,D2)", "x":1.75, "y":2}, | ||
| 42 | {"label":"K23 (B2,D3)", "x":2.75, "y":2}, | ||
| 43 | {"label":"K24 (B2,D5)", "x":3.75, "y":2}, | ||
| 44 | {"label":"K25 (B2,D4)", "x":4.75, "y":2}, | ||
| 45 | {"label":"K26 (B2,D6)", "x":5.75, "y":2}, | ||
| 46 | {"label":"K27 (B2,D7)", "x":6.75, "y":2}, | ||
| 47 | {"label":"K28 (B2,B4)", "x":7.75, "y":2}, | ||
| 48 | {"label":"K29 (B2,B5)", "x":8.75, "y":2}, | ||
| 49 | {"label":"K2A (B2,B6)", "x":9.75, "y":2}, | ||
| 50 | {"label":"K2B (B2,C6)", "x":10.75, "y":2}, | ||
| 51 | {"label":"K2C (B2,C7)", "x":11.75, "y":2}, | ||
| 52 | {"label":"K2D (B2,F7)", "x":12.75, "y":2, "w":2.25}, | ||
| 53 | {"label":"K2E (B2,F6)", "x":15, "y":2}, | ||
| 54 | {"label":"K31 (B3,D1)", "x":0, "y":3, "w":2.25}, | ||
| 55 | {"label":"K32 (B3,D2)", "x":2.25, "y":3}, | ||
| 56 | {"label":"K33 (B3,D3)", "x":3.25, "y":3}, | ||
| 57 | {"label":"K34 (B3,D5)", "x":4.25, "y":3}, | ||
| 58 | {"label":"K35 (B3,D4)", "x":5.25, "y":3}, | ||
| 59 | {"label":"K36 (B3,D6)", "x":6.25, "y":3}, | ||
| 60 | {"label":"K37 (B3,D7)", "x":7.25, "y":3}, | ||
| 61 | {"label":"K38 (B3,B4)", "x":8.25, "y":3}, | ||
| 62 | {"label":"K39 (B3,B5)", "x":9.25, "y":3}, | ||
| 63 | {"label":"K3A (B3,B6)", "x":10.25, "y":3}, | ||
| 64 | {"label":"K3B (B3,C6)", "x":11.25, "y":3}, | ||
| 65 | {"label":"K3C (B3,C7)", "x":12.25, "y":3, "w":1.75}, | ||
| 66 | {"label":"K3D (B3,F7)", "x":14, "y":3}, | ||
| 67 | {"label":"K3E (B3,F6)", "x":15, "y":3}, | ||
| 68 | {"label":"K40 (E6,D0)", "x":0, "y":4, "w":1.25}, | ||
| 69 | {"label":"K41 (E6,D1)", "x":1.25, "y":4, "w":1.25}, | ||
| 70 | {"label":"K42 (E6,D2)", "x":2.5, "y":4, "w":1.25}, | ||
| 71 | {"label":"K46 (E6,D6)", "x":3.75, "y":4, "w":6.25}, | ||
| 72 | {"label":"K49 (E6,B5)", "x":10, "y":4}, | ||
| 73 | {"label":"K4A (E6,B6)", "x":11, "y":4}, | ||
| 74 | {"label":"K4B (E6,C6)", "x":12, "y":4}, | ||
| 75 | {"label":"K4C (E6,C7)", "x":13, "y":4}, | ||
| 76 | {"label":"K4D (E6,F7)", "x":14, "y":4}, | ||
| 77 | {"label":"K4E (E6,F6)", "x":15, "y":4} | ||
| 78 | ] | ||
| 79 | } | ||
| 80 | } | ||
| 81 | } | ||
diff --git a/keyboards/bm68rgb/keymaps/default/keymap.c b/keyboards/bm68rgb/keymaps/default/keymap.c new file mode 100644 index 000000000..4bd7d5974 --- /dev/null +++ b/keyboards/bm68rgb/keymaps/default/keymap.c | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* Copyright 2021 peepeetee | ||
| 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 QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | // // Defines names for use in layer keycodes and the keymap | ||
| 19 | // enum layer_names { | ||
| 20 | // _BASE, | ||
| 21 | // _FN | ||
| 22 | // }; | ||
| 23 | |||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | [0] = LAYOUT_65_ansi( | ||
| 27 | KC_ESC, 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_DEL, | ||
| 28 | 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_HOME, | ||
| 29 | 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, KC_PGUP, | ||
| 30 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, KC_PGDN, | ||
| 31 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1),KC_RCTRL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 32 | ), | ||
| 33 | [1] = LAYOUT_65_ansi( | ||
| 34 | KC_GRAVE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, | ||
| 35 | _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 39 | ), | ||
| 40 | |||
| 41 | }; | ||
| 42 | |||
| 43 | /* | ||
| 44 | Templete | ||
| 45 | [ ] = LAYOUT_65_ansi( | ||
| 46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 50 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 51 | ), | ||
| 52 | */ | ||
diff --git a/keyboards/bm68rgb/keymaps/default/readme.md b/keyboards/bm68rgb/keymaps/default/readme.md new file mode 100644 index 000000000..0408ee9e9 --- /dev/null +++ b/keyboards/bm68rgb/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for bm68rgb | |||
diff --git a/keyboards/bm68rgb/readme.md b/keyboards/bm68rgb/readme.md new file mode 100644 index 000000000..4087fd866 --- /dev/null +++ b/keyboards/bm68rgb/readme.md | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # bm68rgb | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 65% hotswap in switch RGB keyboard from KPRepublic. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [peepeetee](https://github.com/peepeetee) | ||
| 8 | * Hardware Supported: BM68 RGB | ||
| 9 | * Hardware Availability: [KP Republic](https://kprepublic.com/products/bm68rgb-bm68-rgb-65-hot-swappable-custom-mechanical-keyboard-pcb-programmed-qmk-via-firmware-full-rgb-switch-underglow-type-c) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make bm68rgb:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make bm68rgb:default:flash | ||
| 18 | |||
| 19 | To reset the board into bootloader mode, do one of the following: | ||
| 20 | |||
| 21 | * Short the two-pad footprint to the left of the spacebar switch while the board is plugged in | ||
| 22 | * Hold the Esc key while connecting the USB cable (also erases persistent settings) | ||
| 23 | |||
| 24 | 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/bm68rgb/rules.mk b/keyboards/bm68rgb/rules.mk new file mode 100644 index 000000000..15d81ded8 --- /dev/null +++ b/keyboards/bm68rgb/rules.mk | |||
| @@ -0,0 +1,27 @@ | |||
| 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 = lite # Virtual DIP switch configuration | ||
| 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | RGB_MATRIX_ENABLE = yes | ||
| 24 | RGB_MATRIX_DRIVER = WS2812 | ||
| 25 | #LTO_ENABLE = yes | ||
| 26 | |||
| 27 | LAYOUTS = 65_ansi | ||
