summaryrefslogtreecommitdiff
path: root/keyboards/ai03
diff options
context:
space:
mode:
authorSendy YK <mr@sendyyk.com>2020-08-16 08:26:48 +0700
committerGitHub <noreply@github.com>2020-08-16 02:26:48 +0100
commit7c7feb44b2af2d7e6ecb452a34499885045d9726 (patch)
treeceffbb9f49c489f50a21b5d7e1ceaea949d2f543 /keyboards/ai03
parentf64245b10b6e388a7ea7f6aa2ebb37c93409e691 (diff)
Add numpad llayout to ai03/soyuz & personal keymap (#10030)
* ai03 Soyuz ## Description @ai03-2725 Soyuz: 1. Update `soyuz.h` (Add `LAYOUT_5x4`) 2. Added `keymap.c` 3. Added `readme.md` * Update readme.md * Update readme.md * Update keymap.c * Update keymap.c * Update keymap.c * Update keymap.c * Update soyuz.h Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/ai03/soyuz/soyuz.h Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/ai03/soyuz/keymaps/mrsendyyk/keymap.c Co-authored-by: Joel Challis <git@zvecr.com> * Update keyboards/ai03/soyuz/keymaps/mrsendyyk/keymap.c Co-authored-by: Joel Challis <git@zvecr.com> * Update rules.mk * Update keymap.c * Update keymap.c * Update keymap.c * Update readme.md * Update rules.mk * Update soyuz.h * Update soyuz.h * Update * Rename readme.md to README.md * Update keymap.c * Rename README.md to readme.md Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/ai03')
-rw-r--r--keyboards/ai03/soyuz/keymaps/mrsendyyk/keymap.c24
-rw-r--r--keyboards/ai03/soyuz/keymaps/mrsendyyk/readme.md25
-rw-r--r--keyboards/ai03/soyuz/rules.mk4
-rw-r--r--keyboards/ai03/soyuz/soyuz.h28
4 files changed, 78 insertions, 3 deletions
diff --git a/keyboards/ai03/soyuz/keymaps/mrsendyyk/keymap.c b/keyboards/ai03/soyuz/keymaps/mrsendyyk/keymap.c
new file mode 100644
index 0000000000..f55f58a571
--- /dev/null
+++ b/keyboards/ai03/soyuz/keymaps/mrsendyyk/keymap.c
@@ -0,0 +1,24 @@
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
+ /*[0]
+ *┌───┬───┬───┬───┐
+ *│N L│/ │* │- │
+ *├───┼───┼───┼───┤
+ *│7 │8 │9 │ │
+ *├───┼───┼───┤+ │
+ *│4 │5 │6 │ │
+ *├───┼───┼───┼───┤
+ *│1 │2 │3 │ │
+ *├───┴───┼───┤Ent│
+ *│0 │. │ │
+ *└───────┴───┴───┘
+ */
+
+ [0] = LAYOUT_numpad_5x4(KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
+ KC_P7, KC_P8, KC_P9,
+ KC_P4, KC_P5, KC_P6, KC_PPLS,
+ KC_P1, KC_P2, KC_P3,
+ KC_P0, KC_PDOT, KC_PENT)
+};
diff --git a/keyboards/ai03/soyuz/keymaps/mrsendyyk/readme.md b/keyboards/ai03/soyuz/keymaps/mrsendyyk/readme.md
new file mode 100644
index 0000000000..44db060bb7
--- /dev/null
+++ b/keyboards/ai03/soyuz/keymaps/mrsendyyk/readme.md
@@ -0,0 +1,25 @@
+# [Sendy YK](https://mr.sendyyk.com)'s Keymap
+
+`LAYOUT_numpad_5x4`
+
+### [0]
+
+```
+┌───┬───┬───┬───┐
+│N L│/ │* │- │
+├───┼───┼───┼───┤
+│7 │8 │9 │ │
+├───┼───┼───┤+ │
+│4 │5 │6 │ │
+├───┼───┼───┼───┤
+│1 │2 │3 │ │
+├───┴───┼───┤Ent│
+│0 │. │ │
+└───────┴───┴───┘
+```
+
+## Build The Firmware
+
+You will need to build the firmware. To do so go to your terminal window and run the compile command:
+
+ qmk compile -kb ai03/soyuz -km mrsendyyk
diff --git a/keyboards/ai03/soyuz/rules.mk b/keyboards/ai03/soyuz/rules.mk
index d75ca6435b..5af8959743 100644
--- a/keyboards/ai03/soyuz/rules.mk
+++ b/keyboards/ai03/soyuz/rules.mk
@@ -25,10 +25,8 @@ SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
-MIDI_ENABLE = no # MIDI support
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
AUDIO_ENABLE = no # Audio output on port C6
-FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
-LAYOUTS = ortho_5x4
+LAYOUTS = ortho_5x4 numpad_5x4
diff --git a/keyboards/ai03/soyuz/soyuz.h b/keyboards/ai03/soyuz/soyuz.h
index a379f8ede6..05c42a6d64 100644
--- a/keyboards/ai03/soyuz/soyuz.h
+++ b/keyboards/ai03/soyuz/soyuz.h
@@ -39,3 +39,31 @@
{ K30, K31, K32, K33 }, \
{ K40, K41, K42, K43 } \
}
+
+/*
+ * ┌───┬───┬───┬───┐
+ * │00 │01 │02 │03 │
+ * ├───┼───┼───┼───┤
+ * │10 │11 │12 │ │
+ * ├───┼───┼───┤23 │
+ * │20 │21 │22 │ │
+ * ├───┼───┼───┼───┤
+ * │30 │31 │32 │ │
+ * ├───┴───┼───┤43 │
+ * │41 │42 │ │
+ * └───────┴───┴───┘
+*/
+
+#define LAYOUT_numpad_5x4( \
+ k00, k01, k02, k03, \
+ k10, k11, k12, \
+ k20, k21, k22, k23, \
+ k30, k31, k32, \
+ k41, k42, k43 \
+) { \
+ { k00, k01, k02, k03 }, \
+ { k10, k11, k12, KC_NO }, \
+ { k20, k21, k22, k23 }, \
+ { k30, k31, k32, KC_NO }, \
+ { KC_NO, k41, k42, k43 } \
+}