summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-11-12 05:31:01 +0000
committerQMK Bot <hello@qmk.fm>2023-11-12 05:31:01 +0000
commitb7a1004b61bac24d6eaeae06dfb504abd14010d3 (patch)
tree54f90c72b1b2c84c6cef30dedbfc38a315c1fd3e /keyboards
parent112a51db9c2346acb7fdedd788596218848f6852 (diff)
parentc2326c05c0778025adc681b962a04626ea6dba77 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/snes_macropad/info.json24
-rw-r--r--keyboards/snes_macropad/keymaps/default/keymap.c2
-rw-r--r--keyboards/snes_macropad/keymaps/jbarberu/keymap.c2
-rw-r--r--keyboards/snes_macropad/keymaps/test/keymap.c2
-rw-r--r--keyboards/snes_macropad/snes_macropad.c4
5 files changed, 17 insertions, 17 deletions
diff --git a/keyboards/snes_macropad/info.json b/keyboards/snes_macropad/info.json
index c54e9bb0b2..15e3c9ee67 100644
--- a/keyboards/snes_macropad/info.json
+++ b/keyboards/snes_macropad/info.json
@@ -45,18 +45,18 @@
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [2, 3], "x": 3, "y": 2},
- {"matrix": [3, 0], "x": 0, "y": 3},
- {"matrix": [3, 1], "x": 1, "y": 3},
- {"matrix": [3, 2], "x": 2, "y": 3},
- {"matrix": [3, 3], "x": 3, "y": 3},
- {"matrix": [4, 0], "x": 0, "y": 4},
- {"matrix": [4, 1], "x": 1, "y": 4},
- {"matrix": [4, 2], "x": 2, "y": 4},
- {"matrix": [4, 3], "x": 3, "y": 4},
- {"matrix": [5, 0], "x": 0, "y": 5},
- {"matrix": [5, 1], "x": 1, "y": 5},
- {"matrix": [5, 2], "x": 2, "y": 5},
- {"matrix": [5, 3], "x": 3, "y": 5}
+ {"matrix": [3, 0], "x": 5.2, "y": 0, "w": 2, "h": 0.75},
+ {"matrix": [3, 1], "x": 10.65, "y": 0, "w": 2, "h": 0.75},
+ {"matrix": [3, 2], "x": 7.9, "y": 2.5, "w": 1, "h": 0.75},
+ {"matrix": [3, 3], "x": 8.9, "y": 2.5, "w": 1, "h": 0.75},
+ {"matrix": [4, 0], "x": 6, "y": 1, "w": 0.85, "h": 0.85},
+ {"matrix": [4, 1], "x": 6, "y": 3, "w": 0.85, "h": 0.85},
+ {"matrix": [4, 2], "x": 5.2, "y": 2, "w": 0.85, "h": 0.85},
+ {"matrix": [4, 3], "x": 6.8, "y": 2, "w": 0.85, "h": 0.85},
+ {"matrix": [5, 0], "x": 11.8, "y": 2, "w": 0.85, "h": 0.85},
+ {"matrix": [5, 1], "x": 11, "y": 3, "w": 0.85, "h": 0.85},
+ {"matrix": [5, 2], "x": 11, "y": 1, "w": 0.85, "h": 0.85},
+ {"matrix": [5, 3], "x": 10.2, "y": 2, "w": 0.85, "h": 0.85}
]
}
},
diff --git a/keyboards/snes_macropad/keymaps/default/keymap.c b/keyboards/snes_macropad/keymaps/default/keymap.c
index 34f4f6248a..c4896b1f49 100644
--- a/keyboards/snes_macropad/keymaps/default/keymap.c
+++ b/keyboards/snes_macropad/keymaps/default/keymap.c
@@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// clang-format on
-const char* get_layer_name_user(int layer) {
+const char* get_layer_name_user(uint8_t layer) {
switch (layer) {
case L_Numpad:
return "Numpad";
diff --git a/keyboards/snes_macropad/keymaps/jbarberu/keymap.c b/keyboards/snes_macropad/keymaps/jbarberu/keymap.c
index 0fbe0fa626..478d1461e2 100644
--- a/keyboards/snes_macropad/keymaps/jbarberu/keymap.c
+++ b/keyboards/snes_macropad/keymaps/jbarberu/keymap.c
@@ -81,7 +81,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// clang-format on
-const char * get_layer_name_user(int layer) {
+const char * get_layer_name_user(uint8_t layer) {
switch (layer) {
case L_Numpad:
return "Numpad";
diff --git a/keyboards/snes_macropad/keymaps/test/keymap.c b/keyboards/snes_macropad/keymaps/test/keymap.c
index 86dd669965..72be941694 100644
--- a/keyboards/snes_macropad/keymaps/test/keymap.c
+++ b/keyboards/snes_macropad/keymaps/test/keymap.c
@@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
};
// clang-format on
-const char * get_layer_name_user(int layer) {
+const char * get_layer_name_user(uint8_t layer) {
switch (layer) {
case L_Numpad:
return "Numpad";
diff --git a/keyboards/snes_macropad/snes_macropad.c b/keyboards/snes_macropad/snes_macropad.c
index 1625864466..1dcfda33ec 100644
--- a/keyboards/snes_macropad/snes_macropad.c
+++ b/keyboards/snes_macropad/snes_macropad.c
@@ -57,8 +57,8 @@ static void oled_render_keylog(void) {
oled_write_char(key_name, false);
}
-__attribute__((weak)) const char * get_layer_name_user(int layer) {
- return "Unknown";
+__attribute__((weak)) const char * get_layer_name_user(uint8_t layer) {
+ return get_u8_str(layer, ' ');
}
static void oled_render_layer(void) {