diff options
-rw-r--r-- | keyboards/ocean/yuri/config.h | 50 | ||||
-rw-r--r-- | keyboards/ocean/yuri/info.json | 59 | ||||
-rw-r--r-- | keyboards/ocean/yuri/keymaps/default/keymap.c | 45 | ||||
-rw-r--r-- | keyboards/ocean/yuri/keymaps/via/keymap.c | 45 | ||||
-rw-r--r-- | keyboards/ocean/yuri/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/ocean/yuri/readme.md | 24 | ||||
-rw-r--r-- | keyboards/ocean/yuri/rules.mk | 18 | ||||
-rw-r--r-- | keyboards/ocean/yuri/yuri.c | 15 | ||||
-rw-r--r-- | keyboards/ocean/yuri/yuri.h | 31 |
9 files changed, 289 insertions, 0 deletions
diff --git a/keyboards/ocean/yuri/config.h b/keyboards/ocean/yuri/config.h new file mode 100644 index 000000000..d8313fd71 --- /dev/null +++ b/keyboards/ocean/yuri/config.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /*Copyright 2022 Ocean | ||
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 | |||
17 | #pragma once | ||
18 | |||
19 | #include "config_common.h" | ||
20 | |||
21 | #define VENDOR_ID 0x9624 | ||
22 | #define PRODUCT_ID 0x0003 | ||
23 | #define DEVICE_VER 0x0001 | ||
24 | #define MANUFACTURER Ocean | ||
25 | #define PRODUCT Yuri | ||
26 | |||
27 | /* key matrix size */ | ||
28 | #define MATRIX_ROWS 4 | ||
29 | #define MATRIX_COLS 14 | ||
30 | |||
31 | /* | ||
32 | * Keyboard Matrix Assignments | ||
33 | * | ||
34 | * Change this to how you wired your keyboard | ||
35 | * COLS: AVR pins used for columns, left to right | ||
36 | * ROWS: AVR pins used for rows, top to bottom | ||
37 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
38 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
39 | * | ||
40 | */ | ||
41 | /* 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14*/ | ||
42 | #define MATRIX_ROW_PINS {F4, F5, F6, F7} | ||
43 | #define MATRIX_COL_PINS {D3, D2, D1, D0, D4, C6, D7, E6, B4, B5, B6, B2, B3, B1} | ||
44 | |||
45 | /* COL2ROW, ROW2COL*/ | ||
46 | #define DIODE_DIRECTION ROW2COL | ||
47 | |||
48 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
49 | #define DEBOUNCE 5 | ||
50 | |||
diff --git a/keyboards/ocean/yuri/info.json b/keyboards/ocean/yuri/info.json new file mode 100644 index 000000000..68d966857 --- /dev/null +++ b/keyboards/ocean/yuri/info.json | |||
@@ -0,0 +1,59 @@ | |||
1 | { | ||
2 | "keyboard_name": "Yuri", | ||
3 | "url": "tokopedia.com/strat0s", | ||
4 | "maintainer": "Ocean", | ||
5 | "layouts": { | ||
6 | "LAYOUT": { | ||
7 | "layout": [{"x":0, "y":0}, | ||
8 | {"x":1.25, "y":0}, | ||
9 | {"x":2.25, "y":0}, | ||
10 | {"x":3.25, "y":0}, | ||
11 | {"x":4.25, "y":0}, | ||
12 | {"x":5.25, "y":0}, | ||
13 | {"x":6.25, "y":0}, | ||
14 | {"x":9.25, "y":0}, | ||
15 | {"x":10.25, "y":0}, | ||
16 | {"x":11.25, "y":0}, | ||
17 | {"x":12.25, "y":0}, | ||
18 | {"x":13.25, "y":0}, | ||
19 | {"x":14.25, "y":0}, | ||
20 | {"x":15.25, "y":0}, | ||
21 | {"x":0, "y":1}, | ||
22 | {"x":1.25, "y":1, "w":1.25}, | ||
23 | {"x":2.5, "y":1}, | ||
24 | {"x":3.5, "y":1}, | ||
25 | {"x":4.5, "y":1}, | ||
26 | {"x":5.5, "y":1}, | ||
27 | {"x":6.5, "y":1}, | ||
28 | {"x":9.5, "y":1}, | ||
29 | {"x":10.5, "y":1}, | ||
30 | {"x":11.5, "y":1}, | ||
31 | {"x":12.5, "y":1}, | ||
32 | {"x":13.5, "y":1}, | ||
33 | {"x":14.5, "y":1, "w":1.75}, | ||
34 | {"x":0, "y":2}, | ||
35 | {"x":1.25, "y":2, "w":1.75}, | ||
36 | {"x":3, "y":2}, | ||
37 | {"x":4, "y":2}, | ||
38 | {"x":5, "y":2}, | ||
39 | {"x":6, "y":2}, | ||
40 | {"x":7, "y":2}, | ||
41 | {"x":9, "y":2}, | ||
42 | {"x":10, "y":2}, | ||
43 | {"x":11, "y":2}, | ||
44 | {"x":12, "y":2}, | ||
45 | {"x":13, "y":2}, | ||
46 | {"x":14, "y":2}, | ||
47 | {"x":15, "y":2, "w":1.25}, | ||
48 | {"x":1.25, "y":3, "w":1.5}, | ||
49 | {"x":2.75, "y":3, "w":1.25}, | ||
50 | {"x":4, "y":3, "w":1.5}, | ||
51 | {"x":5.5, "y":3, "w":2.25}, | ||
52 | {"x":9.5, "y":3, "w":2.75}, | ||
53 | {"x":12.25, "y":3, "w":1.25}, | ||
54 | {"x":13.5, "y":3, "w":1.25}, | ||
55 | {"x":14.75, "y":3, "w":1.5} | ||
56 | ] | ||
57 | } | ||
58 | } | ||
59 | } | ||
diff --git a/keyboards/ocean/yuri/keymaps/default/keymap.c b/keyboards/ocean/yuri/keymaps/default/keymap.c new file mode 100644 index 000000000..24c2830d1 --- /dev/null +++ b/keyboards/ocean/yuri/keymaps/default/keymap.c | |||
@@ -0,0 +1,45 @@ | |||
1 | /* Copyright 2022 Ocean | ||
2 | * This program is free software: you can redistribute it and/or modify | ||
3 | * it under the terms of the GNU General Public License as published by | ||
4 | * the Free Software Foundation, either version 2 of the License, or | ||
5 | * (at your option) any later version. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | * | ||
12 | * You should have received a copy of the GNU General Public License | ||
13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
14 | */ | ||
15 | #include QMK_KEYBOARD_H | ||
16 | |||
17 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
18 | [0] = LAYOUT( | ||
19 | KC_PSCR, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, KC_BSPC, | ||
20 | KC_PGUP, KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
21 | KC_PGDN, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_RSFT, | ||
22 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_RCTRL | ||
23 | ), | ||
24 | |||
25 | [1] = LAYOUT( | ||
26 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
27 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
30 | ), | ||
31 | |||
32 | [2] = LAYOUT( | ||
33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
37 | ), | ||
38 | |||
39 | [3] = LAYOUT( | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
44 | ), | ||
45 | }; | ||
diff --git a/keyboards/ocean/yuri/keymaps/via/keymap.c b/keyboards/ocean/yuri/keymaps/via/keymap.c new file mode 100644 index 000000000..24c2830d1 --- /dev/null +++ b/keyboards/ocean/yuri/keymaps/via/keymap.c | |||
@@ -0,0 +1,45 @@ | |||
1 | /* Copyright 2022 Ocean | ||
2 | * This program is free software: you can redistribute it and/or modify | ||
3 | * it under the terms of the GNU General Public License as published by | ||
4 | * the Free Software Foundation, either version 2 of the License, or | ||
5 | * (at your option) any later version. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | * | ||
12 | * You should have received a copy of the GNU General Public License | ||
13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
14 | */ | ||
15 | #include QMK_KEYBOARD_H | ||
16 | |||
17 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
18 | [0] = LAYOUT( | ||
19 | KC_PSCR, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, KC_BSPC, | ||
20 | KC_PGUP, KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
21 | KC_PGDN, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_RSFT, | ||
22 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_RCTRL | ||
23 | ), | ||
24 | |||
25 | [1] = LAYOUT( | ||
26 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
27 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
28 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
30 | ), | ||
31 | |||
32 | [2] = LAYOUT( | ||
33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
34 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
35 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
37 | ), | ||
38 | |||
39 | [3] = LAYOUT( | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
42 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
44 | ), | ||
45 | }; | ||
diff --git a/keyboards/ocean/yuri/keymaps/via/rules.mk b/keyboards/ocean/yuri/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/ocean/yuri/keymaps/via/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/ocean/yuri/readme.md b/keyboards/ocean/yuri/readme.md new file mode 100644 index 000000000..a2db8a3d2 --- /dev/null +++ b/keyboards/ocean/yuri/readme.md | |||
@@ -0,0 +1,24 @@ | |||
1 | # Yuri | ||
2 | |||
3 |  | ||
4 | |||
5 | |||
6 | 40 percent alice | ||
7 | |||
8 | * Keyboard Maintainer: Ocean | ||
9 | * Hardware Supported: Yuri, Pro Micro | ||
10 | * Hardware Availability: [Local Marketplace](https://tokopedia.com/strat0s/) | ||
11 | |||
12 | Make example for this keyboard (after setting up your build environment): | ||
13 | |||
14 | make ocean/yuri:default | ||
15 | |||
16 | Flashing example for this keyboard: | ||
17 | |||
18 | make ocean/yuri:default:flash | ||
19 | |||
20 | ## Bootloader | ||
21 | |||
22 | To Enter the bootloader you can double click reset button on board when you flash the firmware | ||
23 | |||
24 | 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/ocean/yuri/rules.mk b/keyboards/ocean/yuri/rules.mk new file mode 100644 index 000000000..7c7061668 --- /dev/null +++ b/keyboards/ocean/yuri/rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = caterina | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/ocean/yuri/yuri.c b/keyboards/ocean/yuri/yuri.c new file mode 100644 index 000000000..f02e35dce --- /dev/null +++ b/keyboards/ocean/yuri/yuri.c | |||
@@ -0,0 +1,15 @@ | |||
1 | /* Copyright 2022 Ocean | ||
2 | * This program is free software: you can redistribute it and/or modify | ||
3 | * it under the terms of the GNU General Public License as published by | ||
4 | * the Free Software Foundation, either version 2 of the License, or | ||
5 | * (at your option) any later version. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | * | ||
12 | * You should have received a copy of the GNU General Public License | ||
13 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
14 | */ | ||
15 | #include "yuri.h" | ||
diff --git a/keyboards/ocean/yuri/yuri.h b/keyboards/ocean/yuri/yuri.h new file mode 100644 index 000000000..3f8c2b17d --- /dev/null +++ b/keyboards/ocean/yuri/yuri.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* Copyright 2022 Ocean | ||
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 | |||
20 | #define LAYOUT(\ | ||
21 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \ | ||
22 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, \ | ||
23 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, \ | ||
24 | K31, K32, K33, K35, K38, K3A, K3C, K3D \ | ||
25 | ) \ | ||
26 | { \ | ||
27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D }, \ | ||
28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C }, \ | ||
29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D }, \ | ||
30 | { K31, K32, K33, K35, K38, K3A, K3C, K3D }, \ | ||
31 | } | ||