1
0
Fork 0
This commit is contained in:
Kyle Brown 2023-08-22 21:53:13 -07:00
parent 356e70fdd1
commit 221ec341e0
17 changed files with 388 additions and 0 deletions

View file

@ -0,0 +1,26 @@
/*
Copyright 2021 S'mores
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
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not 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

View file

@ -0,0 +1,23 @@
{
"manufacturer": "Smores",
"maintainer": "kdb424",
"product": "Osprette"
"diode_direction": "ROW2COL",
"features": {
"bootmagic": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"oled": true,
},
"usb": {
"device_version": "1.0.0",
"pid": "0xBEEE",
"vid": "0x5050"
},
"matrix_pins": {
"cols": ["B3", "B1", "F7", "F6", "F5", "D0", "D4", "C6", "D7", "E6"],
"rows": ["B2", "B6", "B4", "B5"]
},
"processor": "atmega32u4",
}

View file

@ -0,0 +1,4 @@
#pragma once
// Pick good defaults for enabling homerow modifiers
#define TAPPING_TERM 200

View file

@ -0,0 +1,39 @@
#include QMK_KEYBOARD_H
enum layers {
_QWERTY,
_LOWER,
_RAISE
};
#define KC_CTSC RCTL_T(KC_SCLN)
#define KC_CTLA LCTL_T(KC_A)
#define KC_LSHZ LSFT_T(KC_Z)
#define KC_RLSH RSFT_T(KC_SLSH)
#define KC_SPM2 LT(2, KC_SPC)
#define KC_BSM1 LT(1, KC_BSPC)
#define KC_GUTA GUI_T(KC_TAB)
#define KC_CLGV CTL_T(KC_GRV)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT( /* QWERTY */
KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O,
KC_Q, KC_CTLA, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_P,
KC_LSHZ, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RLSH,
KC_CLGV, KC_BSM1, KC_SPM2, KC_GUTA
),
[_LOWER] = LAYOUT( /* [> LOWER <] */
KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
KC_1, QK_GESC, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, KC_0,
KC_TRNS, KC_TRNS, KC_TRNS, KC_BTN1, KC_BTN2, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_ENT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),
[_RAISE] = LAYOUT( /* [> RAISE <] */
KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9,
KC_F1, KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_PIPE, KC_F10,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UNDS, KC_PLUS, KC_TRNS, KC_TRNS, QK_BOOT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
)
};

View file

@ -0,0 +1,2 @@
#pragma once

View file

@ -0,0 +1,40 @@
#include QMK_KEYBOARD_H
enum layers {
_DVORAK,
_LOWER,
_RAISE
};
#define KC_CTSC RCTL_T(KC_SCLN)
#define KC_CTLA LCTL_T(KC_A)
#define KC_LSHZ LSFT_T(KC_Z)
#define KC_RLSH RSFT_T(KC_SLSH)
#define KC_SPM2 LT(2, KC_SPC)
#define KC_BSM1 LT(1, KC_BSPC)
#define KC_GUTA GUI_T(KC_TAB)
#define KC_CLGV CTL_T(KC_GRV)
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_DVORAK] = LAYOUT( /* DVORAK */
KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R,
KC_QUOT, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_L,
KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z,
KC_CLGV, KC_BSM1, KC_SPM2, KC_GUTA
),
[_LOWER] = LAYOUT( /* [> LOWER <] */
KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
KC_1, QK_GESC, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, KC_0,
KC_TRNS, KC_TRNS, KC_TRNS, KC_BTN1, KC_BTN2, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_ENT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),
[_RAISE] = LAYOUT( /* [> RAISE <] */
KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9,
KC_F1, KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_PIPE, KC_F10,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UNDS, KC_PLUS, KC_TRNS, KC_TRNS, QK_BOOT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
)
};

View file

@ -0,0 +1 @@
CONVERT_TO=blok

View file

