@ -0,0 +1,46 @@ | |||
/* | |||
Copyright 2021 Marius Gavrilescu <marius@ieval.ro> | |||
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 3 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" | |||
#define VENDOR_ID 0xFEED | |||
#define PRODUCT_ID 0x5474 | |||
#define DEVICE_VER 0x0001 | |||
#define MANUFACTURER TypeTheory | |||
#define PRODUCT Keyboard | |||
#define MATRIX_ROWS 10 | |||
#define MATRIX_COLS 8 | |||
#define MATRIX_COL_PINS { B3, B2, B6, F0, F1, C7, B7, D5 } | |||
#define MATRIX_COL_PINS_RIGHT { C7, F1, F0, B6, B2, B3, B7, D5 } | |||
#define MATRIX_ROW_PINS { F4, F5, F6, F7, B1 } | |||
#define SOFT_SERIAL_PIN D1 | |||
#define DIODE_DIRECTION ROW2COL | |||
#define DEBOUNCE 5 | |||
/* Make mod-tap more reasonable */ | |||
#define PERMISSIVE_HOLD | |||
#define IGNORE_MOD_TAP_INTERRUPT | |||
#define TAPPING_FORCE_HOLD | |||
#define USE_SERIAL | |||
#define EE_HANDS |
@ -0,0 +1,76 @@ | |||
{ | |||
"keyboard_name": "TypeTheory Keyboard", | |||
"url": "https://typetheory.co.uk", | |||
"maintainer": "mgvx", | |||
"width": 17, | |||
"height": 8, | |||
"layouts": { | |||
"LAYOUT": { | |||
"layout": [ | |||
{"label":"L00", "x":0, "y":0}, | |||
{"label":"L01", "x":1, "y":0}, | |||
{"label":"L02", "x":2, "y":0}, | |||
{"label":"L03", "x":3, "y":0}, | |||
{"label":"L04", "x":4, "y":0}, | |||
{"label":"L05", "x":5, "y":0}, | |||
{"label":"R00", "x":11, "y":0}, | |||
{"label":"R01", "x":12, "y":0}, | |||
{"label":"R02", "x":13, "y":0}, | |||
{"label":"R03", "x":14, "y":0}, | |||
{"label":"R04", "x":15, "y":0}, | |||
{"label":"R05", "x":16, "y":0}, | |||
{"label":"L10", "x":0, "y":1}, | |||
{"label":"L11", "x":1, "y":1}, | |||
{"label":"L12", "x":2, "y":1}, | |||
{"label":"L13", "x":3, "y":1}, | |||
{"label":"L14", "x":4, "y":1}, | |||
{"label":"L15", "x":5, "y":1}, | |||
{"label":"R10", "x":11, "y":1}, | |||
{"label":"R11", "x":12, "y":1}, | |||
{"label":"R12", "x":13, "y":1}, | |||
{"label":"R13", "x":14, "y":1}, | |||
{"label":"R14", "x":15, "y":1}, | |||
{"label":"R15", "x":16, "y":1}, | |||
{"label":"L20", "x":0, "y":2}, | |||
{"label":"L21", "x":1, "y":2}, | |||
{"label":"L22", "x":2, "y":2}, | |||
{"label":"L23", "x":3, "y":2}, | |||
{"label":"L24", "x":4, "y":2}, | |||
{"label":"L25", "x":5, "y":2}, | |||
{"label":"R20", "x":11, "y":2}, | |||
{"label":"R21", "x":12, "y":2}, | |||
{"label":"R22", "x":13, "y":2}, | |||
{"label":"R23", "x":14, "y":2}, | |||
{"label":"R24", "x":15, "y":2}, | |||
{"label":"R25", "x":16, "y":2}, | |||
{"label":"L30", "x":0, "y":3}, | |||
{"label":"L31", "x":1, "y":3}, | |||
{"label":"L32", "x":2, "y":3}, | |||
{"label":"L33", "x":3, "y":3}, | |||
{"label":"L34", "x":4, "y":3}, | |||
{"label":"L35", "x":5, "y":3}, | |||
{"label":"R30", "x":11, "y":3}, | |||
{"label":"R31", "x":12, "y":3}, | |||
{"label":"R32", "x":13, "y":3}, | |||
{"label":"R33", "x":14, "y":3}, | |||
{"label":"R34", "x":15, "y":3}, | |||
{"label":"R35", "x":16, "y":3}, | |||
{"label":"L42", "x":2, "y":4}, | |||
{"label":"L43", "x":3, "y":4}, | |||
{"label":"R42", "x":13, "y":4}, | |||
{"label":"R43", "x":14, "y":4}, | |||
{"label":"L18", "x":4, "y":5}, | |||
{"label":"L29", "x":5, "y":5}, | |||
{"label":"L39", "x":6, "y":5}, | |||
{"label":"R39", "x":10, "y":5}, | |||
{"label":"R29", "x":11, "y":5}, | |||
{"label":"R18", "x":12, "y":5}, | |||
{"label":"L28", "x":6, "y":6}, | |||
{"label":"L38", "x":7, "y":6}, | |||
{"label":"R38", "x":9, "y":6}, | |||
{"label":"R28", "x":10, "y":6} | |||
] | |||
} | |||
} | |||
} |
@ -0,0 +1,55 @@ | |||
/* | |||
Copyright 2021 Marius Gavrilescu <marius@ieval.ro> | |||
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 3 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 | |||
#define LOWER MO(1) | |||
#define RAISE MO(2) | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
[0] = LAYOUT( | |||
KC_EQL , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, | |||
KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, | |||
KC_LCTL, KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_QUOT, | |||
KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT, | |||
KC_GRV , KC_NUHS, KC_LBRC, KC_RBRC, | |||
RAISE , KC_BSPC, KC_DEL , KC_LGUI, KC_SPC , LOWER , | |||
KC_LALT, KC_ESC , KC_RCTL, KC_ENT | |||
), | |||
[1] = LAYOUT( | |||
_______, _______, _______, _______, _______, _______, _______, _______, KC_PSLS, KC_PAST, KC_PMNS, _______, | |||
_______, _______, KC_UP , _______, _______, _______, _______, KC_P7 , KC_P8 , KC_P9 , KC_PPLS, _______, | |||
_______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, KC_P4 , KC_P5 , KC_P6 , KC_PENT, _______, | |||
_______, _______, _______, _______, _______, _______, _______, KC_P1 , KC_P2 , KC_P3 , KC_PEQL, _______, | |||
_______, _______, KC_P0 , KC_PDOT, | |||
_______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______ | |||
), | |||
[2] = LAYOUT( | |||
KC_F12 , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , | |||
_______, KC_BTN1, KC_MS_U, KC_BTN2, _______, _______, _______, _______, _______, _______, _______, _______, | |||
_______, KC_MS_L, KC_MS_D, KC_MS_R, KC_PGUP, KC_HOME, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, _______, _______, | |||
_______, KC_WH_L, KC_WH_U, KC_WH_R, KC_PGDN, KC_END , _______, _______, _______, _______, _______, RESET , | |||
KC_WH_D, KC_BTN3, _______, _______, | |||
_______, _______, _______, _______, _______, _______, | |||
_______, _______, _______, _______ | |||
), | |||
}; |
@ -0,0 +1,29 @@ | |||
TypeTheory Keyboard | |||
====== | |||
![Picture of TypeTheory Keyboard](https://typetheory.co.uk/thumb/front.jpg) | |||
The [TypeTheory Keyboard](https://typetheory.co.uk/) is a split ergonomic keyboard inspired by the [Dactyl-Manuform](https://github.com/tshort/dactyl-keyboard) and the Kinesis Advantage2. It uses two Puchi-C microcontrollers, with physical reset buttons. | |||
* Keyboard Maintainer: Marius Gavrilescu | |||
* Hardware Supported: TypeTheory Keyboard | |||
* Hardware Availability: https://typetheory.co.uk | |||
## Compiling and flashing the firmware | |||
> 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). | |||
Clone the `qmk_firmware` repository and run this command to compile the firmware with the default layout: | |||
make typetheory:default | |||
To flash a keyboard half, you must connect it to the computer and reset the microcontroller. To reset, you can either: | |||
1. Press the RESET key on the keyboard, this is RAISE+RIGHT SHIFT on the default layout. | |||
2. With the keyboard unplugged, hold SPACE + B while plugging in the keyboard. | |||
3. Open up the keyboard half, and press the reset button on the Puchi-C board | |||
Once reset, you can flash the left/right half by using one of these commands respectively: | |||
make typetheory:default:dfu-split-left | |||
make typetheory:default:dfu-split-right | |||
Tip: if desired, you can flash different layouts to the left/right side. Then, the entire keyboard will use the 'left' layout when the left side is plugged into the computer, and vice-versa for the right side. Do not attempt to plug in both keyboard halves into the computer at once. |
@ -0,0 +1,14 @@ | |||
MCU = atmega32u4 | |||
BOOTLOADER = atmel-dfu | |||
SPLIT_KEYBOARD = yes | |||
LTO_ENABLE = yes | |||
BOOTMAGIC_ENABLE = yes | |||
MOUSEKEY_ENABLE = no | |||
EXTRAKEY_ENABLE = yes | |||
CONSOLE_ENABLE = yes | |||
COMMAND_ENABLE = yes | |||
NKRO_ENABLE = yes | |||
UNICODE_ENABLE = no | |||
BLUETOOTH_ENABLE = no |
@ -0,0 +1,18 @@ | |||
/* | |||
Copyright 2021 Marius Gavrilescu <marius@ieval.ro> | |||
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 3 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 "typetheory.h" |
@ -0,0 +1,43 @@ | |||
/* | |||
Copyright 2021 Marius Gavrilescu <marius@ieval.ro> | |||
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 3 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" | |||
#define LAYOUT(\ | |||
L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ | |||
L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ | |||
L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \ | |||
L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35, \ | |||
L42, L43, R42, R43, \ | |||
L18, L29, L39, R39, R29, R18, \ | |||
L28, L38, R38, R28 \ | |||
) \ | |||
{ \ | |||
{ L00, L01, L02, L03, L04, L05, KC_NO, KC_NO }, \ | |||
{ L10, L11, L12, L13, L14, L15, L18, KC_NO }, \ | |||
{ L20, L21, L22, L23, L24, L25, L28, L29 }, \ | |||
{ L30, L31, L32, L33, L34, L35, L38, L39 }, \ | |||
{ KC_NO, KC_NO, L42, L43, KC_NO, KC_NO, KC_NO, KC_NO }, \ | |||
\ | |||
{ R00, R01, R02, R03, R04, R05, KC_NO, KC_NO }, \ | |||
{ R10, R11, R12, R13, R14, R15, R18, KC_NO }, \ | |||
{ R20, R21, R22, R23, R24, R25, R28, R29 }, \ | |||
{ R30, R31, R32, R33, R34, R35, R38, R39 }, \ | |||
{ KC_NO, KC_NO, R42, R43, KC_NO, KC_NO, KC_NO, KC_NO } \ | |||
} |