diff options
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/ein_60/ein_60.c | 12 | ||||
| -rw-r--r-- | keyboards/jones/v03_1/v03_1.c | 20 | ||||
| -rw-r--r-- | keyboards/jones/v1/v1.c | 22 | ||||
| -rw-r--r-- | keyboards/keyprez/rhino/rhino.c | 18 | ||||
| -rw-r--r-- | keyboards/moonlander/moonlander.c | 24 | ||||
| -rw-r--r-- | keyboards/planck/ez/ez.c | 11 | ||||
| -rw-r--r-- | keyboards/planck/light/light.c | 7 | ||||
| -rw-r--r-- | keyboards/planck/planck.c | 8 | ||||
| -rw-r--r-- | keyboards/planck/rev1/rev1.c | 7 | ||||
| -rw-r--r-- | keyboards/planck/rev2/rev2.c | 7 | ||||
| -rw-r--r-- | keyboards/planck/rev3/rev3.c | 7 | ||||
| -rw-r--r-- | keyboards/planck/rev4/rev4.c | 7 | ||||
| -rw-r--r-- | keyboards/planck/rev5/rev5.c | 7 | ||||
| -rw-r--r-- | keyboards/planck/rev6/rev6.c | 11 | ||||
| -rw-r--r-- | keyboards/planck/rev6_drop/rev6_drop.c | 11 | ||||
| -rw-r--r-- | keyboards/planck/thk/thk.c | 7 | ||||
| -rw-r--r-- | keyboards/preonic/preonic.c | 9 | ||||
| -rw-r--r-- | keyboards/preonic/rev1/rev1.c | 8 | ||||
| -rw-r--r-- | keyboards/preonic/rev2/rev2.c | 8 | ||||
| -rw-r--r-- | keyboards/preonic/rev3/rev3.c | 13 | ||||
| -rw-r--r-- | keyboards/preonic/rev3_drop/rev3_drop.c | 13 | ||||
| -rw-r--r-- | keyboards/unison/v04/v04.c | 19 |
22 files changed, 192 insertions, 64 deletions
diff --git a/keyboards/ein_60/ein_60.c b/keyboards/ein_60/ein_60.c index 60955eb8a3..af11e48235 100644 --- a/keyboards/ein_60/ein_60.c +++ b/keyboards/ein_60/ein_60.c | |||
| @@ -47,12 +47,12 @@ led_config_t g_led_config = { { | |||
| 47 | #endif | 47 | #endif |
| 48 | 48 | ||
| 49 | #ifdef AUDIO_ENABLE | 49 | #ifdef AUDIO_ENABLE |
| 50 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT( | 50 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { |
| 51 | 30, 31, 32, 33, 34, 35, 35, 36, 37, 38, 39, 40, 41, | 51 | {30, 31, 32, 33, 34, 35, 35, 36, 37, 38, 39, 40, 41}, |
| 52 | 18, 9, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, | 52 | {18, 19, 20, 21, 22, 23, 0, 25, 25, 26, 27, 28, 29}, |
| 53 | 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, | 53 | { 6, 7, 8, 9, 10, 11, 0, 12, 13, 14, 15, 16, 17}, |
| 54 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 | 54 | { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} |
| 55 | ); | 55 | }; |
| 56 | #endif | 56 | #endif |
| 57 | 57 | ||
| 58 | #ifdef OLED_ENABLE | 58 | #ifdef OLED_ENABLE |
diff --git a/keyboards/jones/v03_1/v03_1.c b/keyboards/jones/v03_1/v03_1.c index f09b801a3e..538a99d565 100644 --- a/keyboards/jones/v03_1/v03_1.c +++ b/keyboards/jones/v03_1/v03_1.c | |||
| @@ -17,11 +17,17 @@ | |||
| 17 | #include "quantum.h" | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) | 19 | #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) |
| 20 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_all( | 20 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { |
| 21 | 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, | 21 | { 0, 0, 0, 0, 0, 0, 0, 64, 65, 66, 67}, |
| 22 | 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, | 22 | { 0, 0, 0, 0, 0, 0, 0, 49, 50, 51, 52}, |
| 23 | 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, | 23 | { 0, 0, 0, 0, 0, 0, 0, 35, 36, 37, 38}, |
| 24 | 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, | 24 | { 0, 0, 0, 0, 0, 0, 0, 21, 22, 23, 24}, |
| 25 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 | 25 | { 0, 0, 0, 0, 0, 0, 0, 8, 9, 10, 11}, |
| 26 | ); | 26 | { 0, 0, 0, 0, 0, 0, 59, 60, 61, 62, 63}, |
| 27 | {53, 54, 55, 56, 57, 58, 0, 45, 46, 47, 48}, | ||
| 28 | {39, 0, 40, 41, 42, 43, 44, 0, 32, 33, 34}, | ||
| 29 | {25, 0, 26, 27, 28, 29, 30, 31, 0, 19, 20}, | ||
| 30 | {11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0}, | ||
| 31 | { 0, 1, 2, 3, 0, 4, 0, 5, 6, 7, 0} | ||
| 32 | }; | ||
| 27 | #endif | 33 | #endif |
diff --git a/keyboards/jones/v1/v1.c b/keyboards/jones/v1/v1.c index bb13049a67..7ad641e41f 100644 --- a/keyboards/jones/v1/v1.c +++ b/keyboards/jones/v1/v1.c | |||
| @@ -14,15 +14,19 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include QMK_KEYBOARD_H | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) | 19 | #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) |
| 20 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT( | 20 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { |
| 21 | 0, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, | 21 | { 0, 37, 33, 0, 27, 31, 30, 35, 25, 0}, |
| 22 | 0, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, | 22 | {17, 0, 21, 0, 15, 19, 18, 23, 13, 0}, |
| 23 | 0, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, | 23 | {17, 0, 0, 21, 15, 19, 18, 23, 13, 0}, |
| 24 | 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, | 24 | { 4, 12, 8, 0, 2, 6, 5, 10, 0, 0}, |
| 25 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 25 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, |
| 26 | 0, 0, 0, 0 | 26 | {28, 36, 32, 34, 26, 0, 29, 0, 0, 24}, |
| 27 | ); | 27 | {16, 24, 20, 22, 14, 0, 0, 0, 0, 12}, |
| 28 | {16, 24, 20, 22, 14, 0, 0, 0, 0, 12}, | ||
| 29 | { 3, 11, 7, 9, 1, 0, 0, 0, 0, 0}, | ||
| 30 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | ||
| 31 | }; | ||
| 28 | #endif | 32 | #endif |
diff --git a/keyboards/keyprez/rhino/rhino.c b/keyboards/keyprez/rhino/rhino.c index d2e1bf2e23..e7eb74e655 100644 --- a/keyboards/keyprez/rhino/rhino.c +++ b/keyboards/keyprez/rhino/rhino.c | |||
| @@ -15,13 +15,15 @@ | |||
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include "quantum.h" | 17 | #include "quantum.h" |
| 18 | #include QMK_KEYBOARD_H | ||
| 19 | 18 | ||
| 20 | __attribute__ ((weak)) | 19 | __attribute__ ((weak)) |
| 21 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_ortho_2x2u( | 20 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { |
| 22 | 0, | 21 | { 0, 0, 0, 0, 0, 0, 0}, |
| 23 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 22 | { 0, 1, 3, 0, 6, 8, 10}, |
| 24 | 0, 1, 3, 0, 6, 8, 10, 0, 13, 15, 0, 18, 20, 0, | 23 | { 0, 0, 2, 4, 5, 7, 9}, |
| 25 | 0, 0, 2, 4, 5, 7, 9, 11, 12, 14, 16, 17, 19, 0, | 24 | { 0, 0, 0, 0, 0, 0, 0}, |
| 26 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | 25 | { 0, 0, 0, 0, 0, 0, 0}, |
| 27 | ); | 26 | { 0, 13, 15, 0, 18, 20, 0}, |
| 27 | {11, 12, 14, 16, 17, 19, 0}, | ||
| 28 | { 0, 0, 0, 0, 0, 0, 0} | ||
| 29 | }; | ||
diff --git a/keyboards/moonlander/moonlander.c b/keyboards/moonlander/moonlander.c index e81c884adf..4146fc7afb 100644 --- a/keyboards/moonlander/moonlander.c +++ b/keyboards/moonlander/moonlander.c | |||
| @@ -16,8 +16,6 @@ | |||
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ | 17 | */ |
| 18 | 18 | ||
| 19 | |||
| 20 | #include QMK_KEYBOARD_H | ||
| 21 | #include "moonlander.h" | 19 | #include "moonlander.h" |
| 22 | 20 | ||
| 23 | keyboard_config_t keyboard_config; | 21 | keyboard_config_t keyboard_config; |
| @@ -370,14 +368,20 @@ void keyboard_post_init_kb(void) { | |||
| 370 | #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) | 368 | #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) |
| 371 | // clang-format off | 369 | // clang-format off |
| 372 | __attribute__ ((weak)) | 370 | __attribute__ ((weak)) |
| 373 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_moonlander( | 371 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { |
| 374 | 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, | 372 | {58, 59, 60, 61, 62, 63, 64}, |
| 375 | 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, | 373 | {44, 45, 46, 47, 48, 49, 50}, |
| 376 | 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, | 374 | {30, 31, 32, 33, 34, 35, 36}, |
| 377 | 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, | 375 | {18, 19, 20, 21, 22, 23, 0}, |
| 378 | 8, 9, 10, 11, 12, 3, 4, 13, 14, 15, 16, 17, | 376 | { 8, 9, 10, 11, 12, 0, 0}, |
| 379 | 0, 1, 2, 5, 6, 7 | 377 | { 0, 1, 2, 3, 0, 0, 0}, |
| 380 | ); | 378 | {65, 66, 67, 68, 69, 70, 71}, |
| 379 | {51, 52, 53, 54, 55, 56, 57}, | ||
| 380 | {37, 38, 39, 40, 41, 42, 43}, | ||
| 381 | { 0, 24, 25, 26, 27, 28, 29}, | ||
| 382 | { 0, 0, 13, 14, 15, 16, 17}, | ||
| 383 | { 0, 0, 0, 4, 5, 6, 7} | ||
| 384 | }; | ||
| 381 | // clang-format on | 385 | // clang-format on |
| 382 | #endif | 386 | #endif |
| 383 | 387 | ||
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index 8572818de2..e6bd217520 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c | |||
| @@ -356,3 +356,14 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 356 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 356 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 357 | # endif | 357 | # endif |
| 358 | #endif | 358 | #endif |
| 359 | |||
| 360 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 361 | {36, 37, 38, 39, 40, 41}, | ||
| 362 | {24, 25, 26, 27, 28, 29}, | ||
| 363 | {12, 13, 14, 15, 16, 17}, | ||
| 364 | { 0, 1, 2, 10, 11, 6}, | ||
| 365 | {42, 43, 44, 45, 46, 47}, | ||
| 366 | {30, 31, 32, 33, 34, 35}, | ||
| 367 | {18, 19, 20, 21, 22, 23}, | ||
| 368 | { 7, 8, 9, 3, 4, 5} | ||
| 369 | }; | ||
diff --git a/keyboards/planck/light/light.c b/keyboards/planck/light/light.c index e9d2f7c3d8..1fc6a65c0c 100644 --- a/keyboards/planck/light/light.c +++ b/keyboards/planck/light/light.c | |||
| @@ -140,3 +140,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 140 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 140 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 141 | # endif | 141 | # endif |
| 142 | #endif | 142 | #endif |
| 143 | |||
| 144 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 145 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 146 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 147 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 148 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 149 | }; | ||
diff --git a/keyboards/planck/planck.c b/keyboards/planck/planck.c index 4be96986a7..660be55bab 100644 --- a/keyboards/planck/planck.c +++ b/keyboards/planck/planck.c | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #include "quantum.h" | 1 | #include "quantum.h" |
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | 2 | ||
| 4 | __attribute__ ((weak)) | 3 | __attribute__ ((weak)) |
| 5 | void matrix_init_kb(void) { | 4 | void matrix_init_kb(void) { |
| @@ -12,13 +11,6 @@ void matrix_init_kb(void) { | |||
| 12 | matrix_init_user(); | 11 | matrix_init_user(); |
| 13 | } | 12 | } |
| 14 | 13 | ||
| 15 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_planck_grid( | ||
| 16 | 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, | ||
| 17 | 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, | ||
| 18 | 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, | ||
| 19 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 | ||
| 20 | ); | ||
| 21 | |||
| 22 | #ifdef ENCODER_ENABLE | 14 | #ifdef ENCODER_ENABLE |
| 23 | bool encoder_update_kb(uint8_t index, bool clockwise) { | 15 | bool encoder_update_kb(uint8_t index, bool clockwise) { |
| 24 | if (!encoder_update_user(index, clockwise)) { return false; } | 16 | if (!encoder_update_user(index, clockwise)) { return false; } |
diff --git a/keyboards/planck/rev1/rev1.c b/keyboards/planck/rev1/rev1.c index ee8a6bf533..f8f8d2132a 100644 --- a/keyboards/planck/rev1/rev1.c +++ b/keyboards/planck/rev1/rev1.c | |||
| @@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 14 | # endif | 14 | # endif |
| 15 | #endif | 15 | #endif |
| 16 | |||
| 17 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 18 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 19 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 20 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 21 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 22 | }; | ||
diff --git a/keyboards/planck/rev2/rev2.c b/keyboards/planck/rev2/rev2.c index ee8a6bf533..f8f8d2132a 100644 --- a/keyboards/planck/rev2/rev2.c +++ b/keyboards/planck/rev2/rev2.c | |||
| @@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 14 | # endif | 14 | # endif |
| 15 | #endif | 15 | #endif |
| 16 | |||
| 17 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 18 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 19 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 20 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 21 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 22 | }; | ||
diff --git a/keyboards/planck/rev3/rev3.c b/keyboards/planck/rev3/rev3.c index ee8a6bf533..f8f8d2132a 100644 --- a/keyboards/planck/rev3/rev3.c +++ b/keyboards/planck/rev3/rev3.c | |||
| @@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 14 | # endif | 14 | # endif |
| 15 | #endif | 15 | #endif |
| 16 | |||
| 17 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 18 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 19 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 20 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 21 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 22 | }; | ||
diff --git a/keyboards/planck/rev4/rev4.c b/keyboards/planck/rev4/rev4.c index ee8a6bf533..f8f8d2132a 100644 --- a/keyboards/planck/rev4/rev4.c +++ b/keyboards/planck/rev4/rev4.c | |||
| @@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 14 | # endif | 14 | # endif |
| 15 | #endif | 15 | #endif |
| 16 | |||
| 17 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 18 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 19 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 20 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 21 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 22 | }; | ||
diff --git a/keyboards/planck/rev5/rev5.c b/keyboards/planck/rev5/rev5.c index ee8a6bf533..f8f8d2132a 100644 --- a/keyboards/planck/rev5/rev5.c +++ b/keyboards/planck/rev5/rev5.c | |||
| @@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 13 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 14 | # endif | 14 | # endif |
| 15 | #endif | 15 | #endif |
| 16 | |||
| 17 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 18 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 19 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 20 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 21 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 22 | }; | ||
diff --git a/keyboards/planck/rev6/rev6.c b/keyboards/planck/rev6/rev6.c index 30cb2cb9c7..49f7d83123 100644 --- a/keyboards/planck/rev6/rev6.c +++ b/keyboards/planck/rev6/rev6.c | |||
| @@ -60,3 +60,14 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 60 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 60 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 61 | # endif | 61 | # endif |
| 62 | #endif | 62 | #endif |
| 63 | |||
| 64 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 65 | {36, 37, 38, 39, 40, 41}, | ||
| 66 | {24, 25, 26, 27, 28, 29}, | ||
| 67 | {12, 13, 14, 15, 16, 17}, | ||
| 68 | { 0, 1, 2, 9, 10, 11}, | ||
| 69 | {42, 43, 44, 45, 46, 47}, | ||
| 70 | {30, 31, 32, 33, 34, 35}, | ||
| 71 | {18, 19, 20, 21, 22, 23}, | ||
| 72 | { 6, 7, 8, 3, 4, 5} | ||
| 73 | }; | ||
diff --git a/keyboards/planck/rev6_drop/rev6_drop.c b/keyboards/planck/rev6_drop/rev6_drop.c index 049db9cec0..8f613851dc 100644 --- a/keyboards/planck/rev6_drop/rev6_drop.c +++ b/keyboards/planck/rev6_drop/rev6_drop.c | |||
| @@ -61,3 +61,14 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 61 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 61 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 62 | # endif | 62 | # endif |
| 63 | #endif | 63 | #endif |
| 64 | |||
| 65 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 66 | {36, 37, 38, 39, 40, 41}, | ||
| 67 | {24, 25, 26, 27, 28, 29}, | ||
| 68 | {12, 13, 14, 15, 16, 17}, | ||
| 69 | { 0, 1, 2, 9, 10, 11}, | ||
| 70 | {42, 43, 44, 45, 46, 47}, | ||
| 71 | {30, 31, 32, 33, 34, 35}, | ||
| 72 | {18, 19, 20, 21, 22, 23}, | ||
| 73 | { 6, 7, 8, 3, 4, 5} | ||
| 74 | }; | ||
diff --git a/keyboards/planck/thk/thk.c b/keyboards/planck/thk/thk.c index 42836f0f11..bd7080e01b 100644 --- a/keyboards/planck/thk/thk.c +++ b/keyboards/planck/thk/thk.c | |||
| @@ -30,3 +30,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 30 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 30 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 31 | # endif | 31 | # endif |
| 32 | #endif | 32 | #endif |
| 33 | |||
| 34 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 35 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 36 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 37 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 38 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 39 | }; | ||
diff --git a/keyboards/preonic/preonic.c b/keyboards/preonic/preonic.c index fd2fbd8c77..915806eb28 100644 --- a/keyboards/preonic/preonic.c +++ b/keyboards/preonic/preonic.c | |||
| @@ -1,13 +1,4 @@ | |||
| 1 | #include "quantum.h" | 1 | #include "quantum.h" |
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | |||
| 4 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_preonic_grid( | ||
| 5 | 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, | ||
| 6 | 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, | ||
| 7 | 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, | ||
| 8 | 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, | ||
| 9 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 | ||
| 10 | ); | ||
| 11 | 2 | ||
| 12 | #ifdef ENCODER_ENABLE | 3 | #ifdef ENCODER_ENABLE |
| 13 | bool encoder_update_kb(uint8_t index, bool clockwise) { | 4 | bool encoder_update_kb(uint8_t index, bool clockwise) { |
diff --git a/keyboards/preonic/rev1/rev1.c b/keyboards/preonic/rev1/rev1.c index 2d56f037f4..eed51f2d84 100644 --- a/keyboards/preonic/rev1/rev1.c +++ b/keyboards/preonic/rev1/rev1.c | |||
| @@ -34,3 +34,11 @@ void matrix_init_kb(void) { | |||
| 34 | {{11, 4}, {10, 4}, {9, 4}, {8, 4}, {7, 4}, {6, 4}, {5, 4}, {4, 4}, {3, 4}, {2, 4}, {1, 4}, {0, 4}}, | 34 | {{11, 4}, {10, 4}, {9, 4}, {8, 4}, {7, 4}, {6, 4}, {5, 4}, {4, 4}, {3, 4}, {2, 4}, {1, 4}, {0, 4}}, |
| 35 | }; | 35 | }; |
| 36 | #endif | 36 | #endif |
| 37 | |||
| 38 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 39 | {48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59}, | ||
| 40 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 41 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 42 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 43 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 44 | }; | ||
diff --git a/keyboards/preonic/rev2/rev2.c b/keyboards/preonic/rev2/rev2.c index 2d56f037f4..eed51f2d84 100644 --- a/keyboards/preonic/rev2/rev2.c +++ b/keyboards/preonic/rev2/rev2.c | |||
| @@ -34,3 +34,11 @@ void matrix_init_kb(void) { | |||
| 34 | {{11, 4}, {10, 4}, {9, 4}, {8, 4}, {7, 4}, {6, 4}, {5, 4}, {4, 4}, {3, 4}, {2, 4}, {1, 4}, {0, 4}}, | 34 | {{11, 4}, {10, 4}, {9, 4}, {8, 4}, {7, 4}, {6, 4}, {5, 4}, {4, 4}, {3, 4}, {2, 4}, {1, 4}, {0, 4}}, |
| 35 | }; | 35 | }; |
| 36 | #endif | 36 | #endif |
| 37 | |||
| 38 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 39 | {48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59}, | ||
| 40 | {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47}, | ||
| 41 | {24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35}, | ||
| 42 | {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23}, | ||
| 43 | { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11} | ||
| 44 | }; | ||
diff --git a/keyboards/preonic/rev3/rev3.c b/keyboards/preonic/rev3/rev3.c index 5cca62521c..5a751cbba5 100644 --- a/keyboards/preonic/rev3/rev3.c +++ b/keyboards/preonic/rev3/rev3.c | |||
| @@ -62,3 +62,16 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 62 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 62 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 63 | # endif | 63 | # endif |
| 64 | #endif | 64 | #endif |
| 65 | |||
| 66 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 67 | {48, 49, 50, 51, 52, 53}, | ||
| 68 | {36, 37, 38, 39, 40, 41}, | ||
| 69 | {24, 25, 26, 27, 28, 29}, | ||
| 70 | {12, 13, 14, 15, 16, 17}, | ||
| 71 | {54, 55, 56, 57, 58, 59}, | ||
| 72 | {42, 43, 44, 45, 46, 47}, | ||
| 73 | {30, 31, 32, 33, 34, 35}, | ||
| 74 | {18, 19, 20, 21, 22, 23}, | ||
| 75 | { 0, 1, 2, 9, 10, 11}, | ||
| 76 | { 6, 7, 8, 3, 4, 5} | ||
| 77 | }; | ||
diff --git a/keyboards/preonic/rev3_drop/rev3_drop.c b/keyboards/preonic/rev3_drop/rev3_drop.c index 5cca62521c..5a751cbba5 100644 --- a/keyboards/preonic/rev3_drop/rev3_drop.c +++ b/keyboards/preonic/rev3_drop/rev3_drop.c | |||
| @@ -62,3 +62,16 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { | |||
| 62 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; | 62 | const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0}; |
| 63 | # endif | 63 | # endif |
| 64 | #endif | 64 | #endif |
| 65 | |||
| 66 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { | ||
| 67 | {48, 49, 50, 51, 52, 53}, | ||
| 68 | {36, 37, 38, 39, 40, 41}, | ||
| 69 | {24, 25, 26, 27, 28, 29}, | ||
| 70 | {12, 13, 14, 15, 16, 17}, | ||
| 71 | {54, 55, 56, 57, 58, 59}, | ||
| 72 | {42, 43, 44, 45, 46, 47}, | ||
| 73 | {30, 31, 32, 33, 34, 35}, | ||
| 74 | {18, 19, 20, 21, 22, 23}, | ||
| 75 | { 0, 1, 2, 9, 10, 11}, | ||
| 76 | { 6, 7, 8, 3, 4, 5} | ||
| 77 | }; | ||
diff --git a/keyboards/unison/v04/v04.c b/keyboards/unison/v04/v04.c index d9e8ed9e8b..e0c4e8cee0 100644 --- a/keyboards/unison/v04/v04.c +++ b/keyboards/unison/v04/v04.c | |||
| @@ -17,11 +17,16 @@ | |||
| 17 | #include "quantum.h" | 17 | #include "quantum.h" |
| 18 | 18 | ||
| 19 | #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) | 19 | #if defined(AUDIO_ENABLE) && defined(MUSIC_MAP) |
| 20 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_all( | 20 | const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = { |
| 21 | 0,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62, | 21 | { 0, 47, 49, 51, 53, 55, 57, 59, 61, 0}, |
| 22 | 0, 32,33,34,35,36,37,38,39,40,41,42,43,44,45, 46, | 22 | {32, 0, 34, 36, 38, 40, 42, 44, 0, 0}, |
| 23 | 0, 17,18,19,20,21,22,23,24,25,26,27,28,29,30, 31, | 23 | {17, 19, 0, 21, 23, 25, 27, 29, 0, 0}, |
| 24 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16, | 24 | { 1, 3, 5, 0, 7, 9, 11, 13, 15, 0}, |
| 25 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 | 25 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, |
| 26 | ); | 26 | { 0, 48, 50, 52, 54, 0, 56, 58, 60, 62}, |
| 27 | { 0, 33, 35, 37, 39, 41, 0, 43, 45, 46}, | ||
| 28 | { 0, 18, 20, 22, 24, 26, 28, 0, 30, 31}, | ||
| 29 | { 0, 2, 4, 6, 8, 10, 12, 14, 0, 16}, | ||
| 30 | { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | ||
| 31 | }; | ||
| 27 | #endif | 32 | #endif |