@ -0,0 +1,6 @@
#define TAPPING_TERM 180
#define COMBO_COUNT 7
#define COMBO_TERM 30
#define ONESHOT_TAP_TOGGLE 0
#define ONESHOT_TIMEOUT 700
#define IGNORE_MOD_TAP_INTERRUPT

View file

@ -0,0 +1,79 @@
/* Copyright 2021 Sam Mohr <sam.mohr@protonmail.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/>.
*/
#include QMK_KEYBOARD_H
enum layers {
_MAIN = 0,
_SYM,
_NAV
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_MAIN] = LAYOUT(
KC_F, KC_M, KC_P, KC_V, KC_SCLN, KC_DOT, KC_SLSH, KC_BSLS,
KC_W, SFT_T(KC_R), ALT_T(KC_S), CTL_T(KC_N), GUI_T(KC_T), KC_G, KC_COMMA, GUI_T(KC_A), CTL_T(KC_E), ALT_T(KC_I), SFT_T(KC_H), KC_QUOT,
KC_X, KC_C, KC_L, LT(_SYM, KC_D), KC_B, KC_MINUS, LT(_SYM, KC_U), KC_O, KC_Y, KC_K,
KC_ENT, LT(_NAV, KC_SPC), OSM(MOD_RSFT), KC_BSPC
),
[_SYM] = LAYOUT(
KC_7, KC_8, KC_9, S(KC_8), S(KC_GRV), S(KC_LBRC), S(KC_RBRC), S(KC_3),
S(KC_SCLN), KC_DOT, KC_1, KC_2, KC_3, KC_EQL, S(KC_COMM), S(KC_9), S(KC_0), S(KC_DOT), S(KC_7), S(KC_6),
KC_COMMA, KC_4, KC_5, KC_6, S(KC_EQL), S(KC_4), KC_LBRC, KC_RBRC, S(KC_2), S(KC_5),
KC_TRNS, KC_0, KC_TRNS, KC_TRNS
),
[_NAV] = LAYOUT(
KC_VOLD, KC_VOLU, KC_MPRV, KC_MNXT, KC_F10, KC_F7, KC_F8, KC_F9,
KC_MPLY, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, C(KC_TAB), KC_F11, KC_F1, KC_F2, KC_F3, KC_BRID, KC_BRIU,
KC_HOME, KC_PGDN, KC_PGUP, KC_END, C(S(KC_TAB)), KC_F12, KC_F4, KC_F5, KC_F6, KC_PSCR,
KC_NO, KC_NO, KC_TRNS, KC_DEL
),
};
enum combos {
FM_Z,
MP_Q,
MV_J,
FB_GRAVE,
CL_ESCAPE,
LD_TAB,
};
const uint16_t PROGMEM z_combo[] = {KC_F, KC_M, COMBO_END};
const uint16_t PROGMEM q_combo[] = {KC_M, KC_P, COMBO_END};
const uint16_t PROGMEM j_combo[] = {KC_M, KC_V, COMBO_END};
const uint16_t PROGMEM grave_combo[] = {KC_SLSH, KC_BSLS, COMBO_END};
const uint16_t PROGMEM escape_combo[] = {KC_C, KC_L, COMBO_END};
const uint16_t PROGMEM tab_combo[] = {KC_L, LT(_SYM, KC_D), COMBO_END};
combo_t key_combos[COMBO_COUNT] = {
[FM_Z] = COMBO(z_combo, KC_Z),
[MP_Q] = COMBO(q_combo, KC_Q),
[MV_J] = COMBO(j_combo, KC_J),
[FB_GRAVE] = COMBO(grave_combo, KC_GRAVE),
[CL_ESCAPE] = COMBO(escape_combo, KC_ESC),
[LD_TAB] = COMBO(tab_combo, KC_TAB),
};
const key_override_t exclamation_mark_override = ko_make_basic(MOD_MASK_SHIFT, KC_DOT, S(KC_1));
const key_override_t pipe_override = ko_make_basic(MOD_MASK_SHIFT, KC_COMMA, S(KC_BSLS));
const key_override_t **key_overrides = (const key_override_t *[]){
&exclamation_mark_override,
NULL
};

