[Keyboard] Add SP-111 v2 keyboard (#21652)

Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
Co-authored-by: jack <0x6a73@protonmail.com>
master
thompson-ele 2023-10-04 20:56:26 -07:00 committed by GitHub
parent 7603a464cd
commit 22fbbbb1cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 317 additions and 0 deletions

View File

@ -0,0 +1,198 @@
{
"manufacturer": "BlindAssassin111",
"keyboard_name": "viktus/sp111_v2",
"maintainer": "blindassassin111",
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true
},
"matrix_pins": {
"cols": ["C6", "F6", "F5", "F4", "F1", "F7", "B7", "D2", "D3", "D5", "D4"],
"rows": ["C7", "B6", "B5", "B4", "D7", "D6"]
},
"ws2812": {
"pin": "F0"
},
"rgb_matrix": {
"driver": "ws2812",
"max_brightness": 150,
"layout": [
{ "flags": 8, "x": 0, "y": 0 },
{ "flags": 8, "x": 0, "y": 1 },
{ "flags": 8, "x": 0, "y": 2 }
],
"animations": {
"alphas_mods": true,
"gradient_up_down": true,
"gradient_left_right": true,
"breathing": true,
"band_pinwheel_sat": true,
"band_pinwheel_val": true,
"band_spiral_sat": true,
"band_spiral_val": true,
"cycle_all": true,
"cycle_left_right": true,
"cycle_up_down": true,
"rainbow_moving_chevron": true,
"cycle_pinwheel": true,
"cycle_spiral": true,
"dual_beacon": true,
"rainbow_beacon": true,
"rainbow_pinwheels": true,
"raindrops": true,
"jellybean_raindrops": true
}
},
"split": {
"enabled": true,
"matrix_pins": {
"right": {
"cols": ["C6", "F1", "B4", "B5", "D2", "D3", "D5", "D4", "D6", "D7"],
"rows": ["C7", "B6", "F4", "F5", "F6", "F7"]
}
},
"transport": {
"protocol": "i2c"
},
"usb_detect": {
"enabled": true
}
},
"url": "https://viktus.design/",
"usb": {
"device_version": "2.0.0",
"pid": "0x5112",
"vid": "0x5644"
},
"layouts": {
"LAYOUT": {
"layout": [
{ "label": "0,0", "matrix": [0, 0], "x": 0, "y": 0 },
{ "label": "0,1", "matrix": [0, 1], "x": 1, "y": 0 },
{ "label": "0,2", "matrix": [0, 2], "x": 2, "y": 0 },
{ "label": "0,3", "matrix": [0, 3], "x": 3, "y": 0 },
{ "label": "0,4", "matrix": [0, 4], "x": 4.5, "y": 0 },
{ "label": "0,5", "matrix": [0, 5], "x": 5.75, "y": 0 },
{ "label": "0,6", "matrix": [0, 6], "x": 6.75, "y": 0 },
{ "label": "0,7", "matrix": [0, 7], "x": 7.75, "y": 0 },
{ "label": "0,8", "matrix": [0, 8], "x": 8.75, "y": 0 },
{ "label": "0,9", "matrix": [0, 9], "x": 10, "y": 0 },
{ "label": "0,10", "matrix": [0, 10], "x": 11, "y": 0 },
{ "label": "6,0", "matrix": [6, 0], "x": 13, "y": 0 },
{ "label": "6,1", "matrix": [6, 1], "x": 14, "y": 0 },
{ "label": "6,3", "matrix": [6, 3], "x": 15.25, "y": 0 },
{ "label": "6,4", "matrix": [6, 4], "x": 16.25, "y": 0 },
{ "label": "6,5", "matrix": [6, 5], "x": 17.25, "y": 0 },
{ "label": "6,6", "matrix": [6, 6], "x": 18.25, "y": 0 },
{ "label": "6,7", "matrix": [6, 7], "x": 19.5, "y": 0 },
{ "label": "6,8", "matrix": [6, 8], "x": 20.75, "y": 0 },
{ "label": "6,9", "matrix": [6, 9], "x": 21.75, "y": 0 },
{ "label": "1,0", "matrix": [1, 0], "x": 0, "y": 1.5 },
{ "label": "1,1", "matrix": [1, 1], "x": 1, "y": 1.5 },
{ "label": "1,2", "matrix": [1, 2], "x": 2, "y": 1.5 },
{ "label": "1,3", "matrix": [1, 3], "x": 3, "y": 1.5 },
{ "label": "1,4", "matrix": [1, 4], "x": 4.5, "y": 1.5 },
{ "label": "1,5", "matrix": [1, 5], "x": 5.5, "y": 1.5 },
{ "label": "1,6", "matrix": [1, 6], "x": 6.5, "y": 1.5 },
{ "label": "1,7", "matrix": [1, 7], "x": 7.5, "y": 1.5 },
{ "label": "1,8", "matrix": [1, 8], "x": 8.5, "y": 1.5 },
{ "label": "1,9", "matrix": [1, 9], "x": 9.5, "y": 1.5 },
{ "label": "1,10", "matrix": [1, 10], "x": 10.5, "y": 1.5 },
{ "label": "7,0", "matrix": [7, 0], "x": 12.5, "y": 1.5 },
{ "label": "7,1", "matrix": [7, 1], "x": 13.5, "y": 1.5 },
{ "label": "7,2", "matrix": [7, 2], "x": 14.5, "y": 1.5 },
{ "label": "7,3", "matrix": [7, 3], "x": 15.5, "y": 1.5 },
{ "label": "7,4", "matrix": [7, 4], "x": 16.5, "y": 1.5 },
{ "label": "7,5", "matrix": [7, 5], "x": 17.5, "y": 1.5 },
{ "label": "7,6", "matrix": [7, 6], "x": 18.5, "y": 1.5 },
{ "label": "7,7", "matrix": [7, 7], "x": 19.5, "y": 1.5 },
{ "label": "7,8", "matrix": [7, 8], "x": 20.75, "y": 1.5 },
{ "label": "7,9", "matrix": [7, 9], "x": 21.75, "y": 1.5 },
{ "label": "2,0", "matrix": [2, 0], "x": 0, "y": 2.5 },
{ "label": "2,1", "matrix": [2, 1], "x": 1, "y": 2.5 },
{ "label": "2,2", "matrix": [2, 2], "x": 2, "y": 2.5 },
{ "label": "2,3", "matrix": [2, 3], "x": 3, "y": 2.5 },
{ "label": "2,4", "matrix": [2, 4], "w": 1.5, "x": 4.5, "y": 2.5 },
{ "label": "2,5", "matrix": [2, 5], "x": 6, "y": 2.5 },
{ "label": "2,6", "matrix": [2, 6], "x": 7, "y": 2.5 },
{ "label": "2,7", "matrix": [2, 7], "x": 8, "y": 2.5 },
{ "label": "2,8", "matrix": [2, 8], "x": 9, "y": 2.5 },
{ "label": "2,9", "matrix": [2, 9], "x": 10, "y": 2.5 },
{ "label": "8,0", "matrix": [8, 0], "x": 12, "y": 2.5 },
{ "label": "8,1", "matrix": [8, 1], "x": 13, "y": 2.5 },
{ "label": "8,2", "matrix": [8, 2], "x": 14, "y": 2.5 },
{ "label": "8,3", "matrix": [8, 3], "x": 15, "y": 2.5 },
{ "label": "8,4", "matrix": [8, 4], "x": 16, "y": 2.5 },
{ "label": "8,5", "matrix": [8, 5], "x": 17, "y": 2.5 },
{ "label": "8,6", "matrix": [8, 6], "x": 18, "y": 2.5 },
{ "label": "8,7", "matrix": [8, 7], "w": 1.5, "x": 19, "y": 2.5 },
{ "label": "8,8", "matrix": [8, 8], "x": 20.75, "y": 2.5 },
{ "label": "8,9", "matrix": [8, 9], "x": 21.75, "y": 2.5 },
{ "label": "3,0", "matrix": [3, 0], "x": 0, "y": 3.5 },
{ "label": "3,1", "matrix": [3, 1], "x": 1, "y": 3.5 },
{ "label": "3,2", "matrix": [3, 2], "x": 2, "y": 3.5 },
{ "label": "3,3", "matrix": [3, 3], "x": 3, "y": 3.5 },
{ "label": "3,4", "matrix": [3, 4], "w": 1.75, "x": 4.5, "y": 3.5 },
{ "label": "3,5", "matrix": [3, 5], "x": 6.25, "y": 3.5 },
{ "label": "3,6", "matrix": [3, 6], "x": 7.25, "y": 3.5 },
{ "label": "3,7", "matrix": [3, 7], "x": 8.25, "y": 3.5 },
{ "label": "3,8", "matrix": [3, 8], "x": 9.25, "y": 3.5 },
{ "label": "3,9", "matrix": [3, 9], "x": 10.25, "y": 3.5 },
{ "label": "9,0", "matrix": [9, 0], "x": 12.25, "y": 3.5 },
{ "label": "9,1", "matrix": [9, 1], "x": 13.25, "y": 3.5 },
{ "label": "9,2", "matrix": [9, 2], "x": 14.25, "y": 3.5 },
{ "label": "9,3", "matrix": [9, 3], "x": 15.25, "y": 3.5 },
{ "label": "9,4", "matrix": [9, 4], "x": 16.25, "y": 3.5 },
{ "label": "9,5", "matrix": [9, 5], "x": 17.25, "y": 3.5 },
{ "label": "9,6", "matrix": [9, 6], "x": 18.25, "y": 3.5 },
{ "label": "9,7", "matrix": [9, 7], "w": 1.25, "x": 19.25, "y": 3.5 },
{ "label": "9,8", "matrix": [9, 8], "x": 20.75, "y": 3.5 },
{ "label": "9,9", "matrix": [9, 9], "x": 21.75, "y": 3.5 },
{ "label": "4,0", "matrix": [4, 0], "x": 0, "y": 4.5 },
{ "label": "4,1", "matrix": [4, 1], "x": 1, "y": 4.5 },
{ "label": "4,2", "matrix": [4, 2], "x": 2, "y": 4.5 },
{ "label": "4,3", "matrix": [4, 3], "x": 3, "y": 4.5 },
{ "label": "4,4", "matrix": [4, 4], "w": 1.25, "x": 4.5, "y": 4.5 },
{ "label": "4,5", "matrix": [4, 5], "x": 5.75, "y": 4.5 },
{ "label": "4,6", "matrix": [4, 6], "x": 6.75, "y": 4.5 },
{ "label": "4,7", "matrix": [4, 7], "x": 7.75, "y": 4.5 },
{ "label": "4,8", "matrix": [4, 8], "x": 8.75, "y": 4.5 },
{ "label": "4,9", "matrix": [4, 9], "x": 9.75, "y": 4.5 },
{ "label": "4,10", "matrix": [4, 10], "x": 10.75, "y": 4.5 },
{ "label": "10,1", "matrix": [10, 1], "x": 12.75, "y": 4.5 },
{ "label": "10,1", "matrix": [10, 2], "x": 13.75, "y": 4.5 },
{ "label": "10,2", "matrix": [10, 3], "x": 14.75, "y": 4.5 },
{ "label": "10,3", "matrix": [10, 4], "x": 15.75, "y": 4.5 },
{ "label": "10,4", "matrix": [10, 5], "x": 16.75, "y": 4.5 },
{ "label": "10,6", "matrix": [10, 6], "w": 1.75, "x": 17.75, "y": 4.5 },
{ "label": "10,7", "matrix": [10, 7], "x": 19.5, "y": 4.5 },
{ "label": "10,8", "matrix": [10, 8], "x": 20.75, "y": 4.75 },
{ "label": "5.0", "matrix": [5, 0], "x": 0, "y": 5.5 },
{ "label": "5,1", "matrix": [5, 1], "x": 1, "y": 5.5 },
{ "label": "5,2", "matrix": [5, 2], "x": 2, "y": 5.5 },
{ "label": "5,3", "matrix": [5, 3], "x": 3, "y": 5.5 },
{ "label": "5,4", "matrix": [5, 4], "w": 1.25, "x": 4.5, "y": 5.5 },
{ "label": "5,5", "matrix": [5, 5], "w": 1.25, "x": 5.75, "y": 5.5 },
{ "label": "5,7", "matrix": [5, 7], "w": 1.25, "x": 7, "y": 5.5 },
{ "label": "5,8", "matrix": [5, 8], "x": 8.25, "y": 5.5 },
{ "label": "5,9", "matrix": [5, 9], "w": 2.25, "x": 9.25, "y": 5.5 },
{ "label": "11,2", "matrix": [11, 2], "w": 2.25, "x": 12.5, "y": 5.5 },
{ "label": "11,3", "matrix": [11, 3], "x": 14.75, "y": 5.5 },
{ "label": "11,4", "matrix": [11, 4], "w": 1.25, "x": 15.75, "y": 5.5 },
{ "label": "11,5", "matrix": [11, 5], "w": 1.25, "x": 17, "y": 5.5 },
{ "label": "11,6", "matrix": [11, 6], "w": 1.25, "x": 18.25, "y": 5.5 },
{ "label": "11,7", "matrix": [11, 7], "x": 19.75, "y": 5.75 },
{ "label": "11,8", "matrix": [11, 8], "x": 20.75, "y": 5.75 },
{ "label": "11,9", "matrix": [11, 9], "x": 21.75, "y": 5.75 }
]
}
}
}

