mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 21:01:31 +00:00
Add right half as a keyboard
This commit is contained in:
parent
f3eddb2c6d
commit
04ff6dc292
35
keyboards/system76/virgorthoright/config.h
Normal file
35
keyboards/system76/virgorthoright/config.h
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#ifndef CONFIG_H
|
||||||
|
#define CONFIG_H
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
/* USB Device descriptor parameter */
|
||||||
|
#define VENDOR_ID 0x1776
|
||||||
|
#define PRODUCT_ID 0x1776
|
||||||
|
#define DEVICE_VER 0x0001
|
||||||
|
#define MANUFACTURER System76
|
||||||
|
#define PRODUCT Virgortholeft
|
||||||
|
#define DESCRIPTION Left half of 2U Split Ortho
|
||||||
|
|
||||||
|
/* key matrix size */
|
||||||
|
#define MATRIX_ROWS 6
|
||||||
|
#define MATRIX_COLS 7
|
||||||
|
|
||||||
|
/* key matrix pins */
|
||||||
|
#define MATRIX_ROW_PINS { F4, F5, F6, F7, B1, B3 }
|
||||||
|
#define MATRIX_COL_PINS { D1, D0, D4, C6, D7, E6, B4 }
|
||||||
|
#define UNUSED_PINS
|
||||||
|
|
||||||
|
/* COL2ROW or ROW2COL */
|
||||||
|
#define DIODE_DIRECTION COL2ROW
|
||||||
|
|
||||||
|
/* Set 0 if debouncing isn't needed */
|
||||||
|
#define DEBOUNCE 5
|
||||||
|
|
||||||
|
/* 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
|
||||||
|
|
||||||
|
#endif // CONFIG_H
|
58
keyboards/system76/virgorthoright/keymaps/default/keymap.c
Normal file
58
keyboards/system76/virgorthoright/keymaps/default/keymap.c
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
/* Layer 0, default layer
|
||||||
|
* ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐
|
||||||
|
* │ F7 │ F8 │ F9 │ F10 │ F11 │ F12 │PrtSc│ Del │ Ins │
|
||||||
|
* ├─────┼─────┼─────┼─────┼─────┼─────┼─────┴─────┼─────┤
|
||||||
|
* │ 7 │ 8 │ 9 │ 0 │ - _ │ = + │ Backspace │ Home│
|
||||||
|
* ├─────┼─────┼─────┼─────┼─────┼─────┼─────┬─────┼─────┤
|
||||||
|
* │ Y │ U │ I │ O │ P │ [ { │ ] } │ \ | │ PgUp│
|
||||||
|
* ├─────┼─────┼─────┼─────┼─────┼─────┼─────┴─────┼─────┤
|
||||||
|
* │ H │ J │ K │ L │ ; : │ ' " │ Enter │ PgDn│
|
||||||
|
* ├─────┼─────┼─────┼─────┼─────┼─────┴─────┬─────┼─────┤
|
||||||
|
* │ N │ M │ , < │ . > │ / ? │ Shift │ Up │ End │
|
||||||
|
* ├─────┴─────┼─────┼─────┼─────┴─────┬─────┼─────┼─────┤
|
||||||
|
* │ Space │ Alt │ Fn │ Ctrl │ Left│ Down│Right│
|
||||||
|
* └───────────┴─────┴─────┴───────────┴─────┴─────┴─────┘
|
||||||
|
*/
|
||||||
|
|
||||||
|
[0] = LAYOUT(
|
||||||
|
KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_DEL, KC_INS,
|
||||||
|
KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME,
|
||||||
|
KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP,
|
||||||
|
KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN,
|
||||||
|
KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
|
||||||
|
KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Layer 1, function layer
|
||||||
|
* ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐
|
||||||
|
* │ │ │ │ │ │ │ │ │ │
|
||||||
|
* ├─────┼─────┼─────┼─────┼─────┼─────┼─────┴─────┼─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* ├─────┼─────┼─────┼─────┼─────┼─────┼─────┬─────┼─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │ │
|
||||||
|
* ├─────┼─────┼─────┼─────┼─────┼─────┼─────┴─────┼─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* ├─────┼─────┼─────┼─────┼─────┼─────┴─────┬─────┼─────┤
|
||||||
|
* │ │ │ │ │ │ │ │ │
|
||||||
|
* ├─────┴─────┼─────┼─────┼─────┴─────┬─────┼─────┼─────┤
|
||||||
|
* │ │ │ │ │ │ │ │
|
||||||
|
* └───────────┴─────┴─────┴───────────┴─────┴─────┴─────┘
|
||||||
|
*/
|
||||||
|
|
||||||
|
[1] = LAYOUT(
|
||||||
|
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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
return true;
|
||||||
|
}
|
22
keyboards/system76/virgorthoright/rules.mk
Normal file
22
keyboards/system76/virgorthoright/rules.mk
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# MCU name
|
||||||
|
MCU = atmega32u4
|
||||||
|
|
||||||
|
# Bootloader selection
|
||||||
|
# Teensy halfkay
|
||||||
|
# Pro Micro caterina
|
||||||
|
# Atmel DFU atmel-dfu
|
||||||
|
# LUFA DFU lufa-dfu
|
||||||
|
# QMK DFU qmk-dfu
|
||||||
|
# ATmega32A bootloadHID
|
||||||
|
# ATmega328P USBasp
|
||||||
|
BOOTLOADER = caterina
|
||||||
|
|
||||||
|
# Build Options
|
||||||
|
# comment out to disable the options.
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = full # Virtual DIP switch configuration(+1000)
|
||||||
|
MOUSEKEY_ENABLE = no # Mouse keys(+4700)
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug(+400)
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
9
keyboards/system76/virgorthoright/virgorthoright.c
Normal file
9
keyboards/system76/virgorthoright/virgorthoright.c
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include "virgorthoright.h"
|
||||||
|
|
||||||
|
void keyboard_post_init_user(void) {
|
||||||
|
// Customise these values to desired behaviour
|
||||||
|
debug_enable=true;
|
||||||
|
debug_matrix=true;
|
||||||
|
debug_keyboard=true;
|
||||||
|
//debug_mouse=true;
|
||||||
|
}
|
24
keyboards/system76/virgorthoright/virgorthoright.h
Normal file
24
keyboards/system76/virgorthoright/virgorthoright.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#ifndef VIRGORTHORIGHT_H
|
||||||
|
#define VIRGORTHORIGHT_H
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define ___ KC_NO
|
||||||
|
|
||||||
|
#define LAYOUT( \
|
||||||
|
K00, K01, K02, K03, K04, K05, K06, K07, K08, \
|
||||||
|
K10, K11, K12, K13, K14, K15, K16, K18, \
|
||||||
|
K20, K21, K22, K23, K24, K25, K26, K27, K28, \
|
||||||
|
K30, K31, K32, K33, K34, K35, K36, K38, \
|
||||||
|
K40, K41, K42, K43, K44, K45, K47, K48, \
|
||||||
|
K50, K52, K53, K54, K56, K57, K58 \
|
||||||
|
) { \
|
||||||
|
{ K00, K01, K02, K03, K04, K05, K06, K07, K08 }, \
|
||||||
|
{ K10, K11, K12, K13, K14, K15, K16, ___, K18 }, \
|
||||||
|
{ K20, K21, K22, K23, K24, K25, K26, K27, K28 }, \
|
||||||
|
{ K30, K31, K32, K33, K34, K35, K36, ___, K38 }, \
|
||||||
|
{ K40, K41, K42, K43, K44, K45, ___, K47, K48 }, \
|
||||||
|
{ K50, ___, K52, K53, K54, ___, K56, K57, K58 }, \
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // VIRGORTHORIGHT_H
|
Loading…
Reference in New Issue
Block a user