Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] add ProjectCain Vault35; update Vault45 #13652

Merged
merged 55 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
a4501d5
adding my keymap
projectcain Jun 6, 2021
6259097
Update keyboards/projectcain/vault45/keymaps/default/config.h
projectcain Jun 7, 2021
9622bbd
Update keyboards/projectcain/vault45/keymaps/default/keymap.c
projectcain Jun 7, 2021
cfe4390
Update keyboards/projectcain/vault45/keymaps/default/keymap.c
projectcain Jun 7, 2021
750d609
Update keyboards/projectcain/vault45/vault45.c
projectcain Jun 7, 2021
0d4c666
Update keyboards/projectcain/vault45/keymaps/default/keymap.c
projectcain Jun 7, 2021
c666610
Update readme.md
projectcain Jun 7, 2021
5bd934d
Update keyboards/projectcain/vault45/keymaps/default/config.h
projectcain Jun 16, 2021
9f6835c
Update keymap.c
projectcain Jun 16, 2021
9bbaa81
Update keyboards/projectcain/vault45/keymaps/default/config.h
projectcain Jun 17, 2021
507d00a
Update keyboards/projectcain/vault45/readme.md
projectcain Jul 15, 2021
77ae0f8
Update info.json
projectcain Jul 15, 2021
69d9bd3
Update keyboards/projectcain/vault45/vault45.c
projectcain Jul 15, 2021
87b150d
Update keyboards/projectcain/vault45/readme.md
projectcain Jul 20, 2021
7fbdf14
Update keyboards/projectcain/vault45/readme.md
projectcain Jul 20, 2021
9534564
Update keyboards/projectcain/vault45/readme.md
projectcain Jul 20, 2021
682b667
Merge branch 'qmk:master' into master
projectcain Jul 20, 2021
2f666f6
Merge branch 'qmk:master' into master
projectcain Jul 23, 2021
f8a8959
Update info.json
projectcain Jul 23, 2021
8a0aca9
Update vault45.h
projectcain Jul 24, 2021
3b10ac0
Update keymap.c
projectcain Jul 24, 2021
b7c4b1e
Merge branch 'qmk:master' into master
projectcain Aug 4, 2021
d903d9b
Add files via upload
projectcain Aug 4, 2021
789ae2e
Update keyboards/projectcain/vault35/info.json
projectcain Aug 6, 2021
9310b22
Update keyboards/projectcain/vault35/readme.md
projectcain Aug 7, 2021
e6272a9
Update keyboards/projectcain/vault35/vault35.h
projectcain Sep 2, 2021
7ad9806
Update keyboards/projectcain/vault35/vault35.h
projectcain Sep 2, 2021
5e5381c
Update keyboards/projectcain/vault35/vault35.h
projectcain Sep 2, 2021
00ac7cf
Update keyboards/projectcain/vault35/vault35.h
projectcain Sep 2, 2021
4962f03
Update keyboards/projectcain/vault35/info.json
projectcain Sep 2, 2021
1b0ea48
Update keyboards/projectcain/vault45/info.json
projectcain Sep 2, 2021
528c612
Update keyboards/projectcain/vault45/info.json
projectcain Sep 2, 2021
73c24f7
Update keyboards/projectcain/vault45/keymaps/default/keymap.c
projectcain Sep 2, 2021
044f6be
Update keyboards/projectcain/vault45/keymaps/default/keymap.c
projectcain Sep 2, 2021
73f4f82
Update keyboards/projectcain/vault45/keymaps/default/keymap.c
projectcain Sep 2, 2021
d15a674
Update keyboards/projectcain/vault35/info.json
projectcain Oct 13, 2021
0c45bea
Update keyboards/projectcain/vault35/info.json
projectcain Oct 13, 2021
0da86f1
Update keyboards/projectcain/vault35/info.json
projectcain Oct 13, 2021
691f914
Update keyboards/projectcain/vault35/keymaps/default/keymap.c
projectcain Oct 13, 2021
e764e8b
Update keyboards/projectcain/vault35/keymaps/default/keymap.c
projectcain Oct 13, 2021
1633709
Update keyboards/projectcain/vault35/keymaps/default/keymap.c
projectcain Oct 13, 2021
f7430d4
Update keyboards/projectcain/vault45/info.json
projectcain Oct 13, 2021
8e22371
Update keyboards/projectcain/vault45/info.json
projectcain Oct 13, 2021
b0bee9b
Update keyboards/projectcain/vault45/info.json
projectcain Oct 13, 2021
d59ca37
Update keyboards/projectcain/vault45/info.json
projectcain Oct 13, 2021
b1f3fca
Update keyboards/projectcain/vault45/vault45.h
projectcain Oct 13, 2021
c1e3766
Update keyboards/projectcain/vault45/vault45.h
projectcain Oct 13, 2021
317f072
Update keyboards/projectcain/vault45/vault45.h
projectcain Oct 13, 2021
7633cca
Update keyboards/projectcain/vault45/vault45.h
projectcain Oct 13, 2021
d5018b4
Update keyboards/projectcain/vault45/info.json
projectcain Oct 14, 2021
08f1503
Update keyboards/projectcain/vault35/rules.mk
projectcain Oct 14, 2021
12cfc4e
Update keyboards/projectcain/vault35/info.json
projectcain Oct 14, 2021
3bfbba7
Update keyboards/projectcain/vault35/rules.mk
projectcain Oct 14, 2021
0c33e53
Merge branch 'master' into master
projectcain Oct 18, 2021
4c7cef7
Update keyboards/projectcain/vault45/info.json
projectcain Oct 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 149 additions & 0 deletions keyboards/projectcain/vault35/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
/*
Copyright 2021 projectcain
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 0x6060
#define DEVICE_VER 0x0001
#define MANUFACTURER projectcain
#define PRODUCT vault35

/* key matrix size */
#define MATRIX_ROWS 4
#define MATRIX_COLS 11

