Remove use of layout macros for music_map
(#20634)
This commit is contained in:
parent
4b87961689
commit
a42d6426d9
22 changed files with 192 additions and 64 deletions
|
@ -16,8 +16,6 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "moonlander.h"
|
||||
|
||||
keyboard_config_t keyboard_config;
|
||||
|
@ -370,14 +368,20 @@ void keyboard_post_init_kb(void) {
|
|||
#if defined(AUDIO_ENABLE) && defined(MUSIC_MAP)
|
||||
// clang-format off
|
||||
__attribute__ ((weak))
|
||||
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_moonlander(
|
||||
58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
|
||||
44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
|
||||
30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
|
||||
18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
||||
8, 9, 10, 11, 12, 3, 4, 13, 14, 15, 16, 17,
|
||||
0, 1, 2, 5, 6, 7
|
||||
);
|
||||
const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = {
|
||||
{58, 59, 60, 61, 62, 63, 64},
|
||||
{44, 45, 46, 47, 48, 49, 50},
|
||||
{30, 31, 32, 33, 34, 35, 36},
|
||||
{18, 19, 20, 21, 22, 23, 0},
|
||||
{ 8, 9, 10, 11, 12, 0, 0},
|
||||
{ 0, 1, 2, 3, 0, 0, 0},
|
||||
{65, 66, 67, 68, 69, 70, 71},
|
||||
{51, 52, 53, 54, 55, 56, 57},
|
||||
{37, 38, 39, 40, 41, 42, 43},
|
||||
{ 0, 24, 25, 26, 27, 28, 29},
|
||||
{ 0, 0, 13, 14, 15, 16, 17},
|
||||
{ 0, 0, 0, 4, 5, 6, 7}
|
||||
};
|
||||
// clang-format on
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue