* Add Minisub keyboard support

* Edit Readme

* Add support for Minisub keyboard
This commit is contained in:
b. avianto 2021-09-14 20:55:38 -04:00 committed by GitHub
parent 3ebf91ee31
commit dc6f90d78b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 238 additions and 0 deletions

View File

@ -0,0 +1,51 @@
/*
Copyright 2012 Jun Wako <wakojun@gmail.com>
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 0x5566
#define DEVICE_VER 0x0002
#define MANUFACTURER Rain
#define PRODUCT Minisub
/* key matrix size */
#define MATRIX_ROWS 4
#define MATRIX_COLS 12
/*
* 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 { D7, B5, F7, D4 }
#define MATRIX_COL_PINS { D2, D3, D5, D6, B4, B6, F6, F5, F4, F1, F0, B3 }
#define UNUSED_PINS
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCE 5

View File

@ -0,0 +1,16 @@
{
"keyboard_name": "Minisub",
"url": "",
"maintainer": "qmk",
"width": 12.75,
"height": 4,
"layouts": {
"LAYOUT": {
"layout": [{"label":"Esc","x":0,"y":0},{"label":"Q","x":1,"y":0},{"label":"W","x":2,"y":0},{"label":"E","x":3,"y":0},{"label":"R","x":4,"y":0},{"label":"T","x":5,"y":0},{"label":"Y","x":6,"y":0},{"label":"U","x":7,"y":0},{"label":"I","x":8,"y":0},{"label":"O","x":9,"y":0},{"label":"P","x":10,"y":0},{"label":"|","x":11,"y":0,"w":1.75},{"label":"Caps Lock","x":0,"y":1,"w":1.25},{"label":"A","x":1.25,"y":1},{"label":"S","x":2.25,"y":1},{"label":"D","x":3.25,"y":1},{"label":"F","x":4.25,"y":1},{"label":"G","x":5.25,"y":1},{"label":"H","x":6.25,"y":1},{"label":"J","x":7.25,"y":1},{"label":"K","x":8.25,"y":1},{"label":"L","x":9.25,"y":1},{"label":":","x":10.25,"y":1},{"label":"\"","x":11.25,"y":1,"w":1.5},{"label":"Shift","x":0,"y":2,"w":1.75},{"label":"Z","x":1.75,"y":2},{"label":"X","x":2.75,"y":2},{"label":"C","x":3.75,"y":2},{"label":"V","x":4.75,"y":2},{"label":"B","x":5.75,"y":2},{"label":"N","x":6.75,"y":2},{"label":"M","x":7.75,"y":2},{"label":"<","x":8.75,"y":2},{"label":">","x":9.75,"y":2},{"label":"Up","x":10.75,"y":2},{"label":"?","x":11.75,"y":2},{"label":"Ctrl","x":0,"y":3,"w":1.25},{"label":"Win","x":1.25,"y":3},{"label":"Alt","x":2.25,"y":3,"w":1.25},{"x":3.35,"y":3,"w":6.25},{"label":"Left","x":9.75,"y":3},{"label":"Down","x":10.75,"y":3},{"label":"Right","x":11.75,"y":3}]
},
"LAYOUT_splitbar": {
"layout": [{"label":"Esc","x":0,"y":0},{"label":"Q","x":1,"y":0},{"label":"W","x":2,"y":0},{"label":"E","x":3,"y":0},{"label":"R","x":4,"y":0},{"label":"T","x":5,"y":0},{"label":"Y","x":6,"y":0},{"label":"U","x":7,"y":0},{"label":"I","x":8,"y":0},{"label":"O","x":9,"y":0},{"label":"P","x":10,"y":0},{"label":"|","x":11,"y":0,"w":1.75},{"label":"Caps Lock","x":0,"y":1,"w":1.25},{"label":"A","x":1.25,"y":1},{"label":"S","x":2.25,"y":1},{"label":"D","x":3.25,"y":1},{"label":"F","x":4.25,"y":1},{"label":"G","x":5.25,"y":1},{"label":"H","x":6.25,"y":1},{"label":"J","x":7.25,"y":1},{"label":"K","x":8.25,"y":1},{"label":"L","x":9.25,"y":1},{"label":":","x":10.25,"y":1},{"label":"\"","x":11.25,"y":1,"w":1.5},{"label":"Shift","x":0,"y":2,"w":1.75},{"label":"Z","x":1.75,"y":2},{"label":"X","x":2.75,"y":2},{"label":"C","x":3.75,"y":2},{"label":"V","x":4.75,"y":2},{"label":"B","x":5.75,"y":2},{"label":"N","x":6.75,"y":2},{"label":"M","x":7.75,"y":2},{"label":"<","x":8.75,"y":2},{"label":">","x":9.75,"y":2},{"label":"Up","x":10.75,"y":2},{"label":"?","x":11.75,"y":2},{"label":"Ctrl","x":0,"y":3,"w":1.25},{"label":"Win","x":1.25,"y":3},{"label":"Alt","x":2.25,"y":3,"w":1.25},{"x":3.35,"y":3,"w":2.75},{"x":6.25,"y":3,"w":2.25},{"x":8.5,"y":3,"w":1.25},{"label":"Alt","x":9.75,"y":3},{"label":"Win","x":10.75,"y":3},{"label":"Menu","x":11.75,"y":3}]
}
}
}

View File

@ -0,0 +1,3 @@
#pragma once
// place overrides here

View File

@ -0,0 +1,30 @@
#include QMK_KEYBOARD_H
extern keymap_config_t keymap_config;
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Qwerty */
KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, LT(2, KC_ENT),
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_RSFT,
KC_LCTL, KC_LGUI, KC_LALT, LT(1, KC_SPC), KC_LEFT, KC_DOWN, KC_RIGHT
),
[1] = LAYOUT( /* LAYER 2 */
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
KC_TRNS, KC_MINS, KC_EQL, KC_BSLS, KC_TRNS, KC_TRNS, KC_UP, KC_LEFT, KC_DOWN, KC_RGHT, KC_SCLN, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_SLSH, KC_PGUP, KC_BSLS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
),
[2] = LAYOUT( /* LAYER 1 */
KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_MPLY,
KC_TRNS, KC_UNDS, KC_PLUS, KC_PIPE, KC_TRNS, KC_TRNS, KC_VOLU, KC_MPRV, KC_VOLD, KC_MNXT, KC_COLN, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LCBR, KC_RCBR, KC_QUES, KC_VOLU, KC_PIPE,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT
),
[3] = LAYOUT( /* LAYER 3 */
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, 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, 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, KC_TRNS
)
};

