diff options
author | p4yne <p4yne@users.noreply.github.com> | 2022-01-27 16:41:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 15:41:47 +0000 |
commit | f39e65493ec6a512def0f9cfe329b8fb70ea2f5b (patch) | |
tree | d266c880903663e4ab0e71161b9e7434ed3cfea8 /keyboards/kprepublic | |
parent | b31f814e8cdd139ea2493d4cf4012c336048b891 (diff) | |
download | qmk_firmware-f39e65493ec6a512def0f9cfe329b8fb70ea2f5b.tar.gz qmk_firmware-f39e65493ec6a512def0f9cfe329b8fb70ea2f5b.zip |
[Keyboard] fixed led_config: missing key, missing/wrong flags (#16048)
* fixed ledmap: missing key, missing/wrong flags
* Update keyboards/kprepublic/bm65hsrgb_iso/bm65hsrgb_iso.c
Co-authored-by: Albert Y <76888457+filterpaper@users.noreply.github.com>
* corrected c&p error user name in GPL header
Co-authored-by: Albert Y <76888457+filterpaper@users.noreply.github.com>
Diffstat (limited to 'keyboards/kprepublic')
-rw-r--r-- | keyboards/kprepublic/bm65hsrgb_iso/bm65hsrgb_iso.c | 56 | ||||
-rw-r--r-- | keyboards/kprepublic/bm65hsrgb_iso/config.h | 9 |
2 files changed, 36 insertions, 29 deletions
diff --git a/keyboards/kprepublic/bm65hsrgb_iso/bm65hsrgb_iso.c b/keyboards/kprepublic/bm65hsrgb_iso/bm65hsrgb_iso.c index 134c27182..3d7f586d7 100644 --- a/keyboards/kprepublic/bm65hsrgb_iso/bm65hsrgb_iso.c +++ b/keyboards/kprepublic/bm65hsrgb_iso/bm65hsrgb_iso.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* Copyright 2020 ipetepete, 2021 deadolus | 1 | /* Copyright 2020 ipetepete, 2021 deadolus, 2022 p4yne |
2 | * | 2 | * |
3 | * This program is free software: you can redistribute it and/or modify | 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 | 4 | * it under the terms of the GNU General Public License as published by |
@@ -17,37 +17,41 @@ | |||
17 | 17 | ||
18 | #ifdef RGB_MATRIX_ENABLE | 18 | #ifdef RGB_MATRIX_ENABLE |
19 | led_config_t g_led_config = { { | 19 | led_config_t g_led_config = { { |
20 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 , 14}, | 20 | // Key Matrix to LED Index |
21 | { 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 | { 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 | { 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 | { 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 | { 59, 60, NO_LED, NO_LED, NO_LED, 61, NO_LED, NO_LED, 62, 63, NO_LED, 64, 65, 66, 67} |
26 | |||
25 | }, { | 27 | }, { |
26 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace | 28 | // LED Index to Physical Position |
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 }, | 29 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete |
28 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], , | 30 | { 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 }, |
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}, | 31 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], Enter, Pos1 |
30 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter | 32 | { 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 }, |
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 }, | 33 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', , PageUp |
32 | // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, | 34 | { 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 }, |
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 }, | 35 | // LShift, <, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, PageDown |
34 | // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right | 36 | { 3, 48 }, { 18, 48 }, { 33, 48 }, { 48, 48 }, { 63, 48 }, { 78, 48 }, { 93, 48 }, { 108, 48 }, { 123, 48 }, { 138, 48 }, { 153, 48 }, { 168, 48 }, { 190, 48 }, { 209, 48 }, { 224, 48 }, |
35 | { 3, 64 }, { 22, 64 }, { 33, 64 }, { 101, 64 }, { 135, 64 }, { 153, 64 }, { 194, 64 }, { 209, 64 },{ 224, 64 }, | 37 | // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right |
36 | // UNDERGLOW | 38 | { 3, 64 }, { 22, 64 }, { 33, 64 }, { 101, 64 }, { 135, 64 }, { 153, 64 }, { 194, 64 }, { 209, 64 },{ 224, 64 }, |
37 | { 216, 32 }, { 180, 32 }, { 144, 32 }, { 108, 32 }, { 72, 32 }, { 36, 32 } | 39 | // UNDERGLOW |
40 | { 216, 32 }, { 180, 32 }, { 144, 32 }, { 108, 32 }, { 72, 32 }, { 36, 32 } | ||
38 | }, { | 41 | }, { |
39 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace | 42 | // LED Index to Flag |
40 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | 43 | // Esc, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, Backspace, Delete |
41 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], , | 44 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, |
42 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | 45 | // Tab, Q, W, E, R, T, Y, U, I, O, P, [, ], Enter, Pos1 |
43 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', Enter | 46 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, |
44 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | 47 | // Capslock, A, S, D, F, G, H, J, K, L, ;, ', , PageUp |
45 | // LShift, Z, X, C, V, B, N, M, ,, ., /, Shift, Up, | 48 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, |
46 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, | 49 | // LShift, <, Z, X, C, V, B, N, M, ,, ., /, RShift, Up, PageDown |
47 | // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right | 50 | 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 1, |
48 | 1, 1, 1, 4, 1, 1, 1, 1, 1, | 51 | // Ctrl, GUI, Alt, Space, RAlt, FN, Left, Down, Right |
49 | // UNDERGLOW | 52 | 1, 1, 1, 4, 1, 1, 1, 1, 1, |
50 | 2, 2, 2, 2, 2, 2 | 53 | // UNDERGLOW |
54 | 2, 2, 2, 2, 2, 2 | ||
51 | } }; | 55 | } }; |
52 | 56 | ||
53 | __attribute__ ((weak)) | 57 | __attribute__ ((weak)) |
diff --git a/keyboards/kprepublic/bm65hsrgb_iso/config.h b/keyboards/kprepublic/bm65hsrgb_iso/config.h index 30b27dc26..aafb43bb5 100644 --- a/keyboards/kprepublic/bm65hsrgb_iso/config.h +++ b/keyboards/kprepublic/bm65hsrgb_iso/config.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | Copyright 2020 ipetepete, 2021 deadolus | 2 | Copyright 2020 ipetepete, 2021 deadolus, 2022 p4yne |
3 | 3 | ||
4 | This program is free software: you can redistribute it and/or modify | 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 | 5 | it under the terms of the GNU General Public License as published by |
@@ -29,6 +29,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
29 | /* key matrix size */ | 29 | /* key matrix size */ |
30 | #define MATRIX_ROWS 5 | 30 | #define MATRIX_ROWS 5 |
31 | #define MATRIX_COLS 15 | 31 | #define MATRIX_COLS 15 |
32 | |||
33 | /* Force NKRO */ | ||
32 | #define FORCE_NKRO | 34 | #define FORCE_NKRO |
33 | 35 | ||
34 | /* | 36 | /* |
@@ -105,8 +107,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
105 | # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH | 107 | # define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH |
106 | 108 | ||
107 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_BAND_SAT | 109 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_BAND_SAT |
108 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | 110 | /* If defined, the RGB lighting will be switched off when the host goes to sleep */ |
109 | /*== all animations enable ==*/ | 111 | # define RGBLIGHT_SLEEP |
112 | /*== all animations enable ==*/ | ||
110 | # define RGBLIGHT_EFFECT_BREATHING | 113 | # define RGBLIGHT_EFFECT_BREATHING |
111 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | 114 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD |
112 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | 115 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL |