aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Urbanek <echelon.div@gmail.com>2020-11-22 08:42:58 +0100
committerGitHub <noreply@github.com>2020-11-21 23:42:58 -0800
commita952bf2d31ec379ec5e5bbf9b1d1b2673ebbacad (patch)
tree0cbf5640f7a43a29ceb0e0bc2c42e6b3252b50c2
parent44d1b2e717db0387e7138cc24fc5cc15ba8c90f2 (diff)
downloadqmk_firmware-a952bf2d31ec379ec5e5bbf9b1d1b2673ebbacad.tar.gz
qmk_firmware-a952bf2d31ec379ec5e5bbf9b1d1b2673ebbacad.zip
[Keyboard] Added Vagrant-10 keyboard (#10048)
* Initial commit for Vagrant-10 * Initial commit for Vagrant-10 * customized layout * Fully working QMK config with default keymap * Update info.json * Update info.json * Update readme.md * prep * fixed pull request issues * Update keyboards/vagrant_10/keymaps/default/keymap.c * Update keyboards/vagrant_10/keymaps/default/keymap.c * Update keyboards/vagrant_10/vagrant_10.h * Update keyboards/vagrant_10/vagrant_10.h * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/rules.mk * Update keyboards/vagrant_10/readme.md * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/info.json * Update keyboards/vagrant_10/info.json * Update keyboards/vagrant_10/vagrant_10.h * Update keyboards/vagrant_10/keymaps/default/keymap.c * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/readme.md * Update keyboards/vagrant_10/config.h * License header * License header * License header * License header. * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/config.h * Update keyboards/vagrant_10/vagrant_10.h
-rwxr-xr-xkeyboards/vagrant_10/config.h55
-rw-r--r--keyboards/vagrant_10/info.json12
-rwxr-xr-xkeyboards/vagrant_10/keymaps/default/keymap.c59
-rw-r--r--keyboards/vagrant_10/readme.md19
-rwxr-xr-xkeyboards/vagrant_10/rules.mk22
-rwxr-xr-xkeyboards/vagrant_10/vagrant_10.c25
-rwxr-xr-xkeyboards/vagrant_10/vagrant_10.h39
7 files changed, 231 insertions, 0 deletions
diff --git a/keyboards/vagrant_10/config.h b/keyboards/vagrant_10/config.h
new file mode 100755
index 000000000..2771df789
--- /dev/null
+++ b/keyboards/vagrant_10/config.h
@@ -0,0 +1,55 @@
1
2/**
3MIT License
4
5Copyright (c) 2020 Shanduur & QMK Firmware
6
7Permission is hereby granted, free of charge, to any person obtaining a copy
8of this software and associated documentation files (the "Software"), to deal
9in the Software without restriction, including without limitation the rights
10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11copies of the Software, and to permit persons to whom the Software is
12furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in all
15copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23SOFTWARE.
24*/
25
26#pragma once
27#include "config_common.h"
28
29/* USB Device descriptor parameter */
30#define VENDOR_ID 0x534C
31#define PRODUCT_ID 0x5E99
32#define DEVICE_VER 0x0001
33#define MANUFACTURER Shanduur
34#define PRODUCT Vagrant 10
35
36/* key matrix size */
37#define MATRIX_ROWS 4
38#define MATRIX_COLS 3
39
40/* key matrix pins */
41#define MATRIX_ROW_PINS { F7, B1, B3, B2 }
42#define MATRIX_COL_PINS { F4, F6, F5 }
43#define UNUSED_PINS
44
45/* COL2ROW or ROW2COL */
46#define DIODE_DIRECTION COL2ROW
47
48/* Set 0 if debouncing isn't needed */
49#define DEBOUNCE 5
50
51/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
52#define LOCKING_SUPPORT_ENABLE
53
54/* Locking resynchronize hack */
55#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/vagrant_10/info.json b/keyboards/vagrant_10/info.json
new file mode 100644
index 000000000..badf84a7b
--- /dev/null
+++ b/keyboards/vagrant_10/info.json
@@ -0,0 +1,12 @@
1{
2 "keyboard_name": "Vagrant-10",
3 "url": "https://github.com/Sho-Keebs/Vagrant-10",
4 "maintainer": "Shanduur",
5 "width": 3,
6 "height": 4,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [{"x":1, "y":0, "w":2}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}]
10 }
11 }
12}
diff --git a/keyboards/vagrant_10/keymaps/default/keymap.c b/keyboards/vagrant_10/keymaps/default/keymap.c
new file mode 100755
index 000000000..4864ce6e7
--- /dev/null
+++ b/keyboards/vagrant_10/keymaps/default/keymap.c
@@ -0,0 +1,59 @@
1/**
2MIT License
3
4Copyright (c) 2020 Shanduur & QMK Firmware
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in all
14copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22SOFTWARE.
23*/
24
25#include QMK_KEYBOARD_H
26
27// Defines names for use in layer keycodes and the keymap
28enum layer_names {
29 HOME,
30 MODS,
31 MODS2,
32 OTHER
33};
34
35const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
36 [HOME] = LAYOUT(
37 KC_P0,
38 KC_P7, KC_P8, KC_P9,
39 KC_P4, KC_P5, KC_P6,
40 LT(1, KC_P1), LT(2, KC_P2), LT(3, KC_P3)),
41
42 [MODS] = LAYOUT(
43 KC_MUTE,
44 KC_MPLY, KC_NO, KC_VOLU,
45 KC_MPRV, KC_MNXT, KC_VOLD,
46 KC_TRNS, KC_NO, KC_NO),
47
48 [MODS2] = LAYOUT(
49 KC_F13,
50 KC_F14, KC_F15, KC_F16,
51 KC_F19, KC_F18, KC_F17,
52 KC_NO, KC_TRNS, KC_NO),
53
54 [OTHER] = LAYOUT(
55 RESET,
56 KC_NO, KC_NO, KC_NO,
57 KC_NO, KC_NO, KC_NO,
58 KC_NO, KC_NO, KC_TRNS),
59};
diff --git a/keyboards/vagrant_10/readme.md b/keyboards/vagrant_10/readme.md
new file mode 100644
index 000000000..5972dfec0
--- /dev/null
+++ b/keyboards/vagrant_10/readme.md
@@ -0,0 +1,19 @@
1# Vagrant 10
2
3![Vagrant 10](https://raw.githubusercontent.com/Sho-Keebs/Vagrant-10/master/doc/vag.jpg)
4
5This is (yet another) simple and small macropad.
6
7* Keyboard Maintainer: [Shanduur](https://github.com/Shanduur)
8* Hardware Supported: Vagrant-10 PCB, Arduino Pro Micro
9* Hardware Availability: Groupbuys, Pro Micro can be found on [Aliexpress](https://www.aliexpress.com/wholesale?SearchText=arduino+pro+micro)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make vagrant_10:default
14
15Flashing example for this keyboard:
16
17 make vagrant_10:default:flash
18
19See 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/vagrant_10/rules.mk b/keyboards/vagrant_10/rules.mk
new file mode 100755
index 000000000..e4ffb10d0
--- /dev/null
+++ b/keyboards/vagrant_10/rules.mk
@@ -0,0 +1,22 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = caterina
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
diff --git a/keyboards/vagrant_10/vagrant_10.c b/keyboards/vagrant_10/vagrant_10.c
new file mode 100755
index 000000000..6c577b92c
--- /dev/null
+++ b/keyboards/vagrant_10/vagrant_10.c
@@ -0,0 +1,25 @@
1/**
2MIT License
3
4Copyright (c) 2020 Shanduur & QMK Firmware
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in all
14copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22SOFTWARE.
23*/
24
25#include "vagrant_10.h"
diff --git a/keyboards/vagrant_10/vagrant_10.h b/keyboards/vagrant_10/vagrant_10.h
new file mode 100755
index 000000000..1cd4d1b77
--- /dev/null
+++ b/keyboards/vagrant_10/vagrant_10.h
@@ -0,0 +1,39 @@
1/**
2MIT License
3
4Copyright (c) 2020 Shanduur & QMK Firmware
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in all
14copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22SOFTWARE.
23*/
24
25#pragma once
26
27#include "quantum.h"
28
29#define LAYOUT( \
30 K002, \
31 K100, K101, K102, \
32 K200, K201, K202, \
33 K300, K301, K302 \
34) { \
35 { KC_NO, KC_NO, K002 }, \
36 { K100, K101, K102 }, \
37 { K200, K201, K202 }, \
38 { K300, K301, K302 } \
39}