/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
#define MATRIX_ROW_PINS { B4, D4, B0, C7 }
#define MATRIX_COL_PINS { B1, D3, F0, F1, F4, F5, F6, F7, C6, B6, B5 }
#define UNUSED_PINS

/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW

/*
* Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
*/
#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6

//#define LED_NUM_LOCK_PIN B0
//#define LED_CAPS_LOCK_PIN B1
//#define LED_SCROLL_LOCK_PIN B2
//#define LED_COMPOSE_PIN B3
//#define LED_KANA_PIN B4

//#define BACKLIGHT_PIN B7
//#define BACKLIGHT_LEVELS 3
//#define BACKLIGHT_BREATHING

//#define RGB_DI_PIN E2
//#ifdef RGB_DI_PIN
//# define RGBLED_NUM 16
//# define RGBLIGHT_HUE_STEP 8
//# define RGBLIGHT_SAT_STEP 8
//# define RGBLIGHT_VAL_STEP 8
//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
/*== all animations enable ==*/
//# define RGBLIGHT_ANIMATIONS
/*== or choose animations ==*/
//# define RGBLIGHT_EFFECT_BREATHING
//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
//# define RGBLIGHT_EFFECT_SNAKE
//# define RGBLIGHT_EFFECT_KNIGHT
//# define RGBLIGHT_EFFECT_CHRISTMAS
//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
//# define RGBLIGHT_EFFECT_RGB_TEST
//# define RGBLIGHT_EFFECT_ALTERNATING
/*== customize breathing effect ==*/
/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
/*==== use exp() and sin() ====*/
//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
//#endif

/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

/* define if matrix has ghost (lacks anti-ghosting diodes) */
//#define MATRIX_HAS_GHOST

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
* This is useful for the Windows task manager shortcut (ctrl+shift+esc).
*/
//#define GRAVE_ESC_CTRL_OVERRIDE

/*
* Force NKRO
*
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
* makefile for this to work.)
*
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
* until the next keyboard reset.
*
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
* fully operational during normal computer usage.
*
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
* power-up.
*
*/
//#define FORCE_NKRO