View File

@ -0,0 +1,49 @@
// Copyright 2023 BlindAssassin111 (@blindassassin111)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
// Defines names for use in layer keycodes and the keymap
enum layer_names {
_BASE,
_FN
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
*
* 0A0B0C0D 0E 0F0G0H0I 0J0K 6A6B 6D6E6F6G 6H 6I6J
*
*
* 1A1B1C1D 1E1F1G1H1I1J1K 7A7B7C7D7E7F7G7H 7I7J
*
*
* 2A2B2C2D 2E 2F2G2H2I2J 8A8B8C8D8E8F8G8H 8I8J
*
*
* 3A3B3C3D 3E 3F3G3H3I3J 9A9B9C9D9E9F9G9H 9I9J
*
*
* 4A4B4C4D 4E 4F4G4H4I4J4K ABACADAEAFAG AH
* AI
*
* 5A5B5C5D 5E 5F 5H 5I5J BC BDBE BF BG
* BHBIBJ
*
*/
[_BASE] = LAYOUT(
KC_MUTE,KC_MPRV,KC_MPLY,KC_MNXT, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
KC_NUM, KC_PSLS,KC_PAST,KC_PMNS, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_DEL, KC_HOME, KC_INS,
KC_P7, KC_P8, KC_P9, KC_PPLS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END, KC_DEL,
KC_P4, KC_P5, KC_P6, KC_PEQL, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGUP, KC_PGDN,
KC_P1, KC_P2, KC_P3, KC_PENT, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(_FN), KC_UP,
KC_P0, KC_P0, KC_P0, KC_PDOT, KC_LCTL, KC_LGUI, KC_LALT, KC_MUTE, KC_SPC, KC_SPC, KC_APP, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT),
[_FN] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
};

