diff options
author | QMK Bot <hello@qmk.fm> | 2021-08-14 14:59:20 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-08-14 14:59:20 +0000 |
commit | a6d77fdf27de0cbe67228961a4051a4a422eb956 (patch) | |
tree | be2192ab0efebecb19081efc48f2dfbc5cb9fee2 | |
parent | 0bb9a5c128bd98c297cb4b6158e4986d9fef00b5 (diff) | |
parent | 1e4f0d9dcf7fdcfce701e0b31dc3a9dfbda01fbf (diff) | |
download | qmk_firmware-a6d77fdf27de0cbe67228961a4051a4a422eb956.tar.gz qmk_firmware-a6d77fdf27de0cbe67228961a4051a4a422eb956.zip |
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r-- | keyboards/ocean/stealth/config.h | 51 | ||||
-rw-r--r-- | keyboards/ocean/stealth/info.json | 12 | ||||
-rw-r--r-- | keyboards/ocean/stealth/keymaps/default/keymap.c | 33 | ||||
-rw-r--r-- | keyboards/ocean/stealth/keymaps/via/keymap.c | 33 | ||||
-rw-r--r-- | keyboards/ocean/stealth/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/ocean/stealth/readme.md | 23 | ||||
-rw-r--r-- | keyboards/ocean/stealth/rules.mk | 22 | ||||
-rw-r--r-- | keyboards/ocean/stealth/stealth.c | 15 | ||||
-rw-r--r-- | keyboards/ocean/stealth/stealth.h | 25 |
9 files changed, 216 insertions, 0 deletions
diff --git a/keyboards/ocean/stealth/config.h b/keyboards/ocean/stealth/config.h new file mode 100644 index 000000000..ab1860332 --- /dev/null +++ b/keyboards/ocean/stealth/config.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /*Copyright 2021 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 0x0010 | ||
23 | #define DEVICE_VER 0x0001 | ||
24 | #define MANUFACTURER Ocean | ||
25 | #define PRODUCT Stealth | ||
26 | |||
27 | /* key matrix size */ | ||
28 | #define MATRIX_ROWS 1 | ||
29 | #define MATRIX_COLS 3 | ||
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 { D1 } | ||
43 | #define MATRIX_COL_PINS { D0, D4, C6 } | ||
44 | #define UNUSED_PINS | ||
45 | |||
46 | /* COL2ROW, ROW2COL*/ | ||
47 | #define DIODE_DIRECTION ROW2COL | ||
48 | |||
49 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
50 | #define DEBOUNCE 5 | ||
51 | |||
diff --git a/keyboards/ocean/stealth/info.json b/keyboards/ocean/stealth/info.json new file mode 100644 index 000000000..f84d96219 --- /dev/null +++ b/keyboards/ocean/stealth/info.json | |||
@@ -0,0 +1,12 @@ | |||
1 | { | ||
2 | "keyboard_name": "Stealth", | ||
3 | "url": "", | ||
4 | "maintainer": "Ocean", | ||
5 | "width": 2.25, | ||
6 | "height": 2, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "layout": [{"x":0, "y":0, "w":2.25}, {"x":0, "y":1, "w":1.25}, {"x":1.25, "y":1}] | ||
10 | } | ||
11 | } | ||
12 | } \ No newline at end of file | ||
diff --git a/keyboards/ocean/stealth/keymaps/default/keymap.c b/keyboards/ocean/stealth/keymaps/default/keymap.c new file mode 100644 index 000000000..81f4332c2 --- /dev/null +++ b/keyboards/ocean/stealth/keymaps/default/keymap.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /* Copyright 2021 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_LSFT, KC_LCTL, KC_N | ||
20 | ), | ||
21 | |||
22 | [1] = LAYOUT( | ||
23 | KC_TRNS, KC_TRNS, KC_TRNS | ||
24 | ), | ||
25 | |||
26 | [2] = LAYOUT( | ||
27 | KC_TRNS, KC_TRNS, KC_TRNS | ||
28 | ), | ||
29 | |||
30 | [3] = LAYOUT( | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS | ||
32 | ) | ||
33 | }; | ||
diff --git a/keyboards/ocean/stealth/keymaps/via/keymap.c b/keyboards/ocean/stealth/keymaps/via/keymap.c new file mode 100644 index 000000000..81f4332c2 --- /dev/null +++ b/keyboards/ocean/stealth/keymaps/via/keymap.c | |||
@@ -0,0 +1,33 @@ | |||
1 | /* Copyright 2021 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_LSFT, KC_LCTL, KC_N | ||
20 | ), | ||
21 | |||
22 | [1] = LAYOUT( | ||
23 | KC_TRNS, KC_TRNS, KC_TRNS | ||
24 | ), | ||
25 | |||
26 | [2] = LAYOUT( | ||
27 | KC_TRNS, KC_TRNS, KC_TRNS | ||
28 | ), | ||
29 | |||
30 | [3] = LAYOUT( | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS | ||
32 | ) | ||
33 | }; | ||
diff --git a/keyboards/ocean/stealth/keymaps/via/rules.mk b/keyboards/ocean/stealth/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/ocean/stealth/keymaps/via/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/ocean/stealth/readme.md b/keyboards/ocean/stealth/readme.md new file mode 100644 index 000000000..1f4993411 --- /dev/null +++ b/keyboards/ocean/stealth/readme.md | |||
@@ -0,0 +1,23 @@ | |||
1 | # Stealth Macropad | ||
2 | |||
3 |  | ||
4 | |||
5 | ssSHhh... | ||
6 | |||
7 | * Keyboard Maintainer: Ocean | ||
8 | * Hardware Supported: Stealth Macropad, Pro Micro | ||
9 | * Hardware Availability: [Local Marketplace](https://tokopedia.com/) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make ocean/stealth:default | ||
14 | |||
15 | Flashing example for this keyboard: | ||
16 | |||
17 | make ocean/stealth:default:flash | ||
18 | |||
19 | ## Bootloader | ||
20 | |||
21 | To Enter the bootloader you can double click reset button on board when you flash the firmware | ||
22 | |||
23 | 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/stealth/rules.mk b/keyboards/ocean/stealth/rules.mk new file mode 100644 index 000000000..13ee210cb --- /dev/null +++ b/keyboards/ocean/stealth/rules.mk | |||
@@ -0,0 +1,22 @@ | |||
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 = lite # Virtual DIP switch configuration | ||
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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output \ No newline at end of file | ||
diff --git a/keyboards/ocean/stealth/stealth.c b/keyboards/ocean/stealth/stealth.c new file mode 100644 index 000000000..656701cfd --- /dev/null +++ b/keyboards/ocean/stealth/stealth.c | |||
@@ -0,0 +1,15 @@ | |||
1 | /* Copyright 2021 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 "stealth.h" | ||
diff --git a/keyboards/ocean/stealth/stealth.h b/keyboards/ocean/stealth/stealth.h new file mode 100644 index 000000000..b86cd2f05 --- /dev/null +++ b/keyboards/ocean/stealth/stealth.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* Copyright 2021 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 \ | ||
22 | ) \ | ||
23 | { \ | ||
24 | { K00, K01, K02 }, \ | ||
25 | } | ||