Skip to content

Commit

Permalink
ANAVI Macro Pad 12: rename LAYOUT to LAYOUT_ortho_4x3 (qmk#21886)
Browse files Browse the repository at this point in the history
[refactor]
  • Loading branch information
noroadsleft authored and akeep committed Oct 2, 2023
1 parent d7b65b2 commit 4545db1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion keyboards/anavi/macropad12/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@
"backlight": {
"pin": "GP26"
},
"layout_aliases": {
"LAYOUT": "LAYOUT_ortho_4x3"
},
"layouts": {
"LAYOUT": {
"LAYOUT_ortho_4x3": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
Expand Down
2 changes: 1 addition & 1 deletion keyboards/anavi/macropad12/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enum layer_names {
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT(
[_BASE] = LAYOUT_ortho_4x3(
KC_1, KC_2, KC_3,
KC_4, KC_5, KC_6,
KC_7, KC_8, KC_9,
Expand Down

0 comments on commit 4545db1

Please sign in to comment.