/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

/* disable these deprecated features by default */
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION

/* Bootmagic Lite key configuration */
//#define BOOTMAGIC_LITE_ROW 0
//#define BOOTMAGIC_LITE_COLUMN 0
24 changes: 24 additions & 0 deletions keyboards/projectcain/vault35/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"keyboard_name": "Vault 35",
"url": "",
"maintainer": "projectcain",
"width": 11,
"height": 4,
projectcain marked this conversation as resolved.
Show resolved Hide resolved
"layouts": {
"LAYOUT_split1": {
projectcain marked this conversation as resolved.
Show resolved Hide resolved
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"Y", "x":5, "y":0}, {"label":"U", "x":6, "y":0}, {"label":"I", "x":7, "y":0}, {"label":"O", "x":8, "y":0}, {"label":"P", "x":9, "y":0}, {"label":"BACK<br>SPACE", "x":10, "y":0}, {"label":"TAB", "x":0, "y":1, "w":1.25}, {"label":"S", "x":1.25, "y":1}, {"label":"D", "x":2.25, "y":1}, {"label":"F", "x":3.25, "y":1}, {"label":"G", "x":4.25, "y":1}, {"label":"H", "x":5.25, "y":1}, {"label":"J", "x":6.25, "y":1}, {"label":"K", "x":7.25, "y":1}, {"label":"L", "x":8.25, "y":1}, {"label":"ENTER", "x":9.25, "y":1, "w":1.75}, {"label":"SHIFT", "x":0, "y":2, "w":1.75}, {"label":"X", "x":1.75, "y":2}, {"label":"C", "x":2.75, "y":2}, {"label":"V", "x":3.75, "y":2}, {"label":"B", "x":4.75, "y":2}, {"label":"N", "x":5.75, "y":2}, {"label":"M", "x":6.75, "y":2}, {"label":"<", "x":7.75, "y":2}, {"label":">", "x":8.75, "y":2}, {"label":"SHIFT", "x":9.75, "y":2, "w":1.25}, {"label":"CTRL", "x":1.5, "y":3}, {"label":"LOWER", "x":2.5, "y":3, "w":1.25}, {"x":3.75, "y":3, "w":1.75}, {"x":5.5, "y":3, "w":1.75}, {"label":"RAISE", "x":7.25, "y":3, "w":1.25}, {"label":"ALT", "x":8.5, "y":3}]
},

"LAYOUT_split2": {
projectcain marked this conversation as resolved.
Show resolved Hide resolved
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"Y", "x":5, "y":0}, {"label":"U", "x":6, "y":0}, {"label":"I", "x":7, "y":0}, {"label":"O", "x":8, "y":0}, {"label":"P", "x":9, "y":0}, {"label":"BACK<br>SPACE", "x":10, "y":0}, {"label":"TAB", "x":0, "y":1, "w":1.25}, {"label":"S", "x":1.25, "y":1}, {"label":"D", "x":2.25, "y":1}, {"label":"F", "x":3.25, "y":1}, {"label":"G", "x":4.25, "y":1}, {"label":"H", "x":5.25, "y":1}, {"label":"J", "x":6.25, "y":1}, {"label":"K", "x":7.25, "y":1}, {"label":"L", "x":8.25, "y":1}, {"label":"ENTER", "x":9.25, "y":1, "w":1.75}, {"label":"SHIFT", "x":0, "y":2, "w":1.75}, {"label":"X", "x":1.75, "y":2}, {"label":"C", "x":2.75, "y":2}, {"label":"V", "x":3.75, "y":2}, {"label":"B", "x":4.75, "y":2}, {"label":"N", "x":5.75, "y":2}, {"label":"M", "x":6.75, "y":2}, {"label":"<", "x":7.75, "y":2}, {"label":">", "x":8.75, "y":2}, {"label":"SHIFT", "x":9.75, "y":2, "w":1.25}, {"label":"CTRL", "x":1.5, "y":3}, {"x":2.5, "y":3, "w":2.25}, {"label":"FN", "x":4.75, "y":3}, {"x":5.75, "y":3, "w":2.75}, {"label":"ALT", "x":8.5, "y":3}]
},

