summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBahrul Hidayat <dayat.py@gmail.com>2022-07-30 12:07:10 +0800
committerGitHub <noreply@github.com>2022-07-29 21:07:10 -0700
commitda07e7dd0e173ed83cb82f84f143de36ed1aeae3 (patch)
tree831c7e8d39b2368b185d2fe5b39b9d439fb02c20
parentc0e3a1612116cb236f07ab7e57f3529b6987b941 (diff)
[Keyboard] add dyz60-hs (#17763)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Joel Challis <git@zvecr.com>
-rw-r--r--keyboards/dyz/dyz60_hs/config.h30
-rw-r--r--keyboards/dyz/dyz60_hs/dyz60_hs.c16
-rw-r--r--keyboards/dyz/dyz60_hs/dyz60_hs.h33
-rw-r--r--keyboards/dyz/dyz60_hs/info.json104
-rw-r--r--keyboards/dyz/dyz60_hs/keymaps/default/keymap.c46
-rw-r--r--keyboards/dyz/dyz60_hs/keymaps/via/keymap.c46
-rw-r--r--keyboards/dyz/dyz60_hs/keymaps/via/rules.mk1
-rw-r--r--keyboards/dyz/dyz60_hs/readme.md29
-rw-r--r--keyboards/dyz/dyz60_hs/rules.mk19
9 files changed, 324 insertions, 0 deletions
diff --git a/keyboards/dyz/dyz60_hs/config.h b/keyboards/dyz/dyz60_hs/config.h
new file mode 100644
index 0000000000..3f67156638
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/config.h
@@ -0,0 +1,30 @@
1/*
2Copyright 2021 dayatz
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
23#define DEBOUNCE 5
24
25/* Bootmagic Lite key configuration */
26#define BOOTMAGIC_LITE_ROW 0
27#define BOOTMAGIC_LITE_COLUMN 0
28
29#define TAP_CODE_DELAY 10 // Need this delay for some keys like VOLD/VOLU to work
30#define DYNAMIC_KEYMAP_LAYER_COUNT 3
diff --git a/keyboards/dyz/dyz60_hs/dyz60_hs.c b/keyboards/dyz/dyz60_hs/dyz60_hs.c
new file mode 100644
index 0000000000..c6ec0f20d8
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/dyz60_hs.c
@@ -0,0 +1,16 @@
1/* Copyright 2021 dayatz
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "dyz60_hs.h"
diff --git a/keyboards/dyz/dyz60_hs/dyz60_hs.h b/keyboards/dyz/dyz60_hs/dyz60_hs.h
new file mode 100644
index 0000000000..ea416ef389
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/dyz60_hs.h
@@ -0,0 +1,33 @@
1/* Copyright 2021 dayatz
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "quantum.h"
19#define _X_ KC_NO
20
21#define LAYOUT_all( \
22 K00, K01, K02, K03, K04, K05, K45, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
23 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
24 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \
25 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
26 K40, K41, K42, K46, K4A, K4B, K4C, K4D \
27) { \
28 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \
29 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D }, \
30 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \
31 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D }, \
32 { K40, K41, K42, _X_, _X_, K45, K46, _X_, _X_, _X_, K4A, K4B, K4C, K4D } \
33}
diff --git a/keyboards/dyz/dyz60_hs/info.json b/keyboards/dyz/dyz60_hs/info.json
new file mode 100644
index 0000000000..214d6b9ded
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/info.json
@@ -0,0 +1,104 @@
1{
2 "keyboard_name": "dyz60-hs",
3 "manufacturer": "dyz",
4 "url": "https://github.com/dayatz/mechanical-keyboards/tree/master/dyz60_hs",
5 "maintainer": "dayatz",
6 "diode_direction": "COL2ROW",
7 "matrix_pins": {
8 "cols": ["F4", "F5", "B3", "B2", "B1", "B5", "B4", "D7", "D6", "D4", "D5", "D3", "D2", "D1" ],
9 "rows": ["E6", "B0", "F0", "F6", "F7"]
10 },
11 "rgblight": {
12 "led_count": 16,
13 "pin": "B7",
14 "hue_steps": 10,
15 "saturation_steps": 10,
16 "brightness_steps": 10,
17 "animations": {
18 "all": true
19 }
20 },
21 "indicators": {
22 "caps_lock": "F1"
23 },
24 "usb": {
25 "vid": "0xD772",
26 "pid": "0x001A",
27 "device_ver": "0x0001"
28 },
29 "layouts": {
30 "LAYOUT_all": {
31 "layout": [
32 {"label":"Esc", "x":0, "y":0},
33 {"label":"1!", "x":1, "y":0},
34 {"label":"2@", "x":2, "y":0},
35 {"label":"3#", "x":3, "y":0},
36 {"label":"4$", "x":4, "y":0},
37 {"label":"5%", "x":5, "y":0},
38 {"label":"6^", "x":6, "y":0},
39 {"label":"7&", "x":7, "y":0},
40 {"label":"8*", "x":8, "y":0},
41 {"label":"9(", "x":9, "y":0},
42 {"label":"0)", "x":10, "y":0},
43 {"label":"-_", "x":11, "y":0},
44 {"label":"=+", "x":12, "y":0},
45 {"label":"`~", "x":13, "y":0},
46 {"label":"\\|", "x":14, "y":0},
47
48 {"label":"Tab", "x":0, "y":1, "w":1.5},
49 {"label":"Q", "x":1.5, "y":1},
50 {"label":"W", "x":2.5, "y":1},
51 {"label":"E", "x":3.5, "y":1},
52 {"label":"R", "x":4.5, "y":1},
53 {"label":"T", "x":5.5, "y":1},
54 {"label":"Y", "x":6.5, "y":1},
55 {"label":"U", "x":7.5, "y":1},
56 {"label":"I", "x":8.5, "y":1},
57 {"label":"O", "x":9.5, "y":1},
58 {"label":"P", "x":10.5, "y":1},
59 {"label":"[{", "x":11.5, "y":1},
60 {"label":"]}", "x":12.5, "y":1},
61 {"label":"\\|", "x":13.5, "y":1, "w":1.5},
62
63 {"label":"Caps Lock", "x":0, "y":2, "w":1.75},
64 {"label":"A", "x":1.75, "y":2},
65 {"label":"S", "x":2.75, "y":2},
66 {"label":"D", "x":3.75, "y":2},
67 {"label":"F", "x":4.75, "y":2},
68 {"label":"G", "x":5.75, "y":2},
69 {"label":"H", "x":6.75, "y":2},
70 {"label":"J", "x":7.75, "y":2},
71 {"label":"K", "x":8.75, "y":2},
72 {"label":"L", "x":9.75, "y":2},
73 {"label":";:", "x":10.75, "y":2},
74 {"label":"'\"", "x":11.75, "y":2},
75 {"label":"#~", "x":12.75, "y":2},
76 {"label":"Enter", "x":13.75, "y":2, "w":1.25},
77
78 {"label":"Shift", "x":0, "y":3, "w":1.25},
79 {"label":"\\|", "x":1.25, "y":3},
80 {"label":"Z", "x":2.25, "y":3},
81 {"label":"X", "x":3.25, "y":3},
82 {"label":"C", "x":4.25, "y":3},
83 {"label":"V", "x":5.25, "y":3},
84 {"label":"B", "x":6.25, "y":3},
85 {"label":"N", "x":7.25, "y":3},
86 {"label":"M", "x":8.25, "y":3},
87 {"label":",<", "x":9.25, "y":3},
88 {"label":".>", "x":10.25, "y":3},
89 {"label":"/?", "x":11.25, "y":3},
90 {"label":"Shift", "x":12.25, "y":3, "w":1.75},
91 {"label":"Fn", "x":14, "y":3},
92
93 {"label":"Ctrl", "x":0, "y":4, "w":1.25},
94 {"label":"Win", "x":1.25, "y":4, "w":1.25},
95 {"label":"Alt", "x":2.5, "y":4, "w":1.25},
96 {"label":"Space", "x":3.75, "y":4, "w":6.25},
97 {"label":"Alt", "x":10, "y":4, "w":1.25},
98 {"label":"Win", "x":11.25, "y":4, "w":1.25},
99 {"label":"Menu", "x":12.5, "y":4, "w":1.25},
100 {"label":"Ctrl", "x":13.75, "y":4, "w":1.25}
101 ]
102 }
103 }
104}
diff --git a/keyboards/dyz/dyz60_hs/keymaps/default/keymap.c b/keyboards/dyz/dyz60_hs/keymaps/default/keymap.c
new file mode 100644
index 0000000000..5e858f21aa
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/keymaps/default/keymap.c
@@ -0,0 +1,46 @@
1/* Copyright 2021 dayatz
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18enum layer_names {
19 _BASE,
20 _FN,
21 _FN2
22};
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 [_BASE] = LAYOUT_all( /* Base */
26 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_GRV,
27 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
28 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_ENT,
29 KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN),
30 KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, KC_RWIN, KC_MENU, KC_RCTL
31 ),
32 [_FN] = LAYOUT_all(
33 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
34 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_UP, KC_END, _______,
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RGHT, _______, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______
38 ),
39 [_FN2] = LAYOUT_all(
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______
45 )
46};
diff --git a/keyboards/dyz/dyz60_hs/keymaps/via/keymap.c b/keyboards/dyz/dyz60_hs/keymaps/via/keymap.c
new file mode 100644
index 0000000000..5e858f21aa
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/keymaps/via/keymap.c
@@ -0,0 +1,46 @@
1/* Copyright 2021 dayatz
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18enum layer_names {
19 _BASE,
20 _FN,
21 _FN2
22};
23
24const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 [_BASE] = LAYOUT_all( /* Base */
26 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_GRV,
27 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
28 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_ENT,
29 KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN),
30 KC_LCTL, KC_LWIN, KC_LALT, KC_SPC, KC_RALT, KC_RWIN, KC_MENU, KC_RCTL
31 ),
32 [_FN] = LAYOUT_all(
33 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______,
34 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_UP, KC_END, _______,
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RGHT, _______, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______
38 ),
39 [_FN2] = LAYOUT_all(
40 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
41 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______
45 )
46};
diff --git a/keyboards/dyz/dyz60_hs/keymaps/via/rules.mk b/keyboards/dyz/dyz60_hs/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/dyz/dyz60_hs/readme.md b/keyboards/dyz/dyz60_hs/readme.md
new file mode 100644
index 0000000000..bf94db30da
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/readme.md
@@ -0,0 +1,29 @@
1# dyz60
2
3![dyz60 pcb](https://i.imgur.com/l9z5KuJh.jpg)
4
560% layout has flexcut with multiple layout and mounting support.
6
7* Keyboard Maintainer: [dayatz](https://github.com/dayatz)
8* Hardware Supported: dyz60, ATmega32U4
9* Hardware Availability: Local Indonesia GB.
10
11#### Enter Bootloader
12
13Enter the bootloader in 3 ways:
14
15* **Bootmagic reset**: Hold down the Esc key and plug in the keyboard
16* **Physical reset pins**: Briefly short the reset pins on the bottom of Space key
17
18
19#### Flashing
20
21Make example for this keyboard (after setting up your build environment):
22
23 make dyz/dyz60:default
24
25Flashing example for this keyboard:
26
27 make dyz/dyz60:default:flash
28
29See 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/dyz/dyz60_hs/rules.mk b/keyboards/dyz/dyz60_hs/rules.mk
new file mode 100644
index 0000000000..dfe72bbfb7
--- /dev/null
+++ b/keyboards/dyz/dyz60_hs/rules.mk
@@ -0,0 +1,19 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
11MOUSEKEY_ENABLE = no # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19ENCODER_ENABLE = no