diff options
Diffstat (limited to 'keyboards')
-rw-r--r-- | keyboards/lets_split/keymaps/that_canadian/config.h | 32 | ||||
-rw-r--r-- | keyboards/lets_split/keymaps/that_canadian/keymap.c | 163 | ||||
-rw-r--r-- | keyboards/lets_split_eh/README.md | 13 | ||||
-rw-r--r-- | keyboards/lets_split_eh/config.h | 44 | ||||
-rw-r--r-- | keyboards/lets_split_eh/eh/config.h | 47 | ||||
-rw-r--r-- | keyboards/lets_split_eh/eh/eh.c | 14 | ||||
-rw-r--r-- | keyboards/lets_split_eh/eh/eh.h | 27 | ||||
-rw-r--r-- | keyboards/lets_split_eh/eh/rules.mk | 4 | ||||
-rw-r--r-- | keyboards/lets_split_eh/keymaps/default/config.h | 26 | ||||
-rw-r--r-- | keyboards/lets_split_eh/keymaps/default/keymap.c | 170 | ||||
-rw-r--r-- | keyboards/lets_split_eh/keymaps/default/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/lets_split_eh/keymaps/that_canadian/config.h | 26 | ||||
-rw-r--r-- | keyboards/lets_split_eh/keymaps/that_canadian/keymap.c | 170 | ||||
-rw-r--r-- | keyboards/lets_split_eh/keymaps/that_canadian/rules.mk | 3 | ||||
-rw-r--r-- | keyboards/lets_split_eh/lets_split_eh.c | 1 | ||||
-rw-r--r-- | keyboards/lets_split_eh/lets_split_eh.h | 27 | ||||
-rw-r--r-- | keyboards/lets_split_eh/rules.mk | 70 |
17 files changed, 840 insertions, 0 deletions
diff --git a/keyboards/lets_split/keymaps/that_canadian/config.h b/keyboards/lets_split/keymaps/that_canadian/config.h new file mode 100644 index 000000000..586b6e8c8 --- /dev/null +++ b/keyboards/lets_split/keymaps/that_canadian/config.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* | ||
2 | This is the c configuration file for the keymap | ||
3 | |||
4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
5 | Copyright 2015 Jack Humbert | ||
6 | |||
7 | This program is free software: you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation, either version 2 of the License, or | ||
10 | (at your option) any later version. | ||
11 | |||
12 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | ||
16 | |||
17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | ||
20 | |||
21 | #ifndef CONFIG_USER_H | ||
22 | #define CONFIG_USER_H | ||
23 | |||
24 | #include "../../config.h" | ||
25 | |||
26 | /* Select hand configuration */ | ||
27 | |||
28 | #define MASTER_LEFT | ||
29 | // #define _MASTER_RIGHT | ||
30 | // #define EE_HANDS | ||
31 | |||
32 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split/keymaps/that_canadian/keymap.c b/keyboards/lets_split/keymaps/that_canadian/keymap.c new file mode 100644 index 000000000..239a8d3be --- /dev/null +++ b/keyboards/lets_split/keymaps/that_canadian/keymap.c | |||
@@ -0,0 +1,163 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | #include "action_layer.h" | ||
3 | #include "eeconfig.h" | ||
4 | |||
5 | extern keymap_config_t keymap_config; | ||
6 | |||
7 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
8 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
9 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
10 | // entirely and just use numbers. | ||
11 | #define _QWERTY 0 | ||
12 | |||
13 | #define _LOWER 3 | ||
14 | #define _RAISE 4 | ||
15 | #define _ADJUST 16 | ||
16 | |||
17 | enum custom_keycodes { | ||
18 | QWERTY = SAFE_RANGE, | ||
19 | LOWER, | ||
20 | RAISE, | ||
21 | ADJUST, | ||
22 | BACKLIT | ||
23 | }; | ||
24 | |||
25 | // Fillers to make layering more clear | ||
26 | #define _______ KC_TRNS | ||
27 | #define XXXXXXX KC_NO | ||
28 | |||
29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
30 | |||
31 | /* Qwerty | ||
32 | * ,-----------------------------------------------------------------------------------. | ||
33 | * | RESET| Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
34 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
35 | * | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
36 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
37 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
38 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
39 | * |Backlt| Ctrl | GUI | Alt |Lower |Space |Space |Raise | Left | Down | Up |Right | | ||
40 | * `-----------------------------------------------------------------------------------' | ||
41 | */ | ||
42 | [_QWERTY] = LAYOUT( \ | ||
43 | RESET, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ | ||
44 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ | ||
45 | RGB_TOG, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \ | ||
46 | BACKLIT, KC_LCTL, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | ||
47 | ), | ||
48 | |||
49 | /* Lower | ||
50 | * ,-----------------------------------------------------------------------------------. | ||
51 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
52 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
53 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | | \ | | | | ||
54 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
55 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | |Enter | | ||
56 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
57 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
58 | * `-----------------------------------------------------------------------------------' | ||
59 | */ | ||
60 | [_LOWER] = LAYOUT( \ | ||
61 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ | ||
62 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ | ||
63 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),_______, _______, _______, \ | ||
64 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
65 | ), | ||
66 | |||
67 | /* Raise | ||
68 | * ,-----------------------------------------------------------------------------------. | ||
69 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
70 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
71 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
72 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
73 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | |Enter | | ||
74 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
75 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
76 | * `-----------------------------------------------------------------------------------' | ||
77 | */ | ||
78 | [_RAISE] = LAYOUT( \ | ||
79 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
80 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ | ||
81 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \ | ||
82 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
83 | ), | ||
84 | |||
85 | /* Adjust (Lower + Raise) | ||
86 | * ,-----------------------------------------------------------------------------------. | ||
87 | * | | Reset| | | | | | | | | | Del | | ||
88 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
89 | * | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
90 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
91 | * | | | | | | | | | | | | | | ||
92 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
93 | * | | | | | | | | | | | | | ||
94 | * `-----------------------------------------------------------------------------------' | ||
95 | */ | ||
96 | [_ADJUST] = LAYOUT( \ | ||
97 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \ | ||
98 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, \ | ||
99 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
100 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | ||
101 | ) | ||
102 | |||
103 | |||
104 | }; | ||
105 | |||
106 | void persistent_default_layer_set(uint16_t default_layer) { | ||
107 | eeconfig_update_default_layer(default_layer); | ||
108 | default_layer_set(default_layer); | ||
109 | } | ||
110 | |||
111 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
112 | switch (keycode) { | ||
113 | case QWERTY: | ||
114 | if (record->event.pressed) { | ||
115 | #ifdef AUDIO_ENABLE | ||
116 | PLAY_SONG(tone_qwerty); | ||
117 | #endif | ||
118 | persistent_default_layer_set(1UL<<_QWERTY); | ||
119 | } | ||
120 | return false; | ||
121 | break; | ||
122 | case BACKLIT: | ||
123 | if (record->event.pressed) { | ||
124 | register_code(KC_RSFT); | ||
125 | #ifdef BACKLIGHT_ENABLE | ||
126 | backlight_step(); | ||
127 | #endif | ||
128 | } else { | ||
129 | unregister_code(KC_RSFT); | ||
130 | } | ||
131 | return false; | ||
132 | break; | ||
133 | case LOWER: | ||
134 | if (record->event.pressed) { | ||
135 | layer_on(_LOWER); | ||
136 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
137 | } else { | ||
138 | layer_off(_LOWER); | ||
139 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
140 | } | ||
141 | return false; | ||
142 | break; | ||
143 | case RAISE: | ||
144 | if (record->event.pressed) { | ||
145 | layer_on(_RAISE); | ||
146 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
147 | } else { | ||
148 | layer_off(_RAISE); | ||
149 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
150 | } | ||
151 | return false; | ||
152 | break; | ||
153 | case ADJUST: | ||
154 | if (record->event.pressed) { | ||
155 | layer_on(_ADJUST); | ||
156 | } else { | ||
157 | layer_off(_ADJUST); | ||
158 | } | ||
159 | return false; | ||
160 | break; | ||
161 | } | ||
162 | return true; | ||
163 | } \ No newline at end of file | ||
diff --git a/keyboards/lets_split_eh/README.md b/keyboards/lets_split_eh/README.md new file mode 100644 index 000000000..185e74dab --- /dev/null +++ b/keyboards/lets_split_eh/README.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # Let's Split Eh? | ||
2 | |||
3 |  | ||
4 | |||
5 | This is a split 40% ortho board. It is the exact same footprint and the Let's Split keyboard by wootpatoot. This board has USB-C / RGB Underglow / and is all on-board. Meant as a drop-in replacement for the V2 Let's Split. | ||
6 | |||
7 | Keyboard Maintainer: [Christopher Poole (That-Canadian)](https://github.com/That-Canadian) | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make lets_split_eh/eh:default | ||
12 | |||
13 | See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. \ No newline at end of file | ||
diff --git a/keyboards/lets_split_eh/config.h b/keyboards/lets_split_eh/config.h new file mode 100644 index 000000000..b8fe95ea2 --- /dev/null +++ b/keyboards/lets_split_eh/config.h | |||
@@ -0,0 +1,44 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #ifndef CONFIG_H | ||
19 | #define CONFIG_H | ||
20 | |||
21 | #include "config_common.h" | ||
22 | |||
23 | /* USB Device descriptor parameter */ | ||
24 | #define VENDOR_ID 0xFEED | ||
25 | #define PRODUCT_ID 0xE401 | ||
26 | #define DEVICE_VER 0x0E41 | ||
27 | #define MANUFACTURER That-Canadian | ||
28 | #define PRODUCT Lets Split Eh? | ||
29 | #define DESCRIPTION An on-board component Lets Split w/ USB-C | ||
30 | |||
31 | /* key matrix size */ | ||
32 | // Rows are doubled-up | ||
33 | #define MATRIX_ROWS 8 | ||
34 | #define MATRIX_COLS 6 | ||
35 | |||
36 | /* Set 0 if debouncing isn't needed */ | ||
37 | #define DEBOUNCING_DELAY 5 | ||
38 | |||
39 | /* key combination for command */ | ||
40 | #define IS_COMMAND() ( \ | ||
41 | keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ | ||
42 | ) | ||
43 | |||
44 | #endif | ||
diff --git a/keyboards/lets_split_eh/eh/config.h b/keyboards/lets_split_eh/eh/config.h new file mode 100644 index 000000000..5651ddd8b --- /dev/null +++ b/keyboards/lets_split_eh/eh/config.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
3 | Copyright 2015 Jack Humbert | ||
4 | |||
5 | This program is free software: you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published by | ||
7 | the Free Software Foundation, either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #ifndef EH_CONFIG_H | ||
20 | #define EH_CONFIG_H | ||
21 | |||
22 | // To let configuration know this is of type EH, which will force I2C irregardless of user config | ||
23 | #define EH | ||
24 | |||
25 | #include "config_common.h" | ||
26 | |||
27 | /* Let's Split EH? pin-out */ | ||
28 | #define MATRIX_ROW_PINS { B1, B3, D7, B4 } | ||
29 | #define MATRIX_COL_PINS { F4, F5, C6, B6, B5, D5 } | ||
30 | #define UNUSED_PINS | ||
31 | |||
32 | #define DIODE_DIRECTION COL2ROW | ||
33 | |||
34 | #define BACKLIGHT_PIN B7 | ||
35 | |||
36 | /* number of backlight levels */ | ||
37 | #define BACKLIGHT_LEVELS 3 | ||
38 | |||
39 | /* ws2812 RGB LED */ | ||
40 | #define RGB_DI_PIN B2 | ||
41 | #define RGBLED_NUM 6 // Number of LEDs (each hand) | ||
42 | |||
43 | /* Split Defines */ | ||
44 | #define SPLIT_HAND_PIN D3 | ||
45 | |||
46 | #endif | ||
47 | |||
diff --git a/keyboards/lets_split_eh/eh/eh.c b/keyboards/lets_split_eh/eh/eh.c new file mode 100644 index 000000000..e748d3ae0 --- /dev/null +++ b/keyboards/lets_split_eh/eh/eh.c | |||
@@ -0,0 +1,14 @@ | |||
1 | #include "lets_split_eh.h" | ||
2 | |||
3 | void matrix_init_kb(void) { | ||
4 | |||
5 | // JTAG disable for PORT F. write JTD bit twice within four cycles. | ||
6 | MCUCR |= (1<<JTD); | ||
7 | MCUCR |= (1<<JTD); | ||
8 | |||
9 | // Undo init of RX LED, we use that port currently | ||
10 | // DDRB &= ~(1<<0); | ||
11 | |||
12 | matrix_init_user(); | ||
13 | }; | ||
14 | |||
diff --git a/keyboards/lets_split_eh/eh/eh.h b/keyboards/lets_split_eh/eh/eh.h new file mode 100644 index 000000000..7dc84fe18 --- /dev/null +++ b/keyboards/lets_split_eh/eh/eh.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef EH_H | ||
2 | #define EH_H | ||
3 | |||
4 | #include "lets_split_eh.h" | ||
5 | |||
6 | #include "quantum.h" | ||
7 | |||
8 | #define LAYOUT( \ | ||
9 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ | ||
10 | L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ | ||
11 | L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \ | ||
12 | L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \ | ||
13 | ) \ | ||
14 | { \ | ||
15 | { L00, L01, L02, L03, L04, L05 }, \ | ||
16 | { L10, L11, L12, L13, L14, L15 }, \ | ||
17 | { L20, L21, L22, L23, L24, L25 }, \ | ||
18 | { L30, L31, L32, L33, L34, L35 }, \ | ||
19 | { R00, R01, R02, R03, R04, R05 }, \ | ||
20 | { R10, R11, R12, R13, R14, R15 }, \ | ||
21 | { R20, R21, R22, R23, R24, R25 }, \ | ||
22 | { R30, R31, R32, R33, R34, R35 } \ | ||
23 | } | ||
24 | |||
25 | #define LAYOUT_ortho_4x12 LAYOUT | ||
26 | |||
27 | #endif | ||
diff --git a/keyboards/lets_split_eh/eh/rules.mk b/keyboards/lets_split_eh/eh/rules.mk new file mode 100644 index 000000000..4bac58533 --- /dev/null +++ b/keyboards/lets_split_eh/eh/rules.mk | |||
@@ -0,0 +1,4 @@ | |||
1 | BOOTLOADER = atmel-dfu | ||
2 | |||
3 | BACKLIGHT_ENABLE = yes | ||
4 | RGBLIGHT_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/lets_split_eh/keymaps/default/config.h b/keyboards/lets_split_eh/keymaps/default/config.h new file mode 100644 index 000000000..a1df337bd --- /dev/null +++ b/keyboards/lets_split_eh/keymaps/default/config.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | This is the c configuration file for the keymap | ||
3 | |||
4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
5 | Copyright 2015 Jack Humbert | ||
6 | |||
7 | This program is free software: you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation, either version 2 of the License, or | ||
10 | (at your option) any later version. | ||
11 | |||
12 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | ||
16 | |||
17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | ||
20 | |||
21 | #ifndef CONFIG_USER_H | ||
22 | #define CONFIG_USER_H | ||
23 | |||
24 | #include "../../config.h" | ||
25 | |||
26 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split_eh/keymaps/default/keymap.c b/keyboards/lets_split_eh/keymaps/default/keymap.c new file mode 100644 index 000000000..8ef973574 --- /dev/null +++ b/keyboards/lets_split_eh/keymaps/default/keymap.c | |||
@@ -0,0 +1,170 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | #include "action_layer.h" | ||
3 | #include "eeconfig.h" | ||
4 | |||
5 | extern keymap_config_t keymap_config; | ||
6 | |||
7 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
8 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
9 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
10 | // entirely and just use numbers. | ||
11 | #define _QWERTY 0 | ||
12 | |||
13 | #define _LOWER 3 | ||
14 | #define _RAISE 4 | ||
15 | #define _FUNCTION 15 | ||
16 | #define _ADJUST 16 | ||
17 | |||
18 | enum custom_keycodes { | ||
19 | QWERTY = SAFE_RANGE, | ||
20 | LOWER, | ||
21 | RAISE, | ||
22 | ADJUST | ||
23 | }; | ||
24 | |||
25 | // Fillers to make layering more clear | ||
26 | #define _______ KC_TRNS | ||
27 | #define XXXXXXX KC_NO | ||
28 | |||
29 | // Defines for task manager and such | ||
30 | #define CALTDEL LCTL(LALT(KC_DEL)) | ||
31 | #define TSKMGR LCTL(LSFT(KC_ESC)) | ||
32 | |||
33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
34 | |||
35 | /* Qwerty | ||
36 | * ,-----------------------------------------------------------------------------------. | ||
37 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
38 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
39 | * | Func | A | S | D | F | G | H | J | K | L | ; | Enter| | ||
40 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
41 | * | Shift| Z | X | C | V | B | N | M | , | . | / | ' | | ||
42 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
43 | * | Ctrl | ` | GUI | Alt |Lower | Space |Raise | Left | Down | Up |Right | | ||
44 | * `-----------------------------------------------------------------------------------' | ||
45 | */ | ||
46 | [_QWERTY] = LAYOUT( \ | ||
47 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ | ||
48 | MO(_FUNCTION), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, \ | ||
49 | OSM(MOD_LSFT), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT, \ | ||
50 | KC_LCTL, KC_GRV, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | ||
51 | ), | ||
52 | |||
53 | /* Lower | ||
54 | * ,-----------------------------------------------------------------------------------. | ||
55 | * | Esc | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
56 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
57 | * | | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } |Enter | | ||
58 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
59 | * | | F7 | F8 | F9 | F10 | F11 | F12 | | | Mute | | | | | ||
60 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
61 | * | | | | |Lower | Bksp | Bksp |Raise | Next | Vol- | Vol+ | Play | | ||
62 | * `-----------------------------------------------------------------------------------' | ||
63 | */ | ||
64 | [_LOWER] = LAYOUT( \ | ||
65 | KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \ | ||
66 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______, \ | ||
67 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_MUTE, _______, KC_PIPE, \ | ||
68 | _______, _______, _______, _______, _______, KC_BSPC, KC_BSPC, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
69 | ), | ||
70 | |||
71 | /* Raise | ||
72 | * ,-----------------------------------------------------------------------------------. | ||
73 | * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
74 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
75 | * | | 4 | 5 | 6 | + | F5 | F6 | - | = | [ | ] |Enter | | ||
76 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
77 | * |Enter | 7 | 8 | 9 | - | F11 | F12 |ISO # |ISO / | Mute | | \ | | ||
78 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
79 | * | | , | 0 | . |Lower | Bksp | Bksp |Raise | Next | Vol- | Vol+ | Play | | ||
80 | * `-----------------------------------------------------------------------------------' | ||
81 | */ | ||
82 | [_RAISE] = LAYOUT( \ | ||
83 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \ | ||
84 | _______, KC_4, KC_5, KC_6, KC_PLUS, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______, \ | ||
85 | KC_ENT, KC_7, KC_8, KC_9, KC_MINS, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_MUTE, _______, KC_BSLS, \ | ||
86 | _______, KC_COMM, KC_0, KC_DOT, _______, KC_BSPC, KC_BSPC, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
87 | ), | ||
88 | |||
89 | /* Adjust (Lower + Raise) | ||
90 | * ,-----------------------------------------------------------------------------------. | ||
91 | * |Taskmg| | | | | | | |RGBVAI|RGBSAI|RGBHUI|caltde| | ||
92 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
93 | * | | | | | | | |Qwerty|RGBVAD|RGBSAD|RGBHUD|RGBTOG| | ||
94 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
95 | * | | | | | | | | | | | |BLSTEP| | ||
96 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
97 | * | | | | | | | | | | | | RESET| | ||
98 | * `-----------------------------------------------------------------------------------' | ||
99 | */ | ||
100 | [_ADJUST] = LAYOUT( \ | ||
101 | TSKMGR, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, RGB_SAI, RGB_HUI, CALTDEL, \ | ||
102 | _______, _______, _______, _______, _______, _______, _______, QWERTY, RGB_VAD, RGB_SAD, RGB_HUD, RGB_TOG, \ | ||
103 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_STEP, \ | ||
104 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET \ | ||
105 | ), | ||
106 | |||
107 | /* Function | ||
108 | * ,-----------------------------------------------------------------------------------. | ||
109 | * | | | | | | | | | Up | | | | | ||
110 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
111 | * | | | | | | | | Left | Down |Right | | | | ||
112 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
113 | * | Caps | | | | | | | | | | | | | ||
114 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
115 | * | | | | | | | | | | | | | ||
116 | * `-----------------------------------------------------------------------------------' | ||
117 | */ | ||
118 | [_FUNCTION] = LAYOUT( \ | ||
119 | _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______, \ | ||
120 | _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, \ | ||
121 | KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
122 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | ||
123 | ) | ||
124 | |||
125 | }; | ||
126 | |||
127 | void persistent_default_layer_set(uint16_t default_layer) { | ||
128 | eeconfig_update_default_layer(default_layer); | ||
129 | default_layer_set(default_layer); | ||
130 | } | ||
131 | |||
132 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
133 | switch (keycode) { | ||
134 | case QWERTY: | ||
135 | if (record->event.pressed) { | ||
136 | persistent_default_layer_set(1UL<<_QWERTY); | ||
137 | } | ||
138 | return false; | ||
139 | break; | ||
140 | case LOWER: | ||
141 | if (record->event.pressed) { | ||
142 | layer_on(_LOWER); | ||
143 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
144 | } else { | ||
145 | layer_off(_LOWER); | ||
146 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
147 | } | ||
148 | return false; | ||
149 | break; | ||
150 | case RAISE: | ||
151 | if (record->event.pressed) { | ||
152 | layer_on(_RAISE); | ||
153 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
154 | } else { | ||
155 | layer_off(_RAISE); | ||
156 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
157 | } | ||
158 | return false; | ||
159 | break; | ||
160 | case ADJUST: | ||
161 | if (record->event.pressed) { | ||
162 | layer_on(_ADJUST); | ||
163 | } else { | ||
164 | layer_off(_ADJUST); | ||
165 | } | ||
166 | return false; | ||
167 | break; | ||
168 | } | ||
169 | return true; | ||
170 | } \ No newline at end of file | ||
diff --git a/keyboards/lets_split_eh/keymaps/default/rules.mk b/keyboards/lets_split_eh/keymaps/default/rules.mk new file mode 100644 index 000000000..457a3d01d --- /dev/null +++ b/keyboards/lets_split_eh/keymaps/default/rules.mk | |||
@@ -0,0 +1,3 @@ | |||
1 | ifndef QUANTUM_DIR | ||
2 | include ../../../../Makefile | ||
3 | endif | ||
diff --git a/keyboards/lets_split_eh/keymaps/that_canadian/config.h b/keyboards/lets_split_eh/keymaps/that_canadian/config.h new file mode 100644 index 000000000..a1df337bd --- /dev/null +++ b/keyboards/lets_split_eh/keymaps/that_canadian/config.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | This is the c configuration file for the keymap | ||
3 | |||
4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
5 | Copyright 2015 Jack Humbert | ||
6 | |||
7 | This program is free software: you can redistribute it and/or modify | ||
8 | it under the terms of the GNU General Public License as published by | ||
9 | the Free Software Foundation, either version 2 of the License, or | ||
10 | (at your option) any later version. | ||
11 | |||
12 | This program is distributed in the hope that it will be useful, | ||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | ||
16 | |||
17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | ||
20 | |||
21 | #ifndef CONFIG_USER_H | ||
22 | #define CONFIG_USER_H | ||
23 | |||
24 | #include "../../config.h" | ||
25 | |||
26 | #endif \ No newline at end of file | ||
diff --git a/keyboards/lets_split_eh/keymaps/that_canadian/keymap.c b/keyboards/lets_split_eh/keymaps/that_canadian/keymap.c new file mode 100644 index 000000000..8ef973574 --- /dev/null +++ b/keyboards/lets_split_eh/keymaps/that_canadian/keymap.c | |||
@@ -0,0 +1,170 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | #include "action_layer.h" | ||
3 | #include "eeconfig.h" | ||
4 | |||
5 | extern keymap_config_t keymap_config; | ||
6 | |||
7 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
8 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
9 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
10 | // entirely and just use numbers. | ||
11 | #define _QWERTY 0 | ||
12 | |||
13 | #define _LOWER 3 | ||
14 | #define _RAISE 4 | ||
15 | #define _FUNCTION 15 | ||
16 | #define _ADJUST 16 | ||
17 | |||
18 | enum custom_keycodes { | ||
19 | QWERTY = SAFE_RANGE, | ||
20 | LOWER, | ||
21 | RAISE, | ||
22 | ADJUST | ||
23 | }; | ||
24 | |||
25 | // Fillers to make layering more clear | ||
26 | #define _______ KC_TRNS | ||
27 | #define XXXXXXX KC_NO | ||
28 | |||
29 | // Defines for task manager and such | ||
30 | #define CALTDEL LCTL(LALT(KC_DEL)) | ||
31 | #define TSKMGR LCTL(LSFT(KC_ESC)) | ||
32 | |||
33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
34 | |||
35 | /* Qwerty | ||
36 | * ,-----------------------------------------------------------------------------------. | ||
37 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
38 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
39 | * | Func | A | S | D | F | G | H | J | K | L | ; | Enter| | ||
40 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
41 | * | Shift| Z | X | C | V | B | N | M | , | . | / | ' | | ||
42 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
43 | * | Ctrl | ` | GUI | Alt |Lower | Space |Raise | Left | Down | Up |Right | | ||
44 | * `-----------------------------------------------------------------------------------' | ||
45 | */ | ||
46 | [_QWERTY] = LAYOUT( \ | ||
47 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ | ||
48 | MO(_FUNCTION), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, \ | ||
49 | OSM(MOD_LSFT), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT, \ | ||
50 | KC_LCTL, KC_GRV, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | ||
51 | ), | ||
52 | |||
53 | /* Lower | ||
54 | * ,-----------------------------------------------------------------------------------. | ||
55 | * | Esc | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
56 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
57 | * | | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } |Enter | | ||
58 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
59 | * | | F7 | F8 | F9 | F10 | F11 | F12 | | | Mute | | | | | ||
60 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
61 | * | | | | |Lower | Bksp | Bksp |Raise | Next | Vol- | Vol+ | Play | | ||
62 | * `-----------------------------------------------------------------------------------' | ||
63 | */ | ||
64 | [_LOWER] = LAYOUT( \ | ||
65 | KC_ESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \ | ||
66 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______, \ | ||
67 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_MUTE, _______, KC_PIPE, \ | ||
68 | _______, _______, _______, _______, _______, KC_BSPC, KC_BSPC, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
69 | ), | ||
70 | |||
71 | /* Raise | ||
72 | * ,-----------------------------------------------------------------------------------. | ||
73 | * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
74 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
75 | * | | 4 | 5 | 6 | + | F5 | F6 | - | = | [ | ] |Enter | | ||
76 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
77 | * |Enter | 7 | 8 | 9 | - | F11 | F12 |ISO # |ISO / | Mute | | \ | | ||
78 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
79 | * | | , | 0 | . |Lower | Bksp | Bksp |Raise | Next | Vol- | Vol+ | Play | | ||
80 | * `-----------------------------------------------------------------------------------' | ||
81 | */ | ||
82 | [_RAISE] = LAYOUT( \ | ||
83 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \ | ||
84 | _______, KC_4, KC_5, KC_6, KC_PLUS, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______, \ | ||
85 | KC_ENT, KC_7, KC_8, KC_9, KC_MINS, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_MUTE, _______, KC_BSLS, \ | ||
86 | _______, KC_COMM, KC_0, KC_DOT, _______, KC_BSPC, KC_BSPC, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
87 | ), | ||
88 | |||
89 | /* Adjust (Lower + Raise) | ||
90 | * ,-----------------------------------------------------------------------------------. | ||
91 | * |Taskmg| | | | | | | |RGBVAI|RGBSAI|RGBHUI|caltde| | ||
92 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
93 | * | | | | | | | |Qwerty|RGBVAD|RGBSAD|RGBHUD|RGBTOG| | ||
94 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
95 | * | | | | | | | | | | | |BLSTEP| | ||
96 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
97 | * | | | | | | | | | | | | RESET| | ||
98 | * `-----------------------------------------------------------------------------------' | ||
99 | */ | ||
100 | [_ADJUST] = LAYOUT( \ | ||
101 | TSKMGR, _______, _______, _______, _______, _______, _______, _______, RGB_VAI, RGB_SAI, RGB_HUI, CALTDEL, \ | ||
102 | _______, _______, _______, _______, _______, _______, _______, QWERTY, RGB_VAD, RGB_SAD, RGB_HUD, RGB_TOG, \ | ||
103 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_STEP, \ | ||
104 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET \ | ||
105 | ), | ||
106 | |||
107 | /* Function | ||
108 | * ,-----------------------------------------------------------------------------------. | ||
109 | * | | | | | | | | | Up | | | | | ||
110 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
111 | * | | | | | | | | Left | Down |Right | | | | ||
112 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
113 | * | Caps | | | | | | | | | | | | | ||
114 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
115 | * | | | | | | | | | | | | | ||
116 | * `-----------------------------------------------------------------------------------' | ||
117 | */ | ||
118 | [_FUNCTION] = LAYOUT( \ | ||
119 | _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______, \ | ||
120 | _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, \ | ||
121 | KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
122 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | ||
123 | ) | ||
124 | |||
125 | }; | ||
126 | |||
127 | void persistent_default_layer_set(uint16_t default_layer) { | ||
128 | eeconfig_update_default_layer(default_layer); | ||
129 | default_layer_set(default_layer); | ||
130 | } | ||
131 | |||
132 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
133 | switch (keycode) { | ||
134 | case QWERTY: | ||
135 | if (record->event.pressed) { | ||
136 | persistent_default_layer_set(1UL<<_QWERTY); | ||
137 | } | ||
138 | return false; | ||
139 | break; | ||
140 | case LOWER: | ||
141 | if (record->event.pressed) { | ||
142 | layer_on(_LOWER); | ||
143 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
144 | } else { | ||
145 | layer_off(_LOWER); | ||
146 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
147 | } | ||
148 | return false; | ||
149 | break; | ||
150 | case RAISE: | ||
151 | if (record->event.pressed) { | ||
152 | layer_on(_RAISE); | ||
153 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
154 | } else { | ||
155 | layer_off(_RAISE); | ||
156 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
157 | } | ||
158 | return false; | ||
159 | break; | ||
160 | case ADJUST: | ||
161 | if (record->event.pressed) { | ||
162 | layer_on(_ADJUST); | ||
163 | } else { | ||
164 | layer_off(_ADJUST); | ||
165 | } | ||
166 | return false; | ||
167 | break; | ||
168 | } | ||
169 | return true; | ||
170 | } \ No newline at end of file | ||
diff --git a/keyboards/lets_split_eh/keymaps/that_canadian/rules.mk b/keyboards/lets_split_eh/keymaps/that_canadian/rules.mk new file mode 100644 index 000000000..457a3d01d --- /dev/null +++ b/keyboards/lets_split_eh/keymaps/that_canadian/rules.mk | |||
@@ -0,0 +1,3 @@ | |||
1 | ifndef QUANTUM_DIR | ||
2 | include ../../../../Makefile | ||
3 | endif | ||
diff --git a/keyboards/lets_split_eh/lets_split_eh.c b/keyboards/lets_split_eh/lets_split_eh.c new file mode 100644 index 000000000..d5a312085 --- /dev/null +++ b/keyboards/lets_split_eh/lets_split_eh.c | |||
@@ -0,0 +1 @@ | |||
#include "lets_split_eh.h" | |||
diff --git a/keyboards/lets_split_eh/lets_split_eh.h b/keyboards/lets_split_eh/lets_split_eh.h new file mode 100644 index 000000000..f3d2cd0d0 --- /dev/null +++ b/keyboards/lets_split_eh/lets_split_eh.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef LETS_SPLIT_EH_H | ||
2 | #define LETS_SPLIT_EH_H | ||
3 | |||
4 | #include "quantum.h" | ||
5 | |||
6 | #ifdef KEYBOARD_lets_split_eh_eh | ||
7 | #include "eh.h" | ||
8 | #endif | ||
9 | |||
10 | |||
11 | // Used to create a keymap using only KC_ prefixed keys | ||
12 | #define LAYOUT_kc( \ | ||
13 | L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \ | ||
14 | L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \ | ||
15 | L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \ | ||
16 | L30, L31, L32, L33, L34, L35, R30, R31, R32, R33, R34, R35 \ | ||
17 | ) \ | ||
18 | LAYOUT( \ | ||
19 | KC_##L00, KC_##L01, KC_##L02, KC_##L03, KC_##L04, KC_##L05, KC_##R00, KC_##R01, KC_##R02, KC_##R03, KC_##R04, KC_##R05, \ | ||
20 | KC_##L10, KC_##L11, KC_##L12, KC_##L13, KC_##L14, KC_##L15, KC_##R10, KC_##R11, KC_##R12, KC_##R13, KC_##R14, KC_##R15, \ | ||
21 | KC_##L20, KC_##L21, KC_##L22, KC_##L23, KC_##L24, KC_##L25, KC_##R20, KC_##R21, KC_##R22, KC_##R23, KC_##R24, KC_##R25, \ | ||
22 | KC_##L30, KC_##L31, KC_##L32, KC_##L33, KC_##L34, KC_##L35, KC_##R30, KC_##R31, KC_##R32, KC_##R33, KC_##R34, KC_##R35 \ | ||
23 | ) | ||
24 | |||
25 | #define LAYOUT_kc_ortho_4x12 LAYOUT_kc | ||
26 | |||
27 | #endif | ||
diff --git a/keyboards/lets_split_eh/rules.mk b/keyboards/lets_split_eh/rules.mk new file mode 100644 index 000000000..dffeb9fa3 --- /dev/null +++ b/keyboards/lets_split_eh/rules.mk | |||
@@ -0,0 +1,70 @@ | |||
1 | # MCU name | ||
2 | #MCU = at90usb1287 | ||
3 | MCU = atmega32u4 | ||
4 | |||
5 | # Processor frequency. | ||
6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
9 | # automatically to create a 32-bit value in your source code. | ||
10 | # | ||
11 | # This will be an integer division of F_USB below, as it is sourced by | ||
12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
13 | # does not *change* the processor frequency - it should merely be updated to | ||
14 | # reflect the processor speed set externally so that the code can use accurate | ||
15 | # software delays. | ||
16 | F_CPU = 16000000 | ||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = AVR8 | ||
23 | |||
24 | # Input clock frequency. | ||
25 | # This will define a symbol, F_USB, in all source code files equal to the | ||
26 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
27 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
28 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
29 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
30 | # at the end, this will be done automatically to create a 32-bit value in your | ||
31 | # source code. | ||
32 | # | ||
33 | # If no clock division is performed on the input clock inside the AVR (via the | ||
34 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # Bootloader | ||
38 | # This definition is optional, and if your keyboard supports multiple bootloaders of | ||
39 | # different sizes, comment this out, and the correct address will be loaded | ||
40 | # automatically (+60). See bootloader.mk for all options. | ||
41 | BOOTLOADER = atmel-dfu | ||
42 | |||
43 | |||
44 | # Interrupt driven control endpoint task(+60) | ||
45 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
46 | |||
47 | # Build Options | ||
48 | # change to "no" to disable the options, or define them in the Makefile in | ||
49 | # the appropriate keymap folder that will get included automatically | ||
50 | # | ||
51 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
52 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
53 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
54 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
55 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
56 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
57 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
58 | MIDI_ENABLE = no # MIDI controls | ||
59 | AUDIO_ENABLE = no # Audio output on port C6 | ||
60 | UNICODE_ENABLE = no # Unicode | ||
61 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
62 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
63 | API_SYSEX_ENABLE = no | ||
64 | |||
65 | SPLIT_KEYBOARD = yes | ||
66 | |||
67 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
68 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
69 | |||
70 | DEFAULT_FOLDER = lets_split_eh/eh | ||