Add Splinter (#710)

* Initial Commit

* Switches and Encoder working

* Add RGB
This commit is contained in:
NCKiser 2024-04-14 20:38:48 -05:00 committed by GitHub
parent 1a8fff7512
commit 9f773788cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 525 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// Copyright 2023 Danny Nguyen (danny@keeb.io)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
//#define SPLIT_HAND_PIN GP4
//#define USB_VBUS_PIN GP14
#define SERIAL_USART_FULL_DUPLEX
#define SERIAL_USART_TX_PIN GP27
#define SERIAL_USART_RX_PIN GP28
#define SERIAL_USART_PIN_SWAP
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 1000U

View File

@ -0,0 +1,137 @@
{
"manufacturer": "Kiser Designs",
"url": "https://kiserdesigns.com/",
"maintainer": "NCKiser",
"keyboard_name": "Splinter",
"usb": {
"vid": "0x4B44",
"pid": "0x5971",
"device_version": "0.0.1"
},
"processor": "RP2040",
"bootloader": "rp2040",
"diode_direction": "COL2ROW",
"features": {
"audio": false,
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true,
"rgb_matrix": true
},
"split": {
"enabled": true,
"encoder": {
"right": {
"rotary": [
{"pin_a": "GP8", "pin_b": "GP9"},
{"pin_a": "GP7", "pin_b": "GP6"}
]
}
},
"matrix_pins": {
"right": {
"cols": ["GP23", "GP24", "GP26", "GP2", "GP3", "GP4", "GP5"],
"rows": ["GP22", "GP25", "GP29", "GP18"]
}
}
},
"ws2812": {
"pin": "GP10",
"driver": "vendor"
},
"rgb_matrix": {
"driver": "ws2812",
"split_count": [0, 1],"animations": {
"breathing": true,
"cycle_left_right": true
},
"layout": [
{"flags": 4, "x": 64, "y": 112}
]
},
"matrix_pins": {
"cols": ["GP1", "GP2", "GP3", "GP18", "GP4", "GP10", "GP25"],
"rows": ["GP29", "GP5", "GP0", "GP13"]
},
"encoder": {
"enabled": true,
"rotary": [
{"pin_a": "GP23", "pin_b": "GP24"},
{"pin_a": "GP22", "pin_b": "GP26"},
{"pin_a": "GP11", "pin_b": "GP12"},
{"pin_a": "GP19", "pin_b": "GP20"}
]
},
"layouts": {
"LAYOUT": {
"layout": [
{ "matrix": [0, 6], "x": 0, "y": 0 },
{ "matrix": [0, 5], "x": 1.25, "y": 0 },
{ "matrix": [0, 4], "x": 2.25, "y": 0 },
{ "matrix": [0, 3], "x": 3.25, "y": 0 },
{ "matrix": [0, 2], "x": 4.25, "y": 0 },
{ "matrix": [0, 1], "x": 5.25, "y": 0 },
{ "matrix": [0, 0], "x": 6.25, "y": 0 },
{ "matrix": [4, 0], "x": 9.25, "y": 0 },
{ "matrix": [4, 1], "x": 10.25, "y": 0 },
{ "matrix": [4, 2], "x": 11.25, "y": 0 },
{ "matrix": [4, 3], "x": 12.25, "y": 0 },
{ "matrix": [4, 4], "x": 13.25, "y": 0 },
{ "matrix": [4, 5], "w": 1.75, "x": 14.25, "y": 0 },
{ "matrix": [4, 6], "x": 16.25, "y": 0 },
{ "matrix": [1, 6], "x": 0, "y": 1 },
{ "matrix": [1, 5], "w": 1.25, "x": 1.25, "y": 1 },
{ "matrix": [1, 4], "x": 2.5, "y": 1 },
{ "matrix": [1, 3], "x": 3.5, "y": 1 },
{ "matrix": [1, 2], "x": 4.5, "y": 1 },
{ "matrix": [1, 1], "x": 5.5, "y": 1 },
{ "matrix": [1, 0], "x": 6.5, "y": 1 },
{ "matrix": [5, 0], "x": 9.5, "y": 1 },
{ "matrix": [5, 1], "x": 10.5, "y": 1 },
{ "matrix": [5, 2], "x": 11.5, "y": 1 },
{ "matrix": [5, 3], "x": 12.5, "y": 1 },
{ "matrix": [5, 4], "x": 13.5, "y": 1 },
{ "matrix": [5, 5], "w": 1.5, "x": 14.5, "y": 1 },
{ "matrix": [5, 6], "x": 16.25, "y": 1 },
{ "matrix": [2, 6], "x": 0, "y": 2 },
{ "matrix": [2, 5], "w": 1.75, "x": 1.25, "y": 2 },
{ "matrix": [2, 4], "x": 3, "y": 2 },
{ "matrix": [2, 3], "x": 4, "y": 2 },
{ "matrix": [2, 2], "x": 5, "y": 2 },
{ "matrix": [2, 1], "x": 6, "y": 2 },
{ "matrix": [2, 0], "x": 7, "y": 2 },
{ "matrix": [6, 0], "x": 10, "y": 2 },
{ "matrix": [6, 1], "x": 11, "y": 2 },
{ "matrix": [6, 2], "x": 12, "y": 2 },
{ "matrix": [6, 3], "x": 13, "y": 2 },
{ "matrix": [6, 4], "x": 14, "y": 2 },
{ "matrix": [6, 5], "x": 15, "y": 2 },
{ "matrix": [3, 6], "x": 0, "y": 3 },
{ "matrix": [3, 5], "w": 1.25, "x": 1.25, "y": 3 },
{ "matrix": [3, 4], "x": 2.5, "y": 3 },
{ "matrix": [3, 3], "w": 1.25, "x": 3.5, "y": 3 },
{ "matrix": [3, 2], "w": 1.25, "x": 5.25, "y": 3.25 },
{ "matrix": [3, 0], "w": 1.75, "x": 6.5, "y": 3.25 },
{ "matrix": [7, 0], "w": 1.75, "x": 9, "y": 3.25 },
{ "matrix": [7, 1], "w": 1.25, "x": 10.75, "y": 3.25 },
{ "matrix": [7, 3], "w": 1.5, "x": 12.5, "y": 3 },
{ "matrix": [7, 4], "x": 14, "y": 3 },
{ "matrix": [7, 5], "x": 15, "y": 3 },
{ "matrix": [7, 6], "x": 16, "y": 3 }
]
}
}
}

View File

@ -0,0 +1,34 @@
/* 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
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_HOME, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_DEL,
KC_END, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, KC_INS,
KC_PGUP, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP,
KC_PGDN, KC_LCTL, KC_LGUI, KC_LALT, MO(2), KC_SPC, KC_SPC, MO(3), MO(1), KC_LEFT, KC_DOWN, KC_RGHT
)
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_MS_WH_UP, KC_MS_WH_DOWN) },
[1] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[2] = { ENCODER_CCW_CW(KC_UP, KC_DOWN) },
[3] = { ENCODER_CCW_CW(KC_LEFT, KC_RGHT) },
[4] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN) },
[5] = { ENCODER_CCW_CW(KC_HOME, KC_END) }
};
#endif

View File

@ -0,0 +1,27 @@
/* 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 VIAL_KEYBOARD_UID {0xDE, 0x2A, 0x1B, 0x94, 0x07, 0x40, 0x6A, 0xD5}
#define VIAL_TAP_DANCE_ENTRIES 32
#define VIAL_COMBO_ENTRIES 32
#define DYNAMIC_KEYMAP_LAYER_COUNT 8
#define VIAL_UNLOCK_COMBO_ROWS { 0, 1 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 1 }

View File

@ -0,0 +1,34 @@
/* 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
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
KC_HOME, KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_DEL,
KC_END, KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, KC_INS,
KC_PGUP, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP,
KC_PGDN, KC_LCTL, KC_LGUI, KC_LALT, MO(2), KC_SPC, KC_SPC, MO(3), MO(1), KC_LEFT, KC_DOWN, KC_RGHT
)
};
#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_MS_WH_UP, KC_MS_WH_DOWN),
ENCODER_CCW_CW(KC_VOLD, KC_VOLU),
ENCODER_CCW_CW(KC_UP, KC_DOWN),
ENCODER_CCW_CW(KC_LEFT, KC_RGHT),
ENCODER_CCW_CW(KC_PGUP, KC_PGDN),
ENCODER_CCW_CW(KC_HOME, KC_END) }
};
#endif

View File

@ -0,0 +1,5 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
ENCODER_MAP_ENABLE = yes
VIALRGB_ENABLE = yes

View File

@ -0,0 +1,249 @@
{
"matrix": {
"rows": 8,
"cols": 7
},
"lighting": "vialrgb",
"layouts": {
"labels":[
"Left 3u bar",
"Left Encoder 1",
"Left Encoder 2",
"Left Encoder 3",
"Left Encoder 4",
"Right Encoder 1",
"Right Encoder 2",
"Right 3u Bar"
],
"keymap": [
[
{
"d": true
},
"0,0\n\n\n1,0\n\n\n\n\n\ne",
{
"d": true
},
"0,1\n\n\n1,0\n\n\n\n\n\ne",
{
"x": 0.25
},
"0,6",
{
"x": 0.25
},
"0,5",
"0,4",
"0,3",
"0,2",
"0,1",
"0,0",
{
"x": 2
},
"4,0",
"4,1",
"4,2",
"4,3",
"4,4",
{
"w": 1.75
},
"4,5",
{
"x": 0.25
},
"4,6",
{
"x": 0.25,
"d": true
},
"4,0\n\n\n5,0\n\n\n\n\n\ne",
{
"d": true
},
"4,1\n\n\n5,0\n\n\n\n\n\ne"
],
[
{
"d": true
},
"1,0\n\n\n2,0\n\n\n\n\n\ne",
{
"d": true
},
"1,1\n\n\n2,0\n\n\n\n\n\ne",
{
"x": 0.25
},
"1,6",
{
"x": 0.25,
"w": 1.25
},
"1,5",
"1,4",
"1,3",
"1,2",
"1,1",
"1,0",
{
"x": 2
},
"5,0",
"5,1",
"5,2",
"5,3",
"5,4",
{
"w": 1.5
},
"5,5",
{
"x": 0.25
},
"5,6",
{
"x": 0.25,
"d": true
},
"5,0\n\n\n6,0\n\n\n\n\n\ne",
{
"d": true
},
"5,1\n\n\n6,0\n\n\n\n\n\ne"
],
[
{
"d": true
},
"2,0\n\n\n3,0\n\n\n\n\n\ne",
{
"d": true
},
"2,1\n\n\n3,0\n\n\n\n\n\ne",
{
"x": 0.25
},
"2,6",
{
"x": 0.25,
"w": 1.75
},
"2,5",
"2,4",
"2,3",
"2,2",
"2,1",
"2,0",
{
"x": 2
},
"6,0",
"6,1",
"6,2",
"6,3",
"6,4",
"6,5",
{
"x": 1.5
},
"4,0\n\n\n5,1\n\n\n\n\n\ne",
"4,1\n\n\n5,1\n\n\n\n\n\ne"
],
[
{
"d": true
},
"3,0\n\n\n4,0\n\n\n\n\n\ne",
{
"d": true
},
"3,1\n\n\n4,0\n\n\n\n\n\ne",
{
"x": 0.25
},
"3,6",
{
"x": 0.25,
"w": 1.25
},
"3,5",
"3,4",
{
"w": 1.25
},
"3,3",
{
"x": 7.75,
"w": 1.5
},
"7,3",
"7,4",
"7,5",
"7,6",
{
"x": 0.5
},
"5,0\n\n\n6,1\n\n\n\n\n\ne",
"5,1\n\n\n6,1\n\n\n\n\n\ne"
],
[
{
"y": -0.75,
"x": 7.5,
"w": 1.25
},
"3,2\n\n\n0,0",
{
"w": 1.75
},
"3,0\n\n\n0,0",
{
"x": 0.75,
"w": 1.75
},
"7,0\n\n\n7,0",
{
"w": 1.25
},
"7,1\n\n\n7,0"
],
[
{
"y": -0.25
},
"0,0\n\n\n1,1\n\n\n\n\n\ne",
"0,1\n\n\n1,1\n\n\n\n\n\ne"
],
[
{
"y": -0.75,
"x": 7.5,
"w": 3
},
"3,0\n\n\n0,1",
{
"x": 0.75,
"w": 3
},
"7,0\n\n\n7,1"
],
[
{
"y": -0.25
},
"1,0\n\n\n2,1\n\n\n\n\n\ne",
"1,1\n\n\n2,1\n\n\n\n\n\ne"
],
[
"2,0\n\n\n3,1\n\n\n\n\n\ne",
"2,1\n\n\n3,1\n\n\n\n\n\ne"
],
[
"3,0\n\n\n4,1\n\n\n\n\n\ne",
"3,1\n\n\n4,1\n\n\n\n\n\ne"
]
]
}
}

View File

@ -0,0 +1,23 @@
# Splinter
![Splinter](https://i.imgur.com/PylZQ3S.png)
*A split Minivan-esque board with encoder/macro columns and dropped spacebars envisioned by [Leviathan](https://leviathanmech.com) with a PCB by [Kiser Designs](https://kiserdesigns.com)*
* Keyboard Maintainer: [NCKiser](https://github.com/NCKiser)
* Hardware Supported: Splinter PCB, rp2040
* Hardware Availability: www.kiserdesigns.com
Make example for this keyboard (after setting up your build environment):
make kiserdesigns/splinter:default
Flashing example for this keyboard:
make kiserdesigns/splinter: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 ('T' on the left, 'Y' on the right) and plug in the keyboard
* **Physical reset button**: Briefly double-tap the RESET button on the back of the PCB, or hold BOOT then tap RESET
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available

View File

@ -0,0 +1 @@
SERIAL_DRIVER = vendor