View File

@ -0,0 +1 @@
# The default keymap for minisub

View File

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0x28, 0x8C, 0x09, 0xFB, 0x51, 0x19, 0x31, 0x48}
#define VIAL_UNLOCK_COMBO_ROWS { 1, 1 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 11 }

View File

@ -0,0 +1,28 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Qwerty */
KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, LT(2, KC_ENT),
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_RSFT,
KC_LCTL, KC_LGUI, KC_LALT, LT(1, KC_SPC), KC_LEFT, KC_DOWN, KC_RIGHT
),
[1] = LAYOUT( /* LAYER 2 */
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
KC_TRNS, KC_MINS, KC_EQL, KC_BSLS, KC_TRNS, KC_TRNS, KC_UP, KC_LEFT, KC_DOWN, KC_RGHT, KC_SCLN, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_SLSH, KC_PGUP, KC_BSLS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END
),
[2] = LAYOUT( /* LAYER 1 */
KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_MPLY,
KC_TRNS, KC_UNDS, KC_PLUS, KC_PIPE, KC_TRNS, KC_TRNS, KC_VOLU, KC_MPRV, KC_VOLD, KC_MNXT, KC_COLN, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LCBR, KC_RCBR, KC_QUES, KC_VOLU, KC_PIPE,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT
),
[3] = LAYOUT( /* LAYER 3 */
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, 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, 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, KC_TRNS
)
};

View File

@ -0,0 +1 @@
# Vial support for Minisub

View File

@ -0,0 +1,4 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes

View File

@ -0,0 +1,22 @@
{
"name": "Minisub",
"vendorId": "0xFEED",
"productId": "0x5566",
"lighting": "none",
"matrix": {
"rows": 4,
"cols": 12
},
"layouts": {
"labels":[
"Split Spacebar"
],
"keymap":[
["0,0","0,1","0,2","0,3","0,4","0,5","0,6","0,7","0,8","0,9","0,10",{"w":1.75},"0,11"],
[{"w":1.25},"1,0","1,1","1,2","1,3",{"n":true},"1,4","1,5","1,6",{"n":true},"1,7","1,8","1,9","1,10",{"w":1.5},"1,11"],
[{"w":1.75},"2,0","2,1","2,2","2,3","2,4","2,5","2,6","2,7","2,8","2,9","2,10","2,11"],
[{"w":1.25},"3,0","3,1",{"w":1.25},"3,2",{"w":6.25},"3,7\n\n\n0,0","3,9","3,10","3,11"],
[{"y":0.25,"x":3.5,"w":2.75},"3,3\n\n\n0,1",{"w":2.25},"3,7\n\n\n0,1",{"w":1.25},"3,8\n\n\n0,1"]
]
}
}

View File

@ -0,0 +1 @@
#include "minisub.h"

View File

@ -0,0 +1,38 @@
#pragma once
#include "quantum.h"
// This a shortcut to help you visually see your layout.
// There are a number of variations depending on the layout of your bottom row.
// The arrow variant adds an additional key on the bottom-right, while the
// command variant adds an additional key on the bottom-left. arrow-command is a
// combination of both of those, having an additional key on both sides.
//
// Please note that the numbering of the macro arguments are based on the
// numbers of the keys on the PCB.
#define LAYOUT( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K32, K37, K39, K3A, K3B \
) \
{ \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, K32, KC_NO, KC_NO, KC_NO, KC_NO, K37, KC_NO, K39, K2A, K3B } \
}
#define LAYOUT_splitbar( \
K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
K30, K31, K32, K33, K37, K38, K39, K3A, K3B \
) \
{ \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
{ K30, K31, K32, K33, KC_NO, KC_NO, KC_NO, K37, K38, K39, K3A, K3B } \
}

View File

@ -0,0 +1,13 @@
# Minisub
Minisub is a [MiniVan-compatible](https://trashman.wiki/keyboards/minivan) hotswap PCB designed by community member [rainkeebs](https://www.rainkeebs.mx/)
Keyboard Maintainer: QMK Community
Hardware Supported: Minisub PCB
Hardware Availability: [Rainkeebs](https://www.rainkeebs.mx/)
Make example for this keyboard (after setting up your build environment):
make minisub:default
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).

View File

@ -0,0 +1,22 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
BOOTLOADER = atmel-dfu
# Build Options
# change yes to no to disable
#
BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = yes # 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 = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
UNICODE_ENABLE = no # Unicode
AUDIO_ENABLE = no # Audio output on port C6
RGBLIGHT_ENABLE = no # Enable support for RGB LEDs