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

Add Splinter #710

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 15 additions & 0 deletions keyboards/kiserdesigns/splinter/config.h
Original file line number Diff line number Diff line change
@@ -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
137 changes: 137 additions & 0 deletions keyboards/kiserdesigns/splinter/info.json
Original file line number Diff line number Diff line change
@@ -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 }
]
}
}
}
34 changes: 34 additions & 0 deletions keyboards/kiserdesigns/splinter/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions keyboards/kiserdesigns/splinter/keymaps/vial/config.h
Original file line number Diff line number Diff line change
@@ -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 }


34 changes: 34 additions & 0 deletions keyboards/kiserdesigns/splinter/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions keyboards/kiserdesigns/splinter/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
ENCODER_MAP_ENABLE = yes

VIALRGB_ENABLE = yes
Loading
Loading