View File

@ -0,0 +1,6 @@
// Copyright 2023 BlindAssassin111 (@blindassassin111)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define DYNAMIC_KEYMAP_LAYER_COUNT 3

View File

@ -0,0 +1,22 @@
// Copyright 2023 BlindAssassin111 (@blindassassin111)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_MUTE,KC_MPRV,KC_MPLY,KC_MNXT, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_SCRL, KC_PAUS,
KC_NUM, KC_PSLS,KC_PAST,KC_PMNS, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_HOME, KC_INS,
KC_P7, KC_P8, KC_P9, KC_PMNS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_END, KC_DEL,
KC_P4, KC_P5, KC_P6, KC_PPLS, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGUP, KC_PGDN,
KC_P1, KC_P2, KC_P3, KC_PPLS, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP,
KC_P0, KC_P0, KC_PDOT, KC_PENT, KC_LCTL, KC_LGUI, KC_LALT, KC_MUTE, KC_SPC, KC_SPC, KC_APP, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT),
[1] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
};

View File

@ -0,0 +1,2 @@
VIA_ENABLE = yes
LTO_ENABLE = yes

View File

@ -0,0 +1,27 @@
# Viktus Styrka v2
![viktus/sp111_v2](https://i.imgur.com/ApgZRhgh.png)
A split southpaw fullsize-esque layout. Round 2 of the board has RGB LED indicators.
* Keyboard Maintainer: [BlindAssassin111](https://github.com/blindassassin111)
* Hardware Supported: SP-111 round 2 PCBs only
* Hardware Availability: Space Cables, Ashkeebs, protoTypist, mykeyboard, ilumkb, SwitchKeys
Make example for this keyboard (after setting up your build environment):
make viktus/sp111_v2:default
Flashing example for this keyboard:
make viktus/sp111_v2: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).
## Bootloader
Enter the bootloader in 3 ways:
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

View File

@ -0,0 +1 @@
# This file intentionally left blank

View File

@ -0,0 +1,12 @@
// Copyright 2023 BlindAssassin111 (@blindassassin111)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "quantum.h"
void keyboard_pre_init_kb(void) {
// enable built in pullups to avoid timeouts when right hand not connected
setPinInputHigh(D0);
setPinInputHigh(D1);
keyboard_pre_init_user();
}