forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding EU Isolation to the QMK firmware
- Loading branch information
1 parent
2538d34
commit c077753
Showing
19 changed files
with
515 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore | ||
* | ||
* 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 0xFEED | ||
#define PRODUCT_ID 0x4373 | ||
#define DEVICE_VER 0x0001 | ||
#define MANUFACTURER TuckTuckFloof | ||
#define PRODUCT EU ISOlation | ||
|
||
/* key matrix size */ | ||
#define MATRIX_ROWS 4 | ||
#define MATRIX_COLS 14 | ||
|
||
/* NIU Mini PCB default pin-out */ | ||
#define MATRIX_ROW_PINS { D2, D3, F1, F0 } | ||
#define MATRIX_COL_PINS { D0, D1, D4, D6, D7, B4, B5, B6, C6, C7, F7, F6, F5, F4} | ||
#define UNUSED_PINS | ||
|
||
/* COL2ROW or ROW2COL */ | ||
#define DIODE_DIRECTION COL2ROW | ||
|
||
/* Set 0 if debouncing isn't 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore | ||
* | ||
* 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 "eu_isolation.c" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* Copyright 2020 Austin "TuckTuckFloof" Ashmore | ||
* | ||
* 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" | ||
|
||
#define ___ KC_NO | ||
|
||
#define LAYOUT_euiso_mit( \ | ||
k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, \ | ||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, \ | ||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, \ | ||
k32, k33, k34, k35, k36, k38, k39, k3a, k3b, k3c, k3d \ | ||
) \ | ||
{ \ | ||
{ ___, ___, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d }, \ | ||
{ ___, ___, k32, k33, k34, k35, ___, k37, k38, k39, k3a, k3b, k3c, k3d } \ | ||
} | ||
|
||
#define LAYOUT_euiso_ortho( \ | ||
k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, \ | ||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, \ | ||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, \ | ||
k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d \ | ||
) \ | ||
{ \ | ||
{ ___, ___, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d }, \ | ||
{ ___, ___, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d } \ | ||
} | ||
|
||
#define LAYOUT_euiso_bigspace( \ | ||
k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, \ | ||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, \ | ||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, \ | ||
k32, k33, k37, k3c, k3d \ | ||
) \ | ||
{ \ | ||
{ ___, ___, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d }, \ | ||
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d }, \ | ||
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d }, \ | ||
{ ___, ___, k32, k33, ___, ___, ___, k37, ___, ___, ___, ___, k3c, k3d } \ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
{ | ||
"keyboard_name": "EUISOlation", | ||
"url": "", | ||
"maintainer": "qmk", | ||
"width": 14, | ||
"height": 4, | ||
"layouts": { | ||
"LAYOUT_euiso_ortho": { | ||
"key_count": 52, | ||
"layout": [ | ||
{"x":0, "y":0}, | ||
{"x":1, "y":0}, | ||
{"x":2, "y":0}, | ||
{"x":3, "y":0}, | ||
{"x":4, "y":0}, | ||
{"x":5, "y":0}, | ||
{"x":6, "y":0}, | ||
{"x":7, "y":0}, | ||
{"x":8, "y":0}, | ||
{"x":9, "y":0}, | ||
{"x":10, "y":0}, | ||
{"x":11, "y":0}, | ||
{"x":0, "y":1}, | ||
{"x":1, "y":1}, | ||
{"x":2, "y":1}, | ||
{"x":3, "y":1}, | ||
{"x":4, "y":1}, | ||
{"x":5, "y":1}, | ||
{"x":6, "y":1}, | ||
{"x":7, "y":1}, | ||
{"x":8, "y":1}, | ||
{"x":9, "y":1}, | ||
{"x":10, "y":1}, | ||
{"x":11, "y":1}, | ||
{"x":12, "y":1}, | ||
{"x":13, "y":1}, | ||
{"x":0, "y":2}, | ||
{"x":1, "y":2}, | ||
{"x":2, "y":2}, | ||
{"x":3, "y":2}, | ||
{"x":4, "y":2}, | ||
{"x":5, "y":2}, | ||
{"x":6, "y":2}, | ||
{"x":7, "y":2}, | ||
{"x":8, "y":2}, | ||
{"x":9, "y":2}, | ||
{"x":10, "y":2}, | ||
{"x":11, "y":2}, | ||
{"x":12, "y":2}, | ||
{"x":13, "y":2}, | ||
{"x":0, "y":3}, | ||
{"x":1, "y":3}, | ||
{"x":2, "y":3}, | ||
{"x":3, "y":3}, | ||
{"x":4, "y":3}, | ||
{"x":5, "y":3}, | ||
{"x":6, "y":3}, | ||
{"x":7, "y":3}, | ||
{"x":8, "y":3}, | ||
{"x":9, "y":3}, | ||
{"x":10, "y":3}, | ||
{"x":11, "y":3} | ||
] | ||
}, | ||
|
||
"LAYOUT_euiso_mit": { | ||
"key_count": 51, | ||
"layout": [ | ||
{"x":0, "y":0}, | ||
{"x":1, "y":0}, | ||
{"x":2, "y":0}, | ||
{"x":3, "y":0}, | ||
{"x":4, "y":0}, | ||
{"x":5, "y":0}, | ||
{"x":6, "y":0}, | ||
{"x":7, "y":0}, | ||
{"x":8, "y":0}, | ||
{"x":9, "y":0}, | ||
{"x":10, "y":0}, | ||
{"x":11, "y":0}, | ||
{"x":0, "y":1}, | ||
{"x":1, "y":1}, | ||
{"x":2, "y":1}, | ||
{"x":3, "y":1}, | ||
{"x":4, "y":1}, | ||
{"x":5, "y":1}, | ||
{"x":6, "y":1}, | ||
{"x":7, "y":1}, | ||
{"x":8, "y":1}, | ||
{"x":9, "y":1}, | ||
{"x":10, "y":1}, | ||
{"x":11, "y":1}, | ||
{"x":12, "y":1}, | ||
{"x":13, "y":1}, | ||
{"x":0, "y":2}, | ||
{"x":1, "y":2}, | ||
{"x":2, "y":2}, | ||
{"x":3, "y":2}, | ||
{"x":4, "y":2}, | ||
{"x":5, "y":2}, | ||
{"x":6, "y":2}, | ||
{"x":7, "y":2}, | ||
{"x":8, "y":2}, | ||
{"x":9, "y":2}, | ||
{"x":10, "y":2}, | ||
{"x":11, "y":2}, | ||
{"x":12, "y":2}, | ||
{"x":13, "y":2}, | ||
{"x":0, "y":3}, | ||
{"x":1, "y":3}, | ||
{"x":2, "y":3}, | ||
{"x":3, "y":3}, | ||
{"x":4, "y":3}, | ||
{"x":5, "y":3, "w":2}, | ||
{"x":7, "y":3}, | ||
{"x":8, "y":3}, | ||
{"x":9, "y":3}, | ||
{"x":10, "y":3}, | ||
{"x":11, "y":3} | ||
] | ||
}, | ||
|
||
"LAYOUT_euiso_bigspace": { | ||
"key_count": 45, | ||
"layout": [ | ||
{"x":0, "y":0}, | ||
{"x":1, "y":0}, | ||
{"x":2, "y":0}, | ||
{"x":3, "y":0}, | ||
{"x":4, "y":0}, | ||
{"x":5, "y":0}, | ||
{"x":6, "y":0}, | ||
{"x":7, "y":0}, | ||
{"x":8, "y":0}, | ||
{"x":9, "y":0}, | ||
{"x":10, "y":0}, | ||
{"x":11, "y":0}, | ||
{"x":0, "y":1}, | ||
{"x":1, "y":1}, | ||
{"x":2, "y":1}, | ||
{"x":3, "y":1}, | ||
{"x":4, "y":1}, | ||
{"x":5, "y":1}, | ||
{"x":6, "y":1}, | ||
{"x":7, "y":1}, | ||
{"x":8, "y":1}, | ||
{"x":9, "y":1}, | ||
{"x":10, "y":1}, | ||
{"x":11, "y":1}, | ||
{"x":12, "y":1}, | ||
{"x":13, "y":1}, | ||
{"x":0, "y":2}, | ||
{"x":1, "y":2}, | ||
{"x":2, "y":2}, | ||
{"x":3, "y":2}, | ||
{"x":4, "y":2}, | ||
{"x":5, "y":2}, | ||
{"x":6, "y":2}, | ||
{"x":7, "y":2}, | ||
{"x":8, "y":2}, | ||
{"x":9, "y":2}, | ||
{"x":10, "y":2}, | ||
{"x":11, "y":2}, | ||
{"x":12, "y":2}, | ||
{"x":13, "y":2}, | ||
{"x":0, "y":3, "w":1.25}, | ||
{"x":1, "y":3, "w":1.25}, | ||
{"x":5, "y":3, "w":7}, | ||
{"x":10, "y":3, "w":1.25}, | ||
{"x":11, "y":3, "w":1.25} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define COMBO_COUNT 5 | ||
#define COMBO_TERM 175 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#include "EU_ISO.h" | ||
|
||
enum layers { | ||
_BASE = 0, | ||
_FN1, | ||
_FN2, | ||
_FN3 | ||
}; | ||
|
||
enum combos { | ||
AB_ESC = 0, | ||
JA_DEL, | ||
JR_VOLU, | ||
RB_VOLD, | ||
}; | ||
|
||
enum custom_keycodes { | ||
WCSTR = SAFE_RANGE | ||
}; | ||
|
||
const uint16_t PROGMEM ab_combo[] = { KC_F1, KC_F3, COMBO_END }; | ||
const uint16_t PROGMEM ja_combo[] = { KC_F2, KC_F4, COMBO_END }; | ||
const uint16_t PROGMEM jr_combo[] = { KC_F1, KC_F2, COMBO_END }; | ||
const uint16_t PROGMEM rb_combo[] = { KC_F3, KC_F4, COMBO_END }; | ||
|
||
combo_t key_combos[COMBO_COUNT] = { | ||
[AB_ESC] = COMBO(ab_combo, KC_ESC), | ||
[JA_DEL] = COMBO(ja_combo, KC_DEL), | ||
[JR_VOLU] = COMBO(jr_combo, KC_VOLU), | ||
[RB_VOLD] = COMBO(rb_combo, KC_VOLD), | ||
}; | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
[_BASE] = LAYOUT_euiso_bigspace( | ||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
KC_F1, KC_F2, 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_F3, KC_F4, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, LT(_FN1, KC_ENT), | ||
MO(_FN3),KC_LALT, LT(_FN2, KC_SPC), KC_LGUI, KC_RCTL | ||
), | ||
|
||
[_FN1] = LAYOUT_euiso_bigspace( | ||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
WCSTR, _______, KC_ESC , KC_PIPE, KC_DQUO, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______, _______, _______, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU, _______, | ||
_______, _______, _______, KC_VOLD, KC_MNXT | ||
), | ||
|
||
[_FN2] = LAYOUT_euiso_bigspace( | ||
KC_GRV , KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
_______, _______, KC_ESC , KC_BSLS, KC_QUOT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_4, KC_5, KC_6, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_1, KC_2, KC_3, KC_VOLU, _______, | ||
_______, _______, _______, KC_VOLD, KC_MNXT | ||
), | ||
|
||
[_FN3] = LAYOUT_euiso_bigspace( | ||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
_______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, | ||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
_______, RESET, _______, _______, _______ | ||
) | ||
}; | ||
|
||
// Update: The problem does not sit in this area. The function works quite well actually. So it has to do with QMK's comboing software | ||
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
switch (keycode) { | ||
case WCSTR: | ||
if (record->event.pressed) { | ||
// when this shitpost is pressed | ||
SEND_STRING("HAPPY FEET!! WOMBO COMBO!!"); | ||
} else { | ||
// The rest of the shitpost when released | ||
SEND_STRING("OH OH OH OH OH!!!!\n"); | ||
} | ||
break; | ||
} | ||
return true; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# B I G S P A C E | ||
|
||
Default keymap for the 7u layout | ||
A L L H A I L B I G S P A C E |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COMBO_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define COMBO_COUNT 5 | ||
#define COMBO_TERM 175 |
Oops, something went wrong.