added osprette
This commit is contained in:
parent
579017e250
commit
b0d816ae98
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# TODO: consolidate all the build files into one
|
||||
|
||||
make xoiviox/osprette:sadekbaroudi ; cp .build/xoiviox_osprette_sadekbaroudi* /mnt/g/My\ Drive/qmk-keyboards/osprette/ ;
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
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 "config_common.h"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x5050
|
||||
#define PRODUCT_ID 0xBEEE
|
||||
#define DEVICE_VER 0x0001
|
||||
#define MANUFACTURER smores
|
||||
#define PRODUCT Osprette
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 4
|
||||
#define MATRIX_COLS 10
|
||||
|
||||
/*
|
||||
* Keyboard Matrix Assignments
|
||||
*
|
||||
* Change this to how you wired your keyboard
|
||||
* COLS: AVR pins used for columns, left to right
|
||||
* ROWS: AVR pins used for rows, top to bottom
|
||||
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
|
||||
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
|
||||
*
|
||||
*/
|
||||
#define MATRIX_ROW_PINS \
|
||||
{ B2, B6, B4, B5 }
|
||||
#define MATRIX_COL_PINS \
|
||||
{ B3, B1, F7, F6, F5, D0, D4, C6, D7, E6 }
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW, ROW2COL*/
|
||||
#define DIODE_DIRECTION ROW2COL
|
||||
|
||||
/* 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
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
// Pick good defaults for enabling homerow modifiers
|
||||
#define TAPPING_TERM 200
|
||||
#define IGNORE_MOD_TAP_INTERRUPT
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers {
|
||||
_QWERTY,
|
||||
_LOWER,
|
||||
_RAISE
|
||||
};
|
||||
|
||||
enum tap_dances {
|
||||
TD_Q_ESC
|
||||
};
|
||||
|
||||
#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, 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_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, RESET,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
||||
)
|
||||
};
|
||||
|
||||
// Tap Dance Definitions
|
||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||
// Tap once for Q, twice for ESC
|
||||
[TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC)
|
||||
};
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BOOTMAGIC_ENABLE = lite # Enable Bootmagic Lite
|
||||
TAP_DANCE_ENABLE = yes
|
||||
|
|
@ -0,0 +1,108 @@
|
|||
/* Copyright 2021 Sadek Baroudi
|
||||
*
|
||||
* 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 "sadekbaroudi.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
/*
|
||||
* The `LAYOUT_osprette_base` macro is a template to allow the use of identical
|
||||
* modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
|
||||
* that there is no need to set them up for each layout, and modify all of
|
||||
* them if I want to change them. This helps to keep consistency and ease
|
||||
* of use. K## is a placeholder to pass through the individual keycodes
|
||||
*/
|
||||
|
||||
// clang-format off
|
||||
#define LAYOUT_osprette_base( \
|
||||
K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
|
||||
K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
|
||||
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
|
||||
) \
|
||||
LAYOUT_wrapper( \
|
||||
K02, K03, LT(_FUNCTION, K04), K05, K06, LT(_FUNCTION, K07), LT(_WINNAV,K08), K09, \
|
||||
K01, LCTL_T(K11), LGUI_T(K12), LALT_T(K13), LSFT_T(K14), K15, LT(_MOUSE, K16), RSFT_T(K17), RALT_T(K18), RGUI_T(K19), RCTL_T(K1A), K0A, \
|
||||
K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, \
|
||||
LT(_FUNCTION,KC_TAB), LT(_NAVIGATION,KC_ENT), LT(_SYMBOLS,KC_SPACE), LT(_MEDIA,KC_QUOT) \
|
||||
)
|
||||
|
||||
/* Re-pass though to allow templates to be used */
|
||||
#define LAYOUT_osprette_base_wrapper(...) LAYOUT_osprette_base(__VA_ARGS__)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_QWERTY] = LAYOUT_osprette_base_wrapper(
|
||||
_________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
|
||||
_________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
|
||||
_________________QWERTY_L3_________________, _________________QWERTY_R3_________________
|
||||
),
|
||||
|
||||
[_COLEMAK] = LAYOUT_osprette_base_wrapper(
|
||||
______________COLEMAK_MOD_DH_L1____________, ______________COLEMAK_MOD_DH_R1____________,
|
||||
______________COLEMAK_MOD_DH_L2____________, ______________COLEMAK_MOD_DH_R2____________,
|
||||
______________COLEMAK_MOD_DH_L3____________, ______________COLEMAK_MOD_DH_R3____________
|
||||
),
|
||||
|
||||
[_ISRT] = LAYOUT_osprette_base_wrapper(
|
||||
_________________ISRT_L1________________, _________________ISRT_R1________________,
|
||||
_________________ISRT_L2________________, _________________ISRT_R2________________,
|
||||
_________________ISRT_L3________________, _________________ISRT_R3________________
|
||||
),
|
||||
|
||||
[_NAVIGATION] = LAYOUT_wrapper(
|
||||
__META_NAV_1_K2__, __META_NAV_1_K3__, __META_NAV_1_K4__, __META_NAV_1_K5__, __NUMPAD_1_K1__, __NUMPAD_1_K2__, __NUMPAD_1_K3__, __NUMPAD_1_K4__,
|
||||
__META_NAV_1_K1__, ________________NAVIGATION_2_______________, _________________NUMPAD_2__________________, __NUMPAD_1_K5__,
|
||||
________________NAVIGATION_3_______________, _________________NUMPAD_3__________________,
|
||||
_______, _______, KC_SPACE, KC_DOT
|
||||
),
|
||||
|
||||
[_SYMBOLS] = LAYOUT_wrapper(
|
||||
__SYMBOLS_L1_K2__, __SYMBOLS_L1_K3__, __SYMBOLS_L1_K4__, __SYMBOLS_L1_K5__, __SYMBOLS_R1_K1__, __SYMBOLS_R1_K2__, __SYMBOLS_R1_K3__, __SYMBOLS_R1_K4__,
|
||||
__SYMBOLS_L1_K1__, ________________SYMBOLS_L2_________________, ________________SYMBOLS_R2_________________, __SYMBOLS_R1_K5__,
|
||||
________________SYMBOLS_L3_________________, ________________SYMBOLS_R3_________________,
|
||||
KC_DEL, KC_BSPC, _______, _______
|
||||
),
|
||||
|
||||
[_FUNCTION] = LAYOUT_wrapper(
|
||||
__SHIFTNAV_1_K2__, __SHIFTNAV_1_K3__, __SHIFTNAV_1_K4__, __SHIFTNAV_1_K5__, __FUNCION_1_K1__, __FUNCION_1_K2__, __FUNCION_1_K3__, __FUNCION_1_K4__,
|
||||
__SHIFTNAV_1_K2__, ________________SHIFTNAV_2_________________, ________________FUNCTION_2_________________, __FUNCION_1_K5__,
|
||||
________________SHIFTNAV_3_________________, ________________FUNCTION_3_________________,
|
||||
_______, _______, KC_SPACE, N_DEL_LINE
|
||||
),
|
||||
|
||||
[_MEDIA] = LAYOUT_wrapper(
|
||||
__RGB_1_K2__, __RGB_1_K3__, __RGB_1_K4__, __RGB_1_K5__, __MACROS_1_K1__, __MACROS_1_K2__, __MACROS_1_K3__, __MACROS_1_K4__,
|
||||
__RGB_1_K1__, ___________________RGB_2___________________, _________________MACROS_2__________________, __MACROS_1_K4__,
|
||||
___________________RGB_3___________________, _________________MACROS_3__________________,
|
||||
_______, _______, _______, _______
|
||||
),
|
||||
|
||||
[_MOUSE] = LAYOUT_wrapper(
|
||||
__MOUSE_1_K2__, __MOUSE_1_K3__, __MOUSE_1_K4__, __MOUSE_1_K5__, _______, _______, _______, _______,
|
||||
__MOUSE_1_K1__, __________________MOUSE_2__________________, _______, _______, _______, _______, _______, _______,
|
||||
__________________MOUSE_3__________________, ___________________BLANK___________________,
|
||||
KC_BTN2, KC_BTN1, KC_BTN2, KC_BTN3
|
||||
),
|
||||
|
||||
[_WINNAV] = LAYOUT_wrapper(
|
||||
__WIN_NAV_1_K2__, __WIN_NAV_1_K3__, __WIN_NAV_1_K4__, __WIN_NAV_1_K5__, _______, _______, _______, _______,
|
||||
__WIN_NAV_1_K2__, __________________WIN_NAV_2________________, ___________________BLANK___________________, _______,
|
||||
___________________BLANK___________________, ___________________BLANK___________________,
|
||||
_______, _______, _______, _______
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#define TAPPING_TERM 150
|
||||
#define COMBO_COUNT 6
|
||||
#define COMBO_TERM 70
|
||||
#define ONESHOT_TAP_TOGGLE 0
|
||||
#define ONESHOT_TIMEOUT 1000
|
||||
|
|
@ -0,0 +1,118 @@
|
|||
/* Copyright 2021 Sam Mohr <sam@mohr.codes>
|
||||
*
|
||||
* 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
|
||||
#include "quantum.h"
|
||||
|
||||
enum layers {
|
||||
_MAIN = 0,
|
||||
_SYM_LMOD,
|
||||
_NUM_RMOD,
|
||||
_NAV,
|
||||
_FN
|
||||
};
|
||||
|
||||
// layer controls
|
||||
#define LMOD OSL(_SYM_LMOD)
|
||||
#define RMOD OSL(_NUM_RMOD)
|
||||
#define FN OSL(_FN)
|
||||
#define SPC_NAV LT(_NAV, KC_SPC)
|
||||
|
||||
// one-shot mods
|
||||
#define LSFT_ OSM(MOD_LSFT)
|
||||
#define RSFT_ OSM(MOD_RSFT)
|
||||
#define LALT_ OSM(MOD_LALT)
|
||||
#define RALT_ OSM(MOD_RALT)
|
||||
#define LCTL_ OSM(MOD_LCTL)
|
||||
#define RCTL_ OSM(MOD_RCTL)
|
||||
#define LGUI_ OSM(MOD_LGUI)
|
||||
#define RGUI_ OSM(MOD_RGUI)
|
||||
#define RSG_ OSM(MOD_RSFT | MOD_RGUI)
|
||||
#define RAG_ OSM(MOD_RALT | MOD_RGUI)
|
||||
#define RCA_ OSM(MOD_RCTL | MOD_RALT)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_MAIN] = LAYOUT(
|
||||
KC_P, KC_L, KC_C, KC_F, KC_SLSH, KC_DOT, KC_QUOT, KC_SCLN,
|
||||
KC_V, KC_R, KC_N, KC_T, KC_S, KC_D, KC_COMM, KC_A, KC_E, KC_I, KC_H, KC_Q,
|
||||
KC_Z, KC_B, KC_M, KC_G, KC_W, KC_MINUS, KC_U, KC_O, KC_Y, KC_K,
|
||||
LMOD, SPC_NAV, RSFT_, RMOD
|
||||
),
|
||||
|
||||
[_SYM_LMOD] = LAYOUT(
|
||||
KC_NO, C(S(KC_TAB)), C(KC_TAB), KC_NO, S(KC_LBRC), KC_DEL, S(KC_RBRC), S(KC_GRV),
|
||||
KC_CAPS, LSFT_, LALT_, LCTL_, LGUI_, KC_PSCR, S(KC_9), KC_BSPC, S(KC_0), S(KC_COMM), S(KC_3), S(KC_2),
|
||||
KC_NO, C(KC_W), C(KC_Q), A(KC_LEFT), A(KC_RIGHT), KC_LBRC, KC_ENTER, KC_RBRC, S(KC_DOT), KC_BSLS,
|
||||
KC_NO, KC_NO, KC_TRNS, FN
|
||||
),
|
||||
|
||||
[_NUM_RMOD] = LAYOUT(
|
||||
KC_7, KC_8, KC_9, S(KC_8), KC_NO, RSG_, KC_NO, KC_NO,
|
||||
S(KC_BSLS), S(KC_7), KC_1, KC_2, KC_3, KC_EQL, KC_NO, RGUI_, RCTL_, RALT_, RSFT_, KC_NO,
|
||||
S(KC_4), KC_4, KC_5, KC_6, S(KC_EQL), KC_NO, C(KC_C), C(KC_D), C(KC_V), KC_NO,
|
||||
KC_DOT, KC_0, KC_NO, KC_NO
|
||||
),
|
||||
|
||||
[_NAV] = LAYOUT(
|
||||
KC_VOLD, KC_VOLU, KC_MNXT, KC_MUTE, RALT_, G(KC_D), G(S(KC_D)), G(KC_Q),
|
||||
KC_MPRV, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_MPLY, RAG_, G(KC_LEFT), G(KC_DOWN), G(KC_UP), G(KC_RIGHT), KC_NO,
|
||||
KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_MSTP, RCTL_, G(KC_ENTER), G(KC_O), G(KC_N), KC_NO,
|
||||
KC_NO, KC_NO, KC_TRNS, RCA_
|
||||
),
|
||||
|
||||
[_FN] = LAYOUT(
|
||||
KC_F7, KC_F8, KC_F9, KC_F10, KC_NO, KC_BRID, KC_BRIU, KC_NO,
|
||||
KC_NO, KC_NO, KC_F1, KC_F2, KC_F3, KC_F11, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_F4, KC_F5, KC_F6, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
|
||||
KC_NO, KC_NO, KC_TRNS, KC_NO
|
||||
),
|
||||
};
|
||||
|
||||
enum combos {
|
||||
PC_J,
|
||||
BG_X,
|
||||
BM_ESCAPE,
|
||||
MG_TAB,
|
||||
DQ_GRAVE,
|
||||
QS_PERCENT,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM j_combo[] = {KC_P, KC_C, COMBO_END};
|
||||
const uint16_t PROGMEM x_combo[] = {KC_B, KC_G, COMBO_END};
|
||||
const uint16_t PROGMEM escape_combo[] = {KC_B, KC_M, COMBO_END};
|
||||
const uint16_t PROGMEM tab_combo[] = {KC_M, KC_G, COMBO_END};
|
||||
const uint16_t PROGMEM grave_combo[] = {KC_DOT, KC_QUOT, COMBO_END};
|
||||
const uint16_t PROGMEM percent_combo[] = {KC_QUOT, KC_SCLN, COMBO_END};
|
||||
|
||||
combo_t key_combos[COMBO_COUNT] = {
|
||||
[PC_J] = COMBO(j_combo, KC_J),
|
||||
[BG_X] = COMBO(x_combo, KC_X),
|
||||
[BM_ESCAPE] = COMBO(escape_combo, KC_ESC),
|
||||
[MG_TAB] = COMBO(tab_combo, S(KC_TAB)),
|
||||
[DQ_GRAVE] = COMBO(grave_combo, KC_GRAVE),
|
||||
[QS_PERCENT] = COMBO(percent_combo, S(KC_5)),
|
||||
};
|
||||
|
||||
const key_override_t question_mark_override = ko_make_basic(MOD_MASK_SHIFT, KC_DOT, S(KC_SLSH));
|
||||
const key_override_t exclamation_mark_override = ko_make_basic(MOD_MASK_SHIFT, KC_COMM, S(KC_1));
|
||||
const key_override_t forward_slash_override = ko_make_basic(MOD_MASK_SHIFT, KC_SLSH, S(KC_6));
|
||||
|
||||
const key_override_t **key_overrides = (const key_override_t *[]){
|
||||
&question_mark_override,
|
||||
&exclamation_mark_override,
|
||||
&forward_slash_override,
|
||||
NULL
|
||||
};
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
COMBO_ENABLE = yes
|
||||
KEY_OVERRIDE_ENABLE = yes
|
||||
AUDIO_KEYS = yes
|
||||
|
|
@ -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"
|
||||
|
|
@ -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 } \
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
BOOTLOADER = caterina
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
|
||||
MOUSEKEY_ENABLE = no # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = yes # Console for debug
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = no # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
Loading…
Reference in New Issue