View file

@ -0,0 +1,3 @@
COMBO_ENABLE = yes
KEY_OVERRIDE_ENABLE = yes
AUDIO_KEYS = yes

View file

@ -0,0 +1,5 @@
#pragma once
// Pick good defaults for enabling homerow modifiers
#define TAPPING_TERM 200
#define IGNORE_MOD_TAP_INTERRUPT

View file

@ -0,0 +1,39 @@
#include QMK_KEYBOARD_H
enum layers {
_QWERTY,
_LOWER,
_RAISE
};
#define KC_CTSC RCTL_T(KC_SCLN)
#define KC_CTLA LCTL_T(KC_A)
#define KC_LSHZ LSFT_T(KC_Z)
#define KC_RLSH RSFT_T(KC_SLSH)
#define KC_SPM2 LT(2, KC_SPC)
#define KC_BSM1 LT(1, KC_BSPC)
#define KC_GUTA GUI_T(KC_TAB)
#define KC_CLES CTL_T(KC_ESC)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT( /* QWERTY */
KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O,
KC_Q, KC_CTLA, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_P,
KC_LSHZ, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RLSH,
KC_CLES, KC_BSM1, KC_SPM2, KC_GUTA
),
[_LOWER] = LAYOUT( /* [> LOWER <] */
KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9,
KC_1, KC_GESC, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, KC_0,
KC_TRNS, KC_TRNS, KC_GRV, KC_BTN1, KC_BTN2, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_ENT,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),
[_RAISE] = LAYOUT( /* [> RAISE <] */
KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9,
KC_F1, KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_PIPE, KC_F10,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_UNDS, KC_PLUS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
)
};

View file

@ -0,0 +1,56 @@
{
"name": "Osprette",
"vendorId": "0x5050",
"productId": "0xBEEE",
"lighting": "none",
"matrix": {
"rows": 4,
"cols": 10
},
"layouts": {
"keymap": [
[
"0,1",
"0,2",
"0,3",
"0,4",
"0,5",
"0,6",
"0,7",
"0,8"
],
[
"0,0",
"1,0",
"1,1",
"1,2",
"1,3",
"1,4",
"1,5",
"1,6",
"1,7",
"1,8",
"1,9",
"0,9"
],
[
"2,0",
"2,1",
"2,2",
"2,3",
"2,4",
"2,5",
"2,6",
"2,7",
"2,8",
"2,9"
],
[
"3,0",
"3,1",
"3,2",
"3,3"
]
]
}
}

View file

@ -0,0 +1,4 @@
VIA_ENABLE = yes # Enable VIA
LTO_ENABLE = yes # Enable Link-Time Optimization
MOUSEKEY_ENABLE = no # Mouse keys
BOOTMAGIC_ENABLE = lite

View file

@ -0,0 +1,16 @@
/* Copyright 2021 S'mores
*
* 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 "osprette.h"

View file

@ -0,0 +1,39 @@
/* Copyright 2021 S'mores
*
* 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 "quantum.h"
/* This a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT( \
K01, K02, K03, K04, K05, K06, K07, K08, \
K00, K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K09, \
K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, \
K30, K31, K32, K33 \
) \
{ \
{ K00, K01, K02, K03, K04, K05, K06, K07, K08, K09 }, \
{ K10, K11, K12, K13, K14, K15, K16, K17, K18, K19 }, \
{ K20, K21, K22, K23, K24, K25, K26, K27, K28, K29 }, \
{ KC_NO, KC_NO, KC_NO, K30, K31, K32, K33, KC_NO, KC_NO, KC_NO } \
}

View file

@ -0,0 +1,6 @@
# MCU name
MCU = atmega32u4
# Bootloader selection
BOOTLOADER = caterina