summaryrefslogtreecommitdiff
path: root/keyboards/macrocat/keymaps/oled/keymap.c
diff options
context:
space:
mode:
author李董睿煊 <dongruixuan@hotmail.com>2022-07-04 02:07:31 +0800
committerGitHub <noreply@github.com>2022-07-03 19:07:31 +0100
commit168a63172010924a7a00dc1bc9e6a3c510e8ce5a (patch)
treecbc0ad9b0f313e3daadcf081b0bb5e387d09ce69 /keyboards/macrocat/keymaps/oled/keymap.c
parentd87d537b50f9e1843e097334ac75e89a067c1525 (diff)
downloadqmk_firmware-168a63172010924a7a00dc1bc9e6a3c510e8ce5a.tar.gz
qmk_firmware-168a63172010924a7a00dc1bc9e6a3c510e8ce5a.zip
Add support for MacroCat Keyboard (#17480)
Diffstat (limited to 'keyboards/macrocat/keymaps/oled/keymap.c')
-rw-r--r--keyboards/macrocat/keymaps/oled/keymap.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/keyboards/macrocat/keymaps/oled/keymap.c b/keyboards/macrocat/keymaps/oled/keymap.c
new file mode 100644
index 0000000000..b9d5d9a9df
--- /dev/null
+++ b/keyboards/macrocat/keymaps/oled/keymap.c
@@ -0,0 +1,31 @@
+// Copyright 2022 catmunch (@catmunch)
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#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}
+ }
+};