summaryrefslogtreecommitdiff
path: root/keyboards/winry
diff options
context:
space:
mode:
authorpeepeetee <43021794+peepeetee@users.noreply.github.com>2022-01-14 01:18:56 +0800
committerGitHub <noreply@github.com>2022-01-13 09:18:56 -0800
commit50baf28386b1cb8a7e033b1ad9629206c62a6131 (patch)
treeba771cfa8bd75b40e62f26d70d16d1cc6a0c24cc /keyboards/winry
parent3f5d47eae8baf9a58d8b39e080cf97ad070c5bd0 (diff)
move winry25tc to winry/ (#15637)
Diffstat (limited to 'keyboards/winry')
-rw-r--r--keyboards/winry/winry25tc/config.h41
-rw-r--r--keyboards/winry/winry25tc/info.json36
-rw-r--r--keyboards/winry/winry25tc/keymaps/default/keymap.c39
-rw-r--r--keyboards/winry/winry25tc/readme.md19
-rw-r--r--keyboards/winry/winry25tc/rules.mk19
-rw-r--r--keyboards/winry/winry25tc/winry25tc.c17
-rw-r--r--keyboards/winry/winry25tc/winry25tc.h33
7 files changed, 204 insertions, 0 deletions
diff --git a/keyboards/winry/winry25tc/config.h b/keyboards/winry/winry25tc/config.h
new file mode 100644
index 0000000000..1e7ff4c63b
--- /dev/null
+++ b/keyboards/winry/winry25tc/config.h
@@ -0,0 +1,41 @@
+/* Copyright 2021 Andrzej Ressel (andrzej.ressel@gmail.com)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0xFEED
+#define PRODUCT_ID 0x0000
+#define DEVICE_VER 0x0001
+#define MANUFACTURER SpiderIsland
+#define PRODUCT Winry 25tc
+
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 5
+
+#define MATRIX_ROW_PINS { E6, F0, D6, D2, B6 }
+#define MATRIX_COL_PINS { F5, C7, B7, B2, B4 }
+
+#define DIODE_DIRECTION COL2ROW
+
+#define RGB_DI_PIN D5
+#define RGBLED_NUM 40
+#define RGBLIGHT_HUE_STEP 8
+#define RGBLIGHT_SAT_STEP 8
+#define RGBLIGHT_VAL_STEP 8
+#define RGBLIGHT_LIMIT_VAL 150 /* The maximum brightness level */
diff --git a/keyboards/winry/winry25tc/info.json b/keyboards/winry/winry25tc/info.json
new file mode 100644
index 0000000000..8e503bc74a
--- /dev/null
+++ b/keyboards/winry/winry25tc/info.json
@@ -0,0 +1,36 @@
+{
+ "keyboard_name": "Winry 25tc",
+ "url": "",
+ "maintainer": "qmk",
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"label":"K00 (E6,F5)", "x":0, "y":0},
+ {"label":"K01 (E6,C7)", "x":1, "y":0},
+ {"label":"K02 (E6,B7)", "x":2, "y":0},
+ {"label":"K03 (E6,B2)", "x":3, "y":0},
+ {"label":"K04 (E6,B4)", "x":4, "y":0},
+ {"label":"K10 (F0,F5)", "x":0, "y":1},
+ {"label":"K11 (F0,C7)", "x":1, "y":1},
+ {"label":"K12 (F0,B7)", "x":2, "y":1},
+ {"label":"K13 (F0,B2)", "x":3, "y":1},
+ {"label":"K14 (F0,B4)", "x":4, "y":1},
+ {"label":"K20 (D6,F5)", "x":0, "y":2},
+ {"label":"K21 (D6,C7)", "x":1, "y":2},
+ {"label":"K22 (D6,B7)", "x":2, "y":2},
+ {"label":"K23 (D6,B2)", "x":3, "y":2},
+ {"label":"K24 (D6,B4)", "x":4, "y":2},
+ {"label":"K30 (D2,F5)", "x":0, "y":3},
+ {"label":"K31 (D2,C7)", "x":1, "y":3},
+ {"label":"K32 (D2,B7)", "x":2, "y":3},
+ {"label":"K33 (D2,B2)", "x":3, "y":3},
+ {"label":"K34 (D2,B4)", "x":4, "y":3},
+ {"label":"K40 (B6,F5)", "x":0, "y":4},
+ {"label":"K41 (B6,C7)", "x":1, "y":4},
+ {"label":"K42 (B6,B7)", "x":2, "y":4},
+ {"label":"K43 (B6,B2)", "x":3, "y":4},
+ {"label":"K44 (B6,B4)", "x":4, "y":4}
+ ]
+ }
+ }
+}
diff --git a/keyboards/winry/winry25tc/keymaps/default/keymap.c b/keyboards/winry/winry25tc/keymaps/default/keymap.c
new file mode 100644
index 0000000000..ec1d0f42ed
--- /dev/null
+++ b/keyboards/winry/winry25tc/keymaps/default/keymap.c
@@ -0,0 +1,39 @@
+/* Copyright 2021 Andrzej Ressel (andrzej.ressel@gmail.com)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include QMK_KEYBOARD_H
+
+enum my_layers {
+ _FIRST_LAYER,
+ _SECOND_LAYER
+};
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [_FIRST_LAYER] = LAYOUT(
+ KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, KC_ESC,
+ KC_P7, KC_P8, KC_P9, KC_PPLS, RGB_TOG,
+ KC_P4, KC_P5, KC_P6, KC_PENT, RGB_MOD,
+ KC_P1, KC_P2, KC_P3, KC_UP, MO(_SECOND_LAYER),
+ KC_P0, KC_PDOT, KC_LEFT, KC_DOWN, KC_RGHT
+ ),
+ [_SECOND_LAYER] = LAYOUT(
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
+ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
+ KC_F11, KC_F12, KC_MUTE, KC_VOLD, KC_VOLU,
+ KC_MPLY, KC_MSTP, KC_MPRV, KC_MNXT, _______,
+ KC_RSFT, KC_RALT, KC_RGUI, KC_APP, KC_RCTL
+ ),
+};
diff --git a/keyboards/winry/winry25tc/readme.md b/keyboards/winry/winry25tc/readme.md
new file mode 100644
index 0000000000..9507aef74b
--- /dev/null
+++ b/keyboards/winry/winry25tc/readme.md
@@ -0,0 +1,19 @@
+# Winry 25-key RGB Backlight Hot Swap Mechanical Keyboard
+
+Keyboard from
+* [SpiderIsland on AliExpress(reseller)](https://a.aliexpress.com/_dVJsSpR). Seller provides [kbfirmware](https://kbfirmware.com/) JSON config that was converted to QMK.
+
+
+
+* Keyboard Maintainer: [andrzejressel](https://github.com/andrzejressel)
+* Hardware Availability:
+https://aliexpress.com/item/1005001523579896.html
+https://item.taobao.com/item.htm?id=599731303104
+
+Make example for this keyboard (after setting up your build environment):
+
+ make winry/winry25tc:default
+
+**Reset Key**: Located on the other side of the keyboard.
+
+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).
diff --git a/keyboards/winry/winry25tc/rules.mk b/keyboards/winry/winry25tc/rules.mk
new file mode 100644
index 0000000000..b0352b513c
--- /dev/null
+++ b/keyboards/winry/winry25tc/rules.mk
@@ -0,0 +1,19 @@
+# MCU name
+MCU = atmega32u4
+
+# Bootloader selection
+BOOTLOADER = atmel-dfu
+
+# Build Options
+# change yes to no to disable
+#
+BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
+MOUSEKEY_ENABLE = no # Mouse keys
+EXTRAKEY_ENABLE = yes # Audio control and System control
+CONSOLE_ENABLE = no # Console for debug
+COMMAND_ENABLE = no # Commands for debug and configuration
+NKRO_ENABLE = no # Enable N-Key Rollover
+BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
+RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
+
+KEY_LOCK_ENABLE = yes # Enable KC_LOCK support
diff --git a/keyboards/winry/winry25tc/winry25tc.c b/keyboards/winry/winry25tc/winry25tc.c
new file mode 100644
index 0000000000..938dadaf8f
--- /dev/null
+++ b/keyboards/winry/winry25tc/winry25tc.c
@@ -0,0 +1,17 @@
+/* Copyright 2021 Andrzej Ressel (andrzej.ressel@gmail.com)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "winry25tc.h"
diff --git a/keyboards/winry/winry25tc/winry25tc.h b/keyboards/winry/winry25tc/winry25tc.h
new file mode 100644
index 0000000000..5498dd8d6b
--- /dev/null
+++ b/keyboards/winry/winry25tc/winry25tc.h
@@ -0,0 +1,33 @@
+/* Copyright 2021 Andrzej Ressel (andrzej.ressel@gmail.com)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "quantum.h"
+
+#define LAYOUT( \
+ K00, K01, K02, K03, K04, \
+ K10, K11, K12, K13, K14, \
+ K20, K21, K22, K23, K24, \
+ K30, K31, K32, K33, K34, \
+ K40, K41, K42, K43, K44 \
+) { \
+ { K00, K01, K02, K03, K04 }, \
+ { K10, K11, K12, K13, K14 }, \
+ { K20, K21, K22, K23, K24 }, \
+ { K30, K31, K32, K33, K34 }, \
+ { K40, K41, K42, K43, K44 }, \
+}