"LAYOUT_split3": {
projectcain marked this conversation as resolved.
Show resolved Hide resolved
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"Y", "x":5, "y":0}, {"label":"U", "x":6, "y":0}, {"label":"I", "x":7, "y":0}, {"label":"O", "x":8, "y":0}, {"label":"P", "x":9, "y":0}, {"label":"BACK<br>SPACE", "x":10, "y":0}, {"label":"TAB", "x":0, "y":1, "w":1.25}, {"label":"S", "x":1.25, "y":1}, {"label":"D", "x":2.25, "y":1}, {"label":"F", "x":3.25, "y":1}, {"label":"G", "x":4.25, "y":1}, {"label":"H", "x":5.25, "y":1}, {"label":"J", "x":6.25, "y":1}, {"label":"K", "x":7.25, "y":1}, {"label":"L", "x":8.25, "y":1}, {"label":"ENTER", "x":9.25, "y":1, "w":1.75}, {"label":"SHIFT", "x":0, "y":2, "w":1.75}, {"label":"X", "x":1.75, "y":2}, {"label":"C", "x":2.75, "y":2}, {"label":"V", "x":3.75, "y":2}, {"label":"B", "x":4.75, "y":2}, {"label":"N", "x":5.75, "y":2}, {"label":"M", "x":6.75, "y":2}, {"label":"<", "x":7.75, "y":2}, {"label":">", "x":8.75, "y":2}, {"label":"SHIFT", "x":9.75, "y":2, "w":1.25}, {"label":"CTRL", "x":1.5, "y":3}, {"x":2.5, "y":3, "w":3}, {"x":5.5, "y":3, "w":3}, {"label":"ALT", "x":8.5, "y":3}]
},

"LAYOUT_fullbar": {
projectcain marked this conversation as resolved.
Show resolved Hide resolved
"layout": [{"label":"Q", "x":0, "y":0}, {"label":"W", "x":1, "y":0}, {"label":"E", "x":2, "y":0}, {"label":"R", "x":3, "y":0}, {"label":"T", "x":4, "y":0}, {"label":"Y", "x":5, "y":0}, {"label":"U", "x":6, "y":0}, {"label":"I", "x":7, "y":0}, {"label":"O", "x":8, "y":0}, {"label":"P", "x":9, "y":0}, {"label":"BACK<br>SPACE", "x":10, "y":0}, {"label":"TAB", "x":0, "y":1, "w":1.25}, {"label":"S", "x":1.25, "y":1}, {"label":"D", "x":2.25, "y":1}, {"label":"F", "x":3.25, "y":1}, {"label":"G", "x":4.25, "y":1}, {"label":"H", "x":5.25, "y":1}, {"label":"J", "x":6.25, "y":1}, {"label":"K", "x":7.25, "y":1}, {"label":"L", "x":8.25, "y":1}, {"label":"ENTER", "x":9.25, "y":1, "w":1.75}, {"label":"SHIFT", "x":0, "y":2, "w":1.75}, {"label":"X", "x":1.75, "y":2}, {"label":"C", "x":2.75, "y":2}, {"label":"V", "x":3.75, "y":2}, {"label":"B", "x":4.75, "y":2}, {"label":"N", "x":5.75, "y":2}, {"label":"M", "x":6.75, "y":2}, {"label":"<", "x":7.75, "y":2}, {"label":">", "x":8.75, "y":2}, {"label":"SHIFT", "x":9.75, "y":2, "w":1.25}, {"label":"CTRL", "x":1.5, "y":3}, {"x":2.5, "y":3, "w":6}, {"label":"ALT", "x":8.5, "y":3}]
}
}
}
24 changes: 24 additions & 0 deletions keyboards/projectcain/vault35/keymaps/default/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Copyright 2021 projectcain
*
* 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

