summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Young <18669334+noroadsleft@users.noreply.github.com>2022-08-10 18:34:20 -0700
committerGitHub <noreply@github.com>2022-08-10 18:34:20 -0700
commitc230d0658eb1e8293695d16ad93549b81059449f (patch)
tree1aa3ab82ce7b0e65e70edeab4fb7f451c646843c
parentd790b535802e4e219b37e6cbbb780239b0631b19 (diff)
MacroCat Refactor (#17969)
-rw-r--r--keyboards/macrocat/info.json9
-rw-r--r--keyboards/macrocat/keymaps/default/keymap.c24
-rw-r--r--keyboards/macrocat/keymaps/oled/keymap.c48
-rw-r--r--keyboards/macrocat/keymaps/via/keymap.c48
-rw-r--r--keyboards/macrocat/readme.md6
5 files changed, 69 insertions, 66 deletions
diff --git a/keyboards/macrocat/info.json b/keyboards/macrocat/info.json
index bf3edb084d..421f1283e1 100644
--- a/keyboards/macrocat/info.json
+++ b/keyboards/macrocat/info.json
@@ -1,7 +1,7 @@
{
"manufacturer": "Catmunch",
"keyboard_name": "MacroCat Keyboard",
- "maintainer": "Catmunch",
+ "maintainer": "Catmunch, starcatmeow",
"bootloader": "atmel-dfu",
"diode_direction": "COL2ROW",
"features": {
@@ -24,8 +24,11 @@
"pid": "0x8086",
"vid": "0x2022"
},
+ "layout_aliases": {
+ "LAYOUT_numpad_4x4": "LAYOUT_ortho_4x4"
+ },
"layouts": {
- "LAYOUT_numpad_4x4": {
+ "LAYOUT_ortho_4x4": {
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0 },
{ "matrix": [0, 1], "x": 1, "y": 0 },
@@ -46,4 +49,4 @@
]
}
}
-} \ No newline at end of file
+}
diff --git a/keyboards/macrocat/keymaps/default/keymap.c b/keyboards/macrocat/keymaps/default/keymap.c
index b173938b70..538dd03295 100644
--- a/keyboards/macrocat/keymaps/default/keymap.c
+++ b/keyboards/macrocat/keymaps/default/keymap.c
@@ -4,16 +4,16 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = {
- {KC_PLUS, KC_9, KC_8, KC_7 },
- {KC_MINS, KC_6, KC_5, KC_4 },
- {KC_DOT, KC_3, KC_2, KC_1 },
- {KC_ENT, KC_SPACE, KC_0, MO(1)}
- },
- [1] = {
- {KC_ASTR, KC_MPRV, KC_MPLY,KC_MNXT},
- {KC_SLSH, KC_LPRN, KC_UP, KC_RPRN},
- {KC_COMM, KC_LEFT, KC_DOWN,KC_RIGHT},
- {KC_TAB, KC_BSPC, KC_0, KC_TRNS}
- }
+ [0] = LAYOUT_ortho_4x4(
+ KC_PLUS, KC_9, KC_8, KC_7 ,
+ KC_MINS, KC_6, KC_5, KC_4 ,
+ KC_DOT, KC_3, KC_2, KC_1 ,
+ KC_ENT, KC_SPACE, KC_0, MO(1)
+ ),
+ [1] = LAYOUT_ortho_4x4(
+ KC_ASTR, KC_MPRV, KC_MPLY,KC_MNXT,
+ KC_SLSH, KC_LPRN, KC_UP, KC_RPRN,
+ KC_COMM, KC_LEFT, KC_DOWN,KC_RIGHT,
+ KC_TAB, KC_BSPC, KC_0, KC_TRNS
+ )
};
diff --git a/keyboards/macrocat/keymaps/oled/keymap.c b/keyboards/macrocat/keymaps/oled/keymap.c
index b9d5d9a9df..c9864c1dc7 100644
--- a/keyboards/macrocat/keymaps/oled/keymap.c
+++ b/keyboards/macrocat/keymaps/oled/keymap.c
@@ -4,28 +4,28 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = {
- {KC_PLUS, KC_9, KC_8, KC_7 },
- {KC_MINS, KC_6, KC_5, KC_4 },
- {KC_DOT, KC_3, KC_2, KC_1 },
- {KC_ENT, KC_SPACE, KC_0, MO(1)}
- },
- [1] = {
- {KC_ASTR, KC_MPRV, KC_MPLY,KC_MNXT},
- {KC_SLSH, KC_LPRN, KC_UP, KC_RPRN},
- {KC_COMM, KC_LEFT, KC_DOWN,KC_RIGHT},
- {KC_TAB, KC_BSPC, KC_0, KC_TRNS}
- },
- [2] = {
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO}
- },
- [3] = {
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO}
- }
+ [0] = LAYOUT_ortho_4x4(
+ KC_PLUS, KC_9, KC_8, KC_7 ,
+ KC_MINS, KC_6, KC_5, KC_4 ,
+ KC_DOT, KC_3, KC_2, KC_1 ,
+ KC_ENT, KC_SPACE, KC_0, MO(1)
+ ),
+ [1] = LAYOUT_ortho_4x4(
+ KC_ASTR, KC_MPRV, KC_MPLY,KC_MNXT,
+ KC_SLSH, KC_LPRN, KC_UP, KC_RPRN,
+ KC_COMM, KC_LEFT, KC_DOWN,KC_RIGHT,
+ KC_TAB, KC_BSPC, KC_0, KC_TRNS
+ ),
+ [2] = LAYOUT_ortho_4x4(
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO
+ ),
+ [3] = LAYOUT_ortho_4x4(
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO
+ )
};
diff --git a/keyboards/macrocat/keymaps/via/keymap.c b/keyboards/macrocat/keymaps/via/keymap.c
index c10d6e1357..3a0df45fb7 100644
--- a/keyboards/macrocat/keymaps/via/keymap.c
+++ b/keyboards/macrocat/keymaps/via/keymap.c
@@ -4,28 +4,28 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- [0] = {
- {KC_PPLS, KC_9, KC_8, KC_7 },
- {KC_PMNS, KC_6, KC_5, KC_4 },
- {KC_PDOT, KC_3, KC_2, KC_1 },
- {KC_PENT, KC_SPACE, KC_P0, MO(1)}
- },
- [1] = {
- {KC_PAST, KC_NO, KC_NO, KC_NO},
- {KC_PSLS, KC_LPRN, KC_UP, KC_RPRN},
- {KC_COMM, KC_LEFT, KC_DOWN,KC_RIGHT},
- {KC_TAB, KC_BSPC, KC_P0, KC_TRNS}
- },
- [2] = {
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO}
- },
- [3] = {
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO},
- {KC_NO, KC_NO, KC_NO, KC_NO}
- }
+ [0] = LAYOUT_ortho_4x4(
+ KC_PPLS, KC_9, KC_8, KC_7 ,
+ KC_PMNS, KC_6, KC_5, KC_4 ,
+ KC_PDOT, KC_3, KC_2, KC_1 ,
+ KC_PENT, KC_SPACE, KC_P0, MO(1)
+ ),
+ [1] = LAYOUT_ortho_4x4(
+ KC_PAST, KC_NO, KC_NO, KC_NO,
+ KC_PSLS, KC_LPRN, KC_UP, KC_RPRN,
+ KC_COMM, KC_LEFT, KC_DOWN,KC_RIGHT,
+ KC_TAB, KC_BSPC, KC_P0, KC_TRNS
+ ),
+ [2] = LAYOUT_ortho_4x4(
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO
+ ),
+ [3] = LAYOUT_ortho_4x4(
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO
+ )
};
diff --git a/keyboards/macrocat/readme.md b/keyboards/macrocat/readme.md
index 42cf36dc16..da06c04f63 100644
--- a/keyboards/macrocat/readme.md
+++ b/keyboards/macrocat/readme.md
@@ -4,7 +4,7 @@
A cat like macro keyboard/numpad.
-* Keyboard Maintainer: [catmunch](https://github.com/catmunch)
+* Keyboard Maintainer: [catmunch](https://github.com/catmunch), [starcatmeow](https://github.com/starcatmeow)
* Hardware Supported: Fully Supported
* Hardware Availability: [MacroCat Keyboard](https://github.com/catmunch/macrocat)
@@ -16,8 +16,6 @@ Flashing example for this keyboard:
make macrocat:default:flash
-See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
-
## Bootloader
Enter the bootloader in 3 ways:
@@ -25,3 +23,5 @@ Enter the bootloader in 3 ways:
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Brand new atmega32u4 chip**: Plug the cable in, it will automatically boot into bootloader
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).