summaryrefslogtreecommitdiff
path: root/keyboards/planck
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-04-30 18:58:06 +1000
committerGitHub <noreply@github.com>2023-04-30 18:58:06 +1000
commita42d6426d9bbf1ddc15cfe77b3764524269b0d7e (patch)
tree7751396d683469990dc55e2a5f4f0d5eae8f2a69 /keyboards/planck
parent4b8796168913e40de57352c7daa8eb726398aec8 (diff)
Remove use of layout macros for `music_map` (#20634)
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/ez/ez.c11
-rw-r--r--keyboards/planck/light/light.c7
-rw-r--r--keyboards/planck/planck.c8
-rw-r--r--keyboards/planck/rev1/rev1.c7
-rw-r--r--keyboards/planck/rev2/rev2.c7
-rw-r--r--keyboards/planck/rev3/rev3.c7
-rw-r--r--keyboards/planck/rev4/rev4.c7
-rw-r--r--keyboards/planck/rev5/rev5.c7
-rw-r--r--keyboards/planck/rev6/rev6.c11
-rw-r--r--keyboards/planck/rev6_drop/rev6_drop.c11
-rw-r--r--keyboards/planck/thk/thk.c7
11 files changed, 82 insertions, 8 deletions
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] = {
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}
+};
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] = {
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}
+};
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 @@
#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; }
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] = {
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}
+};
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] = {
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}
+};
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] = {
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}
+};
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] = {
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}
+};
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] = {
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}
+};
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] = {
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}
+};
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] = {
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}
+};
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] = {
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}
+};