#define ENCODERS_PAD_A { D6 }
#define ENCODERS_PAD_B { D7 }
projectcain marked this conversation as resolved.
Show resolved Hide resolved
#define ENCODER_RESOLUTION 2
#define COMBO_COUNT 2
#define COMBO_TERM 50
#define TAPPING_FORCE_HOLD
63 changes: 63 additions & 0 deletions keyboards/projectcain/vault35/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@

/* Copyright 2021 projectcain
*
* 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 layers{
BASE,
NUM,
SYM,
META
};


const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[BASE] = LAYOUT_split1(
projectcain marked this conversation as resolved.
Show resolved Hide resolved
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOTE,
KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,
LALT(KC_TAB), MO(1), SFT_T(KC_BSPC), KC_SPACE, MO(2), RESET
),

[NUM] = LAYOUT_split1(
projectcain marked this conversation as resolved.
Show resolved Hide resolved
KC_PGUP, KC_HOME, KC_UP, KC_END, KC_WBAK, KC_PSLS, KC_7, KC_8, KC_9, KC_PMNS, KC_DEL,
KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, KC_WFWD, KC_PAST, KC_4, KC_5, KC_6, KC_PPLS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_0, KC_1, KC_2, KC_3, KC_PDOT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RALT(KC_F4), RALT(KC_F4)
),

[SYM] = LAYOUT_split1(
projectcain marked this conversation as resolved.
Show resolved Hide resolved
S(KC_GRV), KC_GRV, KC_BSLS, S(KC_BSLS), KC_TRNS, KC_TRNS, S(KC_MINS), KC_EQL, KC_TRNS, C(KC_W), C(KC_T),
S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), KC_SCLN, S(KC_SCLN),
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NUMLOCK, KC_TRNS
),

};


enum combos {
KL_SLSH,
JK_MINUS
};

const uint16_t PROGMEM kl_combo[] = {KC_K, KC_L, COMBO_END};
const uint16_t PROGMEM jk_combo[] = {KC_J, KC_K, COMBO_END};

combo_t key_combos[COMBO_COUNT] = {
[KL_SLSH] = COMBO(kl_combo, S(KC_SLSH)),
[JK_MINUS] = COMBO(jk_combo, KC_MINUS)
};
1 change: 1 addition & 0 deletions keyboards/projectcain/vault35/keymaps/default/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# The default keymap for vault35
2 changes: 2 additions & 0 deletions keyboards/projectcain/vault35/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ENCODER_ENABLE = yes
COMBO_ENABLE = yes
21 changes: 21 additions & 0 deletions keyboards/projectcain/vault35/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# vault35

![vault35](https://i.imgur.com/yw3Fvjxh.jpg)

This is a 30% HHKB-style variant of the vault45 with several bottom row options and rotary encoder support.

* Keyboard Maintainer: [projectcain](https://github.com/projectcain)
* Hardware Supported: Vault 35 PCB
* Hardware Availability: mechvault.net

To reset the keyboard into bootloader mode, short the two pads labeled "Reset" on the left side of the pcb

Make example for this keyboard (after setting up your build environment):

make projectcain/vault35:default

Flashing example for this keyboard:

make projectcain/vault35:default:flash

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).
22 changes: 22 additions & 0 deletions keyboards/projectcain/vault35/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# MCU name
MCU = atmega32u4

# Bootloader selection
BOOTLOADER = atmel-dfu

# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
projectcain marked this conversation as resolved.
Show resolved Hide resolved
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = no # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
BLUETOOTH_ENABLE = no # Enable Bluetooth
projectcain marked this conversation as resolved.
Show resolved Hide resolved
AUDIO_ENABLE = no # Audio output
29 changes: 29 additions & 0 deletions keyboards/projectcain/vault35/vault35.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* Copyright 2021 projectcain
*
* 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 "vault35.h"

bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
if (index == 0) { /* First encoder */
if (clockwise) {
tap_code(KC_PGDN);
} else {
tap_code(KC_PGUP);
}
}
return true;
}
Loading