Remove use of layout macros for music_map (#20634)

This commit is contained in:
Ryan
2023-04-30 18:58:06 +10:00
committed by GitHub
parent 4b87961689
commit a42d6426d9
22 changed files with 192 additions and 64 deletions

View File

@@ -356,3 +356,14 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41},
{24, 25, 26, 27, 28, 29},
{12, 13, 14, 15, 16, 17},
{ 0, 1, 2, 10, 11, 6},
{42, 43, 44, 45, 46, 47},
{30, 31, 32, 33, 34, 35},
{18, 19, 20, 21, 22, 23},
{ 7, 8, 9, 3, 4, 5}
};

View File

@@ -140,3 +140,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47},
{24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35},
{12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
};

View File

@@ -1,5 +1,4 @@
#include "quantum.h"
#include QMK_KEYBOARD_H
__attribute__ ((weak))
void matrix_init_kb(void) {
@@ -12,13 +11,6 @@ void matrix_init_kb(void) {
matrix_init_user();
}
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_planck_grid(
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
);
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }

View File

@@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47},
{24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35},
{12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
};

View File

@@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47},
{24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35},
{12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
};

View File

@@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47},
{24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35},
{12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
};

View File

@@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47},
{24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35},
{12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
};

View File

@@ -13,3 +13,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47},
{24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35},
{12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
};

View File

@@ -60,3 +60,14 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41},
{24, 25, 26, 27, 28, 29},
{12, 13, 14, 15, 16, 17},
{ 0, 1, 2, 9, 10, 11},
{42, 43, 44, 45, 46, 47},
{30, 31, 32, 33, 34, 35},
{18, 19, 20, 21, 22, 23},
{ 6, 7, 8, 3, 4, 5}
};

View File

@@ -61,3 +61,14 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41},
{24, 25, 26, 27, 28, 29},
{12, 13, 14, 15, 16, 17},
{ 0, 1, 2, 9, 10, 11},
{42, 43, 44, 45, 46, 47},
{30, 31, 32, 33, 34, 35},
{18, 19, 20, 21, 22, 23},
{ 6, 7, 8, 3, 4, 5}
};

View File

@@ -30,3 +30,10 @@ const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
const uint8_t PROGMEM encoder_hand_swap_config[NUM_ENCODERS] = {0};
# endif
#endif
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
{36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47},
{24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35},
{12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23},
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}
};