diff options
| author | Simon <4662005+Deadolus@users.noreply.github.com> | 2021-07-07 03:04:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-06 18:04:32 -0700 |
| commit | dba3f0d1ebeb8103e93494cb428021c491534202 (patch) | |
| tree | ed01e7c67692f2b54d1f4b9bfd76976a3ed2767c | |
| parent | 09c4d536c31c7443c4355e749e72364262fdd454 (diff) | |
| download | qmk_firmware-dba3f0d1ebeb8103e93494cb428021c491534202.tar.gz qmk_firmware-dba3f0d1ebeb8103e93494cb428021c491534202.zip | |
[Keyboard] Add bm65iso (#13400)
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/bm65iso/bm65iso.c | 59 | ||||
| -rw-r--r-- | keyboards/bm65iso/bm65iso.h | 36 | ||||
| -rw-r--r-- | keyboards/bm65iso/config.h | 72 | ||||
| -rw-r--r-- | keyboards/bm65iso/info.json | 82 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/deadolus/config.h | 27 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/deadolus/keymap.c | 288 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/deadolus/keymap.h | 63 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/deadolus/readme.md | 20 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/deadolus/rules.mk | 4 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/default/keymap.c | 35 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/via/keymap.c | 48 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/via/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/bm65iso/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/bm65iso/readme.md | 24 | ||||
| -rw-r--r-- | keyboards/bm65iso/rules.mk | 25 |
15 files changed, 785 insertions, 0 deletions
diff --git a/keyboards/bm65iso/bm65iso.c b/keyboards/bm65iso/bm65iso.c new file mode 100644 index 000000000..de2aba21c --- /dev/null +++ b/keyboards/bm65iso/bm65iso.c | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | /* Copyright 2020 ipetepete, 2021 deadolus | ||
| 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 "bm65iso.h" | ||
| 17 | |||
| 18 | #ifdef RGB_MATRIX_ENABLE | ||
| 19 | led_config_t g_led_config = { { | ||
| 20 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 , 14}, | ||
| 21 | { 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29}, | ||
| 22 | { 30, NO_LED, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43}, | ||
| 23 | { 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58}, | ||
| 24 | { 59, 60, NO_LED, NO_LED, NO_LED, 61, NO_LED, NO_LED, 62, 63, NO_LED, 64, 65, 66, 67} | ||
| 25 | }, { | ||
| 26 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace | ||
| 27 | { 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 },{ 224, 0 }, | ||
| 28 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], , | ||
| 29 | { 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 },{ 224, 16}, | ||
| 30 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter | ||
| 31 | { 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 }, { 224, 32 }, | ||
| 32 | // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, | ||
| 33 | { 18, 48 }, { 30, 48 }, { 45, 48 }, { 60, 48 }, { 75, 48 }, { 90, 48 }, { 105, 48 }, { 120, 48 }, { 135, 48 }, { 150, 48 }, { 165, 48 }, { 195, 48 }, { 209, 48 }, { 224, 48 }, | ||
| 34 | // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right | ||
| 35 | { 3, 64 }, { 22, 64 }, { 33, 64 }, { 101, 64 }, { 135, 64 }, { 153, 64 }, { 194, 64 }, { 209, 64 },{ 224, 64 }, | ||
| 36 | // UNDERGLOW | ||
| 37 | { 216, 32 }, { 180, 32 }, { 144, 32 }, { 108, 32 }, { 72, 32 }, { 36, 32 } | ||
| 38 | }, { | ||
| 39 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace | ||
| 40 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 41 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], , | ||
| 42 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 43 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter | ||
| 44 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 45 | // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, | ||
| 46 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | ||
| 47 | // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right | ||
| 48 | 1, 1, 1, 4, 1, 1, 1, 1, 1, | ||
| 49 | // UNDERGLOW | ||
| 50 | 2, 2, 2, 2, 2, 2 | ||
| 51 | } }; | ||
| 52 | |||
| 53 | __attribute__ ((weak)) | ||
| 54 | void rgb_matrix_indicators_user(void) { | ||
| 55 | if (host_keyboard_led_state().caps_lock) { | ||
| 56 | rgb_matrix_set_color(30, 0xFF, 0xFF, 0xFF); | ||
| 57 | } | ||
| 58 | } | ||
| 59 | #endif | ||
diff --git a/keyboards/bm65iso/bm65iso.h b/keyboards/bm65iso/bm65iso.h new file mode 100644 index 000000000..27a1c1c07 --- /dev/null +++ b/keyboards/bm65iso/bm65iso.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | /* Copyright 2021 deadolus | ||
| 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( \ | ||
| 21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
| 22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
| 23 | K20, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \ | ||
| 24 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
| 25 | K40, K41, K42, K46, K49, K4A, K4C, K4D, K4E \ | ||
| 26 | ) { \ | ||
| 27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
| 28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
| 29 | { K20, KC_NO, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ | ||
| 30 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
| 31 | { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, K49, K4A, KC_NO, K4C, K4D, K4E }, \ | ||
| 32 | } | ||
| 33 | |||
| 34 | // generated by KBFirmware JSON to QMK Parser | ||
| 35 | // https://noroadsleft.github.io/kbf_qmk_converter/ | ||
| 36 | |||
diff --git a/keyboards/bm65iso/config.h b/keyboards/bm65iso/config.h new file mode 100644 index 000000000..2bec40f14 --- /dev/null +++ b/keyboards/bm65iso/config.h | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 ipetepete, 2021 deadolus | ||
| 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 0x0653 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER KP Republic | ||
| 27 | #define PRODUCT BM65ISO | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 5 | ||
| 31 | #define MATRIX_COLS 15 | ||
| 32 | #define FORCE_NKRO | ||
| 33 | |||
| 34 | /* | ||
| 35 | * Keyboard Matrix Assignments | ||
| 36 | * | ||
| 37 | * Change this to how you wired your keyboard | ||
| 38 | * COLS: AVR pins used for columns, left to right | ||
| 39 | * ROWS: AVR pins used for rows, top to bottom | ||
| 40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 42 | * | ||
| 43 | */ | ||
| 44 | #define MATRIX_ROW_PINS { B0, B1, B2, B3, E6 } | ||
| 45 | #define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4, B5, B6, C6, C7, F7, F6 } | ||
| 46 | |||
| 47 | #define DIODE_DIRECTION COL2ROW | ||
| 48 | |||
| 49 | #define RGB_DI_PIN E2 | ||
| 50 | #define DRIVER_LED_TOTAL 74 | ||
| 51 | #ifdef RGB_DI_PIN | ||
| 52 | #define RGBLED_NUM 74 | ||
| 53 | #define RGB_MATRIX_KEYPRESSES | ||
| 54 | #define RGBLIGHT_HUE_STEP 8 | ||
| 55 | #define RGBLIGHT_SAT_STEP 8 | ||
| 56 | #define RGBLIGHT_VAL_STEP 8 | ||
| 57 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 140 | ||
| 58 | #define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_BAND_SAT | ||
| 59 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 60 | /*== all animations enable ==*/ | ||
| 61 | #define RGBLIGHT_ANIMATIONS | ||
| 62 | // /*== or choose animations ==*/ | ||
| 63 | // #define RGBLIGHT_EFFECT_BREATHING | ||
| 64 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 65 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 66 | // #define RGBLIGHT_EFFECT_SNAKE | ||
| 67 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
| 68 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 69 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 70 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 71 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 72 | #endif | ||
diff --git a/keyboards/bm65iso/info.json b/keyboards/bm65iso/info.json new file mode 100644 index 000000000..1f474eb10 --- /dev/null +++ b/keyboards/bm65iso/info.json | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "bm65iso", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 16, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 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":"K30 (B2,D1)", "x":0, "y":3, "w":1.25}, | ||
| 55 | {"label":"K31 (B3,D1)", "x":1.25, "y":3, "w":1}, | ||
| 56 | {"label":"K32 (B3,D2)", "x":2.25, "y":3}, | ||
| 57 | {"label":"K33 (B3,D3)", "x":3.25, "y":3}, | ||
| 58 | {"label":"K34 (B3,D5)", "x":4.25, "y":3}, | ||
| 59 | {"label":"K35 (B3,D4)", "x":5.25, "y":3}, | ||
| 60 | {"label":"K36 (B3,D6)", "x":6.25, "y":3}, | ||
| 61 | {"label":"K37 (B3,D7)", "x":7.25, "y":3}, | ||
| 62 | {"label":"K38 (B3,B4)", "x":8.25, "y":3}, | ||
| 63 | {"label":"K39 (B3,B5)", "x":9.25, "y":3}, | ||
| 64 | {"label":"K3A (B3,B6)", "x":10.25, "y":3}, | ||
| 65 | {"label":"K3B (B3,C6)", "x":11.25, "y":3}, | ||
| 66 | {"label":"K3C (B3,C7)", "x":12.25, "y":3, "w":1.75}, | ||
| 67 | {"label":"K3D (B3,F7)", "x":14, "y":3}, | ||
| 68 | {"label":"K3E (B3,F6)", "x":15, "y":3}, | ||
| 69 | {"label":"K40 (E6,D0)", "x":0, "y":4, "w":1.25}, | ||
| 70 | {"label":"K41 (E6,D1)", "x":1.25, "y":4, "w":1.25}, | ||
| 71 | {"label":"K42 (E6,D2)", "x":2.5, "y":4, "w":1.25}, | ||
| 72 | {"label":"K46 (E6,D6)", "x":3.75, "y":4, "w":6.25}, | ||
| 73 | {"label":"K49 (E6,B5)", "x":10, "y":4, "w":1.25}, | ||
| 74 | {"label":"K4A (E6,B6)", "x":11.25, "y":4, "w":1.25}, | ||
| 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 | ,"meta": "https://noroadsleft.github.io/kbf_qmk_converter/" | ||
| 82 | } | ||
diff --git a/keyboards/bm65iso/keymaps/deadolus/config.h b/keyboards/bm65iso/keymaps/deadolus/config.h new file mode 100644 index 000000000..1dc1414fa --- /dev/null +++ b/keyboards/bm65iso/keymaps/deadolus/config.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* Copyright 2021 deadolus | ||
| 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 | // place overrides here | ||
| 18 | |||
| 19 | #pragma once | ||
| 20 | #define LSPO_KEYS KC_LSFT, KC_LSFT, KC_8 | ||
| 21 | #define RSPC_KEYS KC_RSFT, KC_LSFT, KC_9 | ||
| 22 | #define LAPO_KEYS KC_LALT, KC_RALT, KC_QUOT | ||
| 23 | #define RAPC_KEYS KC_RALT, KC_RALT, KC_NUHS | ||
| 24 | |||
| 25 | #define LEADER_TIMEOUT 1000 | ||
| 26 | #define LEADER_PER_KEY_TIMING 250 | ||
| 27 | |||
diff --git a/keyboards/bm65iso/keymaps/deadolus/keymap.c b/keyboards/bm65iso/keymaps/deadolus/keymap.c new file mode 100644 index 000000000..f37a1a8c1 --- /dev/null +++ b/keyboards/bm65iso/keymaps/deadolus/keymap.c | |||
| @@ -0,0 +1,288 @@ | |||
| 1 | /* Copyright 2019 ashlar 2021 peepeetee, deadolus | ||
| 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 | #include "keymap.h" | ||
| 18 | |||
| 19 | #ifdef TAP_DANCE_ENABLE | ||
| 20 | enum { | ||
| 21 | TD_HOME_END, | ||
| 22 | }; | ||
| 23 | |||
| 24 | // Tap Dance definitions | ||
| 25 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
| 26 | //tap once for home, twice for end | ||
| 27 | [TD_HOME_END] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END) | ||
| 28 | }; | ||
| 29 | #endif | ||
| 30 | |||
| 31 | |||
| 32 | // // Defines names for use in layer keycodes and the keymap | ||
| 33 | enum layers { | ||
| 34 | _BL, | ||
| 35 | _RED_, | ||
| 36 | _GREEN_, | ||
| 37 | _BLUE_, | ||
| 38 | _CYAN_, | ||
| 39 | _MAGENTA_, | ||
| 40 | _YELLOW_ | ||
| 41 | }; | ||
| 42 | |||
| 43 | |||
| 44 | |||
| 45 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 46 | /* | ||
| 47 | * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┬───┐ | ||
| 48 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
| 49 | * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┼───┤ | ||
| 50 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
| 51 | * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ ├───┤ | ||
| 52 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
| 53 | * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴┬───┼───┤ | ||
| 54 | * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ | ||
| 55 | * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴──┬┴──┬┴──┬───┼───┼───┤ | ||
| 56 | * │ │ │ │ │ │ │ │ │ │ │ | ||
| 57 | * └────┴────┴────┴────────────────────────┴───┴───┴───┴───┴───┴───┘ | ||
| 58 | */ | ||
| 59 | #ifdef TAP_DANCE_ENABLE | ||
| 60 | /* 0: ISO qwerty */ | ||
| 61 | [_BL] = LAYOUT( | ||
| 62 | KC_CAPS, 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, | ||
| 63 | 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_ENT, TD(TD_HOME_END), | ||
| 64 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_PGUP, | ||
| 65 | KC_LSPO, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, KC_UP, KC_PGDN, | ||
| 66 | KC_LCTL, KC_LGUI, KC_LAPO, KC_SPC, KC_RAPC, MO(_RED_), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 67 | |||
| 68 | ), | ||
| 69 | #else | ||
| 70 | [_BL] = LAYOUT( | ||
| 71 | KC_CAPS, 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, | ||
| 72 | 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_ENT, KC_HOME, | ||
| 73 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_PGUP, | ||
| 74 | KC_LSPO, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC, KC_UP, KC_PGDN, | ||
| 75 | KC_LCTL, KC_LGUI, KC_LAPO, KC_SPC, KC_RAPC, MO(_RED_), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 76 | |||
| 77 | ), | ||
| 78 | #endif | ||
| 79 | |||
| 80 | [_RED_] = LAYOUT( | ||
| 81 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, LGUI(KC_END), | ||
| 82 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,_______, _______, _______, TO(0), LGUI(KC_PAUSE), | ||
| 83 | _______, TO(_GREEN_), TO(_BLUE_), TO(_CYAN_), TO(_MAGENTA_), TO(_YELLOW_), _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 84 | _______,_______ ,_______ ,_______ , _______, _______, _______, _______, _______, _______, _______, _______,_______ , KC_VOLU, _______, | ||
| 85 | RESET, _______, _______, KC_LEAD, _______, _______, KC_MPLY, KC_VOLD, KC_MUTE | ||
| 86 | ), | ||
| 87 | |||
| 88 | |||
| 89 | [_GREEN_] = LAYOUT( | ||
| 90 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 91 | _______, _______, _______,_______ , _______, _______, _______, KC_PGDN, KC_PGUP, KC_PSCR,_______, _______, _______, TO(0), _______, | ||
| 92 | _______, KC_MS_ACCEL0, KC_MS_ACCEL1, KC_MS_ACCEL2, _______, _______, KC_MS_LEFT, KC_MS_DOWN, KC_MS_UP, KC_MS_RIGHT, KC_MS_BTN1, KC_MS_BTN2, _______, _______, | ||
| 93 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_END, _______, _______, _______, _______, | ||
| 94 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 95 | ), | ||
| 96 | |||
| 97 | |||
| 98 | [_BLUE_] = LAYOUT( | ||
| 99 | _______, DYN_MACRO_PLAY1, DYN_MACRO_PLAY2, _______, _______, _______, _______, _______, KC_NUMLOCK, KC_PSLS, KC_PAST, KC_PMNS, _______, _______, _______, | ||
| 100 | _______, DYN_REC_START1, DYN_REC_START2, _______, _______, _______, _______, _______, _______,KC_P7, KC_P8, KC_P9, KC_PMNS, TO(0), _______, | ||
| 101 | |||
| 102 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_P4, KC_P5, KC_P6, KC_PPLS, _______, | ||
| 103 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_P1, KC_P2, KC_P3, KC_PENT, _______, _______, | ||
| 104 | _______, _______, _______, _______, KC_0, KC_PCMM, _______, _______, _______ | ||
| 105 | ), | ||
| 106 | [_CYAN_] = LAYOUT( | ||
| 107 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 108 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,TO(0), _______, | ||
| 109 | |||
| 110 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 111 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 112 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 113 | ), | ||
| 114 | [_MAGENTA_] = LAYOUT( | ||
| 115 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 116 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,TO(0), _______, | ||
| 117 | |||
| 118 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 119 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 120 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 121 | ), | ||
| 122 | [_YELLOW_] = LAYOUT( | ||
| 123 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 124 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,TO(0), _______, | ||
| 125 | |||
| 126 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 127 | _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
| 128 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 129 | ), | ||
| 130 | |||
| 131 | /*template | ||
| 132 | [_UL] = LAYOUT( | ||
| 133 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 134 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,TO(0), _______, | ||
| 135 | |||
| 136 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 137 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 138 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 139 | ) | ||
| 140 | */ | ||
| 141 | }; | ||
| 142 | |||
| 143 | #ifdef _______ | ||
| 144 | #undef _______ | ||
| 145 | #define _______ {0, 0, 0} | ||
| 146 | |||
| 147 | const uint8_t PROGMEM ledmap[][3] = { | ||
| 148 | [_BL] = _______, | ||
| 149 | [_RED_] = RED, | ||
| 150 | [_GREEN_] = GREEN, | ||
| 151 | [_BLUE_] = BLUE, | ||
| 152 | [_CYAN_] = CYAN, | ||
| 153 | [_MAGENTA_] = MAGENTA, | ||
| 154 | [_YELLOW_] = YELLOW | ||
| 155 | }; | ||
| 156 | |||
| 157 | #undef _______ | ||
| 158 | #define _______ KC_TRNS | ||
| 159 | #endif | ||
| 160 | |||
| 161 | |||
| 162 | |||
| 163 | void keyboard_post_init_user(void) { | ||
| 164 | // Call the post init code. | ||
| 165 | #ifdef CONSOLE_ENABLE | ||
| 166 | debug_enable=true; | ||
| 167 | debug_matrix=true; | ||
| 168 | #endif | ||
| 169 | rgb_matrix_set_flags(LED_FLAG_UNDERGLOW); | ||
| 170 | } | ||
| 171 | |||
| 172 | |||
| 173 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 174 | #ifdef CONSOLE_ENABLE | ||
| 175 | //useful for getting matrix right | ||
| 176 | uprintf("KL: kc: 0x%04X, col: %u, row: %u, pressed: %b, time: %u, interrupt: %b, count: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.time, record->tap.interrupted, record->tap.count); | ||
| 177 | #endif | ||
| 178 | |||
| 179 | switch (keycode) { | ||
| 180 | case RGB_TOG: | ||
| 181 | if (record->event.pressed) { | ||
| 182 | switch (rgb_matrix_get_flags()) { | ||
| 183 | case LED_FLAG_ALL: { | ||
| 184 | rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR); | ||
| 185 | rgb_matrix_set_color_all(0, 0, 0); | ||
| 186 | } | ||
| 187 | break; | ||
| 188 | case (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR): { | ||
| 189 | rgb_matrix_set_flags(LED_FLAG_UNDERGLOW); | ||
| 190 | rgb_matrix_set_color_all(0, 0, 0); | ||
| 191 | } | ||
| 192 | break; | ||
| 193 | case LED_FLAG_UNDERGLOW: { | ||
| 194 | rgb_matrix_set_flags(LED_FLAG_NONE); | ||
| 195 | rgb_matrix_disable_noeeprom(); | ||
| 196 | } | ||
| 197 | break; | ||
| 198 | default: { | ||
| 199 | rgb_matrix_set_flags(LED_FLAG_ALL); | ||
| 200 | rgb_matrix_enable_noeeprom(); | ||
| 201 | } | ||
| 202 | break; | ||
| 203 | } | ||
| 204 | } | ||
| 205 | return false; | ||
| 206 | default: | ||
| 207 | return true; // Process all other keycodes normally | ||
| 208 | } | ||
| 209 | } | ||
| 210 | |||
| 211 | void setCapsLock(void) { | ||
| 212 | led_t host_leds = host_keyboard_led_state(); | ||
| 213 | if (host_leds.caps_lock) { | ||
| 214 | rgb_matrix_set_color(30, 0xFF, 0xFF, 0xFF); | ||
| 215 | |||
| 216 | } else { | ||
| 217 | //if capslock is not pressed don't clear it, it might be used for displaying led pattern | ||
| 218 | if((rgb_matrix_get_flags() != LED_FLAG_ALL)) { | ||
| 219 | rgb_matrix_set_color(30, 0x0, 0x0, 0x0); | ||
| 220 | } | ||
| 221 | } | ||
| 222 | } | ||
| 223 | |||
| 224 | void set_layer_color(int layer) { | ||
| 225 | int ledkey=0; | ||
| 226 | for(int i=0; i<MATRIX_COLS*MATRIX_ROWS;i++) { | ||
| 227 | uint8_t row = i/MATRIX_COLS; | ||
| 228 | uint8_t col=(i-(i/MATRIX_COLS)*MATRIX_COLS); | ||
| 229 | uint16_t key=pgm_read_word(&keymaps[layer][row][col]); | ||
| 230 | //continue if this is not a valid key | ||
| 231 | if(key==KC_NO) { continue; } | ||
| 232 | //clear key if it is only a transition | ||
| 233 | if ((key == KC_TRNS)) { | ||
| 234 | if(rgb_matrix_get_flags() != LED_FLAG_ALL){ | ||
| 235 | rgb_matrix_set_color(ledkey, 0, 0, 0); | ||
| 236 | } | ||
| 237 | }else { | ||
| 238 | //this key does something - light it up | ||
| 239 | HSV hsv = { | ||
| 240 | .h = pgm_read_byte(&ledmap[layer][0]), | ||
| 241 | .s = pgm_read_byte(&ledmap[layer][1]), | ||
| 242 | .v = pgm_read_byte(&ledmap[layer][2]), | ||
| 243 | }; | ||
| 244 | |||
| 245 | RGB rgb = hsv_to_rgb(hsv); | ||
| 246 | float f = (float)rgb_matrix_config.hsv.v / UINT8_MAX; | ||
| 247 | if( (layer != 0) || (rgb_matrix_get_flags() != LED_FLAG_ALL)) | ||
| 248 | rgb_matrix_set_color(ledkey, f * rgb.r, f * rgb.g, f * rgb.b); | ||
| 249 | } | ||
| 250 | //if we are on layer 0 set capslock to correct status | ||
| 251 | if(layer==0 && i==30) { setCapsLock(); } | ||
| 252 | ledkey++; | ||
| 253 | } | ||
| 254 | return; | ||
| 255 | } | ||
| 256 | |||
| 257 | void rgb_matrix_indicators_user(void) { | ||
| 258 | set_layer_color(get_highest_layer(layer_state)); | ||
| 259 | |||
| 260 | } | ||
| 261 | |||
| 262 | #ifdef LEADER_ENABLE | ||
| 263 | LEADER_EXTERNS(); | ||
| 264 | |||
| 265 | //SEND_STRING seems to be local dependent. | ||
| 266 | //For swiss-german layout I have to send "ctrl+." to get ":" | ||
| 267 | void matrix_scan_user(void) { | ||
| 268 | LEADER_DICTIONARY() { | ||
| 269 | leading = false; | ||
| 270 | leader_end(); | ||
| 271 | |||
| 272 | SEQ_ONE_KEY(KC_F) { | ||
| 273 | // Anything you can do in a macro. | ||
| 274 | SEND_STRING("QMK is awesome."); | ||
| 275 | } | ||
| 276 | SEQ_TWO_KEYS(KC_D, KC_D) { | ||
| 277 | SEND_STRING(SS_LCTL("a") SS_LCTL("c")); | ||
| 278 | } | ||
| 279 | SEQ_THREE_KEYS(KC_D, KC_D, KC_S) { | ||
| 280 | SEND_STRING("https"); | ||
| 281 | register_code(KC_LSFT); | ||
| 282 | SEND_STRING(".77"); | ||
| 283 | unregister_code(KC_LSFT); | ||
| 284 | SEND_STRING("start.duckduckgo.com\n"); | ||
| 285 | } | ||
| 286 | } | ||
| 287 | } | ||
| 288 | #endif | ||
diff --git a/keyboards/bm65iso/keymaps/deadolus/keymap.h b/keyboards/bm65iso/keymaps/deadolus/keymap.h new file mode 100644 index 000000000..1459e2c5b --- /dev/null +++ b/keyboards/bm65iso/keymaps/deadolus/keymap.h | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | /* Copyright 2019 ash0x0 2021 peepeetee, deadolus | ||
| 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 | #include "print.h" | ||
| 19 | #include <string.h> | ||
| 20 | // HID has not yet been implemented for this keyboard | ||
| 21 | // #include "raw_hid.h" | ||
| 22 | |||
| 23 | #define MILLISECONDS_IN_SECOND 1000 | ||
| 24 | |||
| 25 | // These are just to make it neater to use builtin HSV values in the keymap | ||
| 26 | #define RED {HSV_RED} | ||
| 27 | #define CORAL {HSV_CORAL} | ||
| 28 | #define ORANGE {HSV_ORANGE} | ||
| 29 | #define GOLDEN {HSV_GOLDENROD} | ||
| 30 | #define GOLD {HSV_GOLD} | ||
| 31 | #define YELLOW {HSV_YELLOW} | ||
| 32 | #define CHART {HSV_CHARTREUSE} | ||
| 33 | #define GREEN {HSV_GREEN} | ||
| 34 | #define SPRING {HSV_SPRINGGREEN} | ||
| 35 | #define TURQ {HSV_TURQUOISE} | ||
| 36 | #define TEAL {HSV_TEAL} | ||
| 37 | #define CYAN {HSV_CYAN} | ||
| 38 | #define AZURE {HSV_AZURE} | ||
| 39 | #define BLUE {HSV_BLUE} | ||
| 40 | #define PURPLE {HSV_PURPLE} | ||
| 41 | #define MAGENTA {HSV_MAGENTA} | ||
| 42 | #define PINK {HSV_PINK} | ||
| 43 | |||
| 44 | //========================================================== CONFIGURABLE DEFAULTS ========================================================== | ||
| 45 | #define RGB_DEFAULT_TIME_OUT 30 | ||
| 46 | #define RGB_FAST_MODE_TIME_OUT 3 | ||
| 47 | #define RGB_TIME_OUT_MAX 600 | ||
| 48 | #define RGB_TIME_OUT_MIN 10 | ||
| 49 | #define RGB_TIME_OUT_STEP 10 | ||
| 50 | |||
| 51 | extern bool g_suspend_state; | ||
| 52 | bool disable_layer_color; | ||
| 53 | |||
| 54 | uint8_t dfa_state; //state for my language switching DFA | ||
| 55 | |||
| 56 | |||
| 57 | bool rgb_enabled_flag; // Current LED state flag. If false then LED is off. | ||
| 58 | bool rgb_time_out_enable; // Idle LED toggle enable. If false then LED will not turn off after idle timeout. | ||
| 59 | bool rgb_time_out_fast_mode_enabled; // Enable flag for RGB timeout fast mode | ||
| 60 | bool rgb_time_out_user_value; // This holds the toggle value set by user with ROUT_TG. It's necessary as RGB_TOG changes timeout enable. | ||
| 61 | uint16_t rgb_time_out_seconds; // Idle LED timeout value, in seconds not milliseconds | ||
| 62 | uint16_t rgb_time_out_saved_seconds; // The saved user config for RGB timeout period | ||
| 63 | led_flags_t rgb_time_out_saved_flag; // Store LED flag before timeout so it can be restored when LED is turned on again. | ||
diff --git a/keyboards/bm65iso/keymaps/deadolus/readme.md b/keyboards/bm65iso/keymaps/deadolus/readme.md new file mode 100644 index 000000000..6080e5b9a --- /dev/null +++ b/keyboards/bm65iso/keymaps/deadolus/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # Deadolus' keymap for the bm65iso | ||
| 2 | |||
| 3 | * Six layers (even though three are mostly empty) | ||
| 4 | * Different color for each layer (r,g,b,c,m,y) | ||
| 5 | * **Keys with something else defined than KC_TRNS are lit up in the layer color, so you easily can see which keys have some function defined** | ||
| 6 | * Caps-Lock lights up when active and on layer 0 | ||
| 7 | * Some leader shortcuts defined - nothing useful yet | ||
| 8 | * Some space cadet keys defined for easier insertion of () and {} | ||
| 9 | * Bootmagic lite enabled via default settings so you can plug in the keyboard while holding esc to land in bootloader mode | ||
| 10 | * Manages all this and still fits in to the program memory | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make bm65iso:deadolus | ||
| 15 | |||
| 16 | Flashing example for this keyboard: | ||
| 17 | |||
| 18 | make bm65iso:deadolus:flash | ||
| 19 | |||
| 20 | Keyboard Maintainer: **[deadolus](https://github.com/deadolus)** | ||
diff --git a/keyboards/bm65iso/keymaps/deadolus/rules.mk b/keyboards/bm65iso/keymaps/deadolus/rules.mk new file mode 100644 index 000000000..c8354ea25 --- /dev/null +++ b/keyboards/bm65iso/keymaps/deadolus/rules.mk | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | DYNAMIC_MACRO_ENABLE = yes | ||
| 2 | TAP_DANCE_ENABLE = yes | ||
| 3 | LEADER_ENABLE = yes | ||
| 4 | #CONSOLE_ENABLE=yes | ||
diff --git a/keyboards/bm65iso/keymaps/default/keymap.c b/keyboards/bm65iso/keymaps/default/keymap.c new file mode 100644 index 000000000..988589376 --- /dev/null +++ b/keyboards/bm65iso/keymaps/default/keymap.c | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* Copyright 2021 deadolus | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT( | ||
| 20 | KC_CAPS, 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, | ||
| 21 | 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_ENT, KC_HOME, | ||
| 22 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_PGUP, | ||
| 23 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 25 | |||
| 26 | ), | ||
| 27 | [1] = LAYOUT( | ||
| 28 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 32 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 33 | ), | ||
| 34 | |||
| 35 | }; | ||
diff --git a/keyboards/bm65iso/keymaps/via/keymap.c b/keyboards/bm65iso/keymaps/via/keymap.c new file mode 100644 index 000000000..76c8aaa3e --- /dev/null +++ b/keyboards/bm65iso/keymaps/via/keymap.c | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* Copyright 2021 deadolus | ||
| 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 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 19 | [0] = LAYOUT( | ||
| 20 | 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, KC_DEL, | ||
| 21 | 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_ENT, KC_HOME, | ||
| 22 | 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_BSLS, KC_PGUP, | ||
| 23 | KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
| 24 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT | ||
| 25 | ), | ||
| 26 | [1] = LAYOUT( | ||
| 27 | RESET, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, | ||
| 28 | _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 30 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 31 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 32 | ), | ||
| 33 | [2] = LAYOUT( | ||
| 34 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 38 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 39 | ), | ||
| 40 | [3] = LAYOUT( | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 42 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 45 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 46 | ), | ||
| 47 | |||
| 48 | }; | ||
diff --git a/keyboards/bm65iso/keymaps/via/readme.md b/keyboards/bm65iso/keymaps/via/readme.md new file mode 100644 index 000000000..87c754275 --- /dev/null +++ b/keyboards/bm65iso/keymaps/via/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The VIA default keymap for bm65iso | |||
diff --git a/keyboards/bm65iso/keymaps/via/rules.mk b/keyboards/bm65iso/keymaps/via/rules.mk new file mode 100644 index 000000000..036bd6d1c --- /dev/null +++ b/keyboards/bm65iso/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes \ No newline at end of file | |||
diff --git a/keyboards/bm65iso/readme.md b/keyboards/bm65iso/readme.md new file mode 100644 index 000000000..5b6083ba4 --- /dev/null +++ b/keyboards/bm65iso/readme.md | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | # bm65iso | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | A 65% hotswap in switch RGB keyboard from KPRepublic. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [deadolus](https://github.com/deadolus) | ||
| 8 | * Hardware Supported: BM65 ISO | ||
| 9 | * Hardware Availability: [KP Republic](https://kprepublic.com/products/bm65rgb-bm65-iso-rgb-65-hot-swappable-custom-mechanical-keyboard-pcb-programmed-qmk-via-firmware-rgb-switch-underglow-type-c) | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make bm65iso:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make bm65iso: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/bm65iso/rules.mk b/keyboards/bm65iso/rules.mk new file mode 100644 index 000000000..d837d1ec6 --- /dev/null +++ b/keyboards/bm65iso/rules.mk | |||
| @@ -0,0 +1,25 @@ | |||
| 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 | ||
