From 1ddff6e30d9ec0d3a234aef9370b2272768bc3fd Mon Sep 17 00:00:00 2001
From: spacehangover <51838046+spacehangover@users.noreply.github.com>
Date: Tue, 13 Feb 2024 23:20:04 -0300
Subject: [PATCH] Added Soyuz Macropad WWA (#23072)

* added mercury macropad WWA

* Revert "added mercury macropad WWA"

This reverts commit 81b48185d37ad704781c07bf6d9df2203a897de7.

* added Mercury macropad WWA

* added Soyuz Macropad
---
 keyboards/handwired/wwa/soyuz/info.json       | 55 +++++++++++++++++++
 .../wwa/soyuz/keymaps/default/keymap.c        | 13 +++++
 .../handwired/wwa/soyuz/keymaps/via/keymap.c  | 12 ++++
 .../handwired/wwa/soyuz/keymaps/via/rules.mk  |  1 +
 keyboards/handwired/wwa/soyuz/readme.md       | 27 +++++++++
 keyboards/handwired/wwa/soyuz/rules.mk        |  0
 6 files changed, 108 insertions(+)
 create mode 100644 keyboards/handwired/wwa/soyuz/info.json
 create mode 100644 keyboards/handwired/wwa/soyuz/keymaps/default/keymap.c
 create mode 100644 keyboards/handwired/wwa/soyuz/keymaps/via/keymap.c
 create mode 100644 keyboards/handwired/wwa/soyuz/keymaps/via/rules.mk
 create mode 100644 keyboards/handwired/wwa/soyuz/readme.md
 create mode 100644 keyboards/handwired/wwa/soyuz/rules.mk

diff --git a/keyboards/handwired/wwa/soyuz/info.json b/keyboards/handwired/wwa/soyuz/info.json
new file mode 100644
index 0000000000..9670f312a6
--- /dev/null
+++ b/keyboards/handwired/wwa/soyuz/info.json
@@ -0,0 +1,55 @@
+{
+    "manufacturer": "spacehangover",
+    "keyboard_name": "Soyuz",
+    "maintainer": "spacehangover",
+    "bootloader": "rp2040",
+    "diode_direction": "COL2ROW",
+    "features": {
+        "bootmagic": true,
+        "command": false,
+        "console": false,
+        "extrakey": true,
+        "mousekey": true,
+        "nkro": true
+    },
+    "matrix_pins": {
+        "cols": ["GP0", "GP1", "GP2", "GP3", "GP4", "GP5", "GP6"],
+        "rows": ["GP7", "GP8", "GP9"]
+    },
+    "processor": "RP2040",
+    "url": "",
+    "usb": {
+        "device_version": "1.0.0",
+        "pid": "0x0004",
+        "vid": "0x5757"
+    },
+    "layouts": {
+        "LAYOUT": {
+            "layout": [
+                {"matrix": [0, 0], "x": 0, "y": 0},
+                {"matrix": [0, 1], "x": 1, "y": 0},
+                {"matrix": [0, 2], "x": 2, "y": 0},
+                {"matrix": [0, 3], "x": 3, "y": 0},
+                {"matrix": [0, 4], "x": 4, "y": 0},
+                {"matrix": [0, 5], "x": 5, "y": 0},
+                {"matrix": [0, 6], "x": 6, "y": 0},
+
+                {"matrix": [1, 0], "x": 0, "y": 1},
+                {"matrix": [1, 1], "x": 1, "y": 1},
+                {"matrix": [1, 2], "x": 2, "y": 1},
+                {"matrix": [1, 3], "x": 3, "y": 1},
+                {"matrix": [1, 4], "x": 4, "y": 1},
+                {"matrix": [1, 5], "x": 5, "y": 1},
+                {"matrix": [1, 6], "x": 6, "y": 1},
+
+                {"matrix": [2, 0], "x": 0, "y": 2},
+                {"matrix": [2, 1], "x": 1, "y": 2},
+                {"matrix": [2, 2], "x": 2, "y": 2},
+                {"matrix": [2, 3], "x": 3, "y": 2},
+                {"matrix": [2, 4], "x": 4, "y": 2},
+                {"matrix": [2, 5], "x": 5, "y": 2},
+                {"matrix": [2, 6], "x": 6, "y": 2}
+            ]
+        }
+    }
+}
\ No newline at end of file
diff --git a/keyboards/handwired/wwa/soyuz/keymaps/default/keymap.c b/keyboards/handwired/wwa/soyuz/keymaps/default/keymap.c
new file mode 100644
index 0000000000..af0eb592dc
--- /dev/null
+++ b/keyboards/handwired/wwa/soyuz/keymaps/default/keymap.c
@@ -0,0 +1,13 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+    [0] = LAYOUT(
+        KC_F4,   KC_F5,   KC_F6,   KC_F7,   KC_F8,    KC_F9,     KC_F10,
+        KC_F11,  KC_F12,  KC_F13,  KC_F14,  KC_F15,   KC_F16,    KC_F17,
+        KC_F18,  KC_F19,  KC_F20,  KC_F21,  KC_F22,   KC_F23,    KC_F24 
+    )
+};
\ No newline at end of file
diff --git a/keyboards/handwired/wwa/soyuz/keymaps/via/keymap.c b/keyboards/handwired/wwa/soyuz/keymaps/via/keymap.c
new file mode 100644
index 0000000000..41c76826a9
--- /dev/null
+++ b/keyboards/handwired/wwa/soyuz/keymaps/via/keymap.c
@@ -0,0 +1,12 @@
+// Copyright 2023 QMK
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+    [0] = LAYOUT(
+        KC_F4,   KC_F5,   KC_F6,   KC_F7,   KC_F8,    KC_F9,     KC_F10,
+        KC_F11,  KC_F12,  KC_F13,  KC_F14,  KC_F15,   KC_F16,    KC_F17,
+        KC_F18,  KC_F19,  KC_F20,  KC_F21,  KC_F22,   KC_F23,    KC_F24 
+    )
+};
\ No newline at end of file
diff --git a/keyboards/handwired/wwa/soyuz/keymaps/via/rules.mk b/keyboards/handwired/wwa/soyuz/keymaps/via/rules.mk
new file mode 100644
index 0000000000..036bd6d1c3
--- /dev/null
+++ b/keyboards/handwired/wwa/soyuz/keymaps/via/rules.mk
@@ -0,0 +1 @@
+VIA_ENABLE = yes
\ No newline at end of file
diff --git a/keyboards/handwired/wwa/soyuz/readme.md b/keyboards/handwired/wwa/soyuz/readme.md
new file mode 100644
index 0000000000..69f8ef9d76
--- /dev/null
+++ b/keyboards/handwired/wwa/soyuz/readme.md
@@ -0,0 +1,27 @@
+# soyuz
+
+![soyuz](https://i.imgur.com/KwwORGSh.jpeg)
+
+21 Key and 3 MIDI Potentiometers Macro Keyboard
+
+* Keyboard Maintainer: [spacehangover](https://github.com/spacehangover)
+* Hardware Supported: RP2040 Handwired
+* Hardware Availability: RP2040 Pico
+
+Make example for this keyboard (after setting up your build environment):
+
+    make handwired/wwa/soyuz:default
+
+Flashing example for this keyboard:
+
+    make handwired/wwa/soyuz: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:
+
+* **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
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
diff --git a/keyboards/handwired/wwa/soyuz/rules.mk b/keyboards/handwired/wwa/soyuz/rules.mk
new file mode 100644
index 0000000000..e69de29bb2