aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerMeerkamp <Jan.Meerkamp@gmail.com>2017-09-22 23:03:53 +0200
committerJack Humbert <jack.humb@gmail.com>2017-10-10 07:10:17 -1000
commitc5f847a900e7186bce70211d83f65d670384fe92 (patch)
tree8032009f908888bb45805b226b20fe46909f5c7a
parentd6a446bf95e745a7613e27a5e6b725ffc73d73d0 (diff)
downloadqmk_firmware-c5f847a900e7186bce70211d83f65d670384fe92.tar.gz
qmk_firmware-c5f847a900e7186bce70211d83f65d670384fe92.zip
neue Datei: keyboards/lets_split/keymaps/DE_simple/Makefile
neue Datei: keyboards/lets_split/keymaps/DE_simple/config.h neue Datei: keyboards/lets_split/keymaps/DE_simple/keymap.c neue Datei: keyboards/lets_split/keymaps/DE_simple/rules.mk
-rw-r--r--keyboards/lets_split/keymaps/DE_simple/Makefile3
-rw-r--r--keyboards/lets_split/keymaps/DE_simple/config.h37
-rw-r--r--keyboards/lets_split/keymaps/DE_simple/keymap.c157
-rw-r--r--keyboards/lets_split/keymaps/DE_simple/rules.mk3
4 files changed, 200 insertions, 0 deletions
diff --git a/keyboards/lets_split/keymaps/DE_simple/Makefile b/keyboards/lets_split/keymaps/DE_simple/Makefile
new file mode 100644
index 000000000..457a3d01d
--- /dev/null
+++ b/keyboards/lets_split/keymaps/DE_simple/Makefile
@@ -0,0 +1,3 @@
1ifndef QUANTUM_DIR
2 include ../../../../Makefile
3endif
diff --git a/keyboards/lets_split/keymaps/DE_simple/config.h b/keyboards/lets_split/keymaps/DE_simple/config.h
new file mode 100644
index 000000000..7f33a4363
--- /dev/null
+++ b/keyboards/lets_split/keymaps/DE_simple/config.h
@@ -0,0 +1,37 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along 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/* Use I2C or Serial, not both */
27
28#define USE_SERIAL
29// #define USE_I2C
30
31/* Select hand configuration */
32
33#define MASTER_LEFT
34// #define _MASTER_RIGHT
35// #define EE_HANDS
36
37#endif \ No newline at end of file
diff --git a/keyboards/lets_split/keymaps/DE_simple/keymap.c b/keyboards/lets_split/keymaps/DE_simple/keymap.c
new file mode 100644
index 000000000..f204ca6c3
--- /dev/null
+++ b/keyboards/lets_split/keymaps/DE_simple/keymap.c
@@ -0,0 +1,157 @@
1#include "lets_split.h"
2#include "action_layer.h"
3#include "eeconfig.h"
4#include "keymap_german.h"
5
6extern keymap_config_t keymap_config;
7
8// Each layer gets a name for readability, which is then used in the keymap matrix below.
9// The underscores don't mean anything - you can have a layer called STUFF or any other name.
10// Layer names don't all need to be of the same length, obviously, and you can also skip them
11// entirely and just use numbers.
12#define _QWERTZ 0
13#define _LOWER 3
14#define _RAISE 4
15#define _ADJUST 16
16
17enum custom_keycodes {
18 QWERTZ = SAFE_RANGE,
19 LOWER,
20 RAISE,
21 ADJUST,
22};
23
24// Fillers to make layering more clear
25#define _______ KC_TRNS
26#define XXXXXXX KC_NO
27
28const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
29
30/* Qwerty
31 * ,-----------------------------------------------------------------------------------.
32 * | Tab | Q | W | E | R | T | Z | U | I | O | P | Bksp |
33 * |------+------+------+------+------+-------------+------+------+------+------+------|
34 * | Esc | A | S | D | F | G | H | J | K | L | + | # |
35 * |------+------+------+------+------+------|------+------+------+------+------+------|
36 * | Shift| Y | X | C | V | B | N | M | , | . | - |Enter |
37 * |------+------+------+------+------+------+------+------+------+------+------+------|
38 * |Adjust| Ctrl | Alt | GUI |Lower |Space |Space |Raise | Left | Down | Up |Right |
39 * `-----------------------------------------------------------------------------------'
40 */
41[_QWERTZ] = KEYMAP( \
42 KC_TAB, DE_Q, DE_W, DE_E, DE_R, DE_T, DE_Z, DE_U, DE_I, DE_O, DE_P, KC_BSPC, \
43 KC_ESC, DE_A, DE_S, DE_D, DE_F, DE_G, DE_H, DE_J, DE_K, DE_L, DE_PLUS, DE_HASH, \
44 KC_LSFT, DE_Y, DE_X, DE_C, DE_V, DE_B, DE_N, DE_M, DE_COMM, DE_DOT, DE_MINS, KC_ENT , \
45 ADJUST, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
46),
47
48/* Lower
49 * ,-----------------------------------------------------------------------------------.
50 * | ^ | ! | " | § | $ | % | & | / | ( | ) | = | Bksp |
51 * |------+------+------+------+------+-------------+------+------+------+------+------|
52 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | @ | € | ü | ? | ´ |
53 * |------+------+------+------+------+------|------+------+------+------+------+------|
54 * | Shift| F7 | F8 | F9 | F10 | F11 | F12 | | | ö | ä | |Enter |
55 * |------+------+------+------+------+------+------+------+------+------+------+------|
56 * | | | | | | | | Next | Vol- | Vol+ | Play |
57 * `-----------------------------------------------------------------------------------'
58 */
59[_LOWER] = KEYMAP( \
60 DE_CIRC, DE_EXLM, DE_DQOT, DE_PARA, DE_DLR, DE_PERC, DE_AMPR, DE_SLSH, DE_LPRN, DE_RPRN, DE_EQL, KC_BSPC, \
61 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, DE_AT , DE_EURO, KC_LBRC, DE_QST, DE_QUOT, \
62 KC_LSFT, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, DE_PIPE , KC_SCLN, KC_QUOT, _______, KC_ENT, \
63 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
64),
65
66/* Raise
67 * ,-----------------------------------------------------------------------------------.
68 * | ° | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
69 * |------+------+------+------+------+-------------+------+------+------+------+------|
70 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | { | [ | ] | } | \ |
71 * |------+------+------+------+------+------|------+------+------+------+------+------|
72 * | Shift| F7 | F8 | F9 | F10 | F11 | F12 | | | | |Enter |
73 * |------+------+------+------+------+------+------+------+------+------+------+------|
74 * | | | | | | | | Next | Vol- | Vol+ | Play |
75 * `-----------------------------------------------------------------------------------'
76 */
77[_RAISE] = KEYMAP( \
78 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
79 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, DE_LCBR, DE_LBRC, DE_RBRC, DE_RCBR , DE_BSLS, \
80 KC_LSFT, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, KC_ENT, \
81 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
82),
83
84/* Adjust (Lower + Raise)
85 * ,-----------------------------------------------------------------------------------.
86 * | | Reset| | | | | | | | | | Del |
87 * |------+------+------+------+------+-------------+------+------+------+------+------|
88 * | | | |Aud on|Audoff|AGnorm|AGswap|Qwertz| | | | |
89 * |------+------+------+------+------+------|------+------+------+------+------+------|
90 * | | | | | | | | | | | | |
91 * |------+------+------+------+------+------+------+------+------+------+------+------|
92 * | | | | | | | | | | | |
93 * `-----------------------------------------------------------------------------------'
94 */
95[_ADJUST] = KEYMAP( \
96 _______, RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
97 _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTZ, _______, _______, _______, _______, \
98 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
99 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
100)
101
102
103};
104
105#ifdef AUDIO_ENABLE
106float tone_qwertz[][2] = SONG(QWERTZ_SOUND);
107float tone_dvorak[][2] = SONG(DVORAK_SOUND);
108float tone_colemak[][2] = SONG(COLEMAK_SOUND);
109#endif
110
111void persistent_default_layer_set(uint16_t default_layer) {
112 eeconfig_update_default_layer(default_layer);
113 default_layer_set(default_layer);
114}
115
116bool process_record_user(uint16_t keycode, keyrecord_t *record) {
117 switch (keycode) {
118 case QWERTZ:
119 if (record->event.pressed) {
120 #ifdef AUDIO_ENABLE
121 PLAY_SONG(tone_qwertz);
122 #endif
123 persistent_default_layer_set(1UL<<_QWERTZ);
124 }
125 return false;
126 break;
127 case LOWER:
128 if (record->event.pressed) {
129 layer_on(_LOWER);
130 update_tri_layer(_LOWER, _RAISE, _ADJUST);
131 } else {
132 layer_off(_LOWER);
133 update_tri_layer(_LOWER, _RAISE, _ADJUST);
134 }
135 return false;
136 break;
137 case RAISE:
138 if (record->event.pressed) {
139 layer_on(_RAISE);
140 update_tri_layer(_LOWER, _RAISE, _ADJUST);
141 } else {
142 layer_off(_RAISE);
143 update_tri_layer(_LOWER, _RAISE, _ADJUST);
144 }
145 return false;
146 break;
147 case ADJUST:
148 if (record->event.pressed) {
149 layer_on(_ADJUST);
150 } else {
151 layer_off(_ADJUST);
152 }
153 return false;
154 break;
155 }
156 return true;
157}
diff --git a/keyboards/lets_split/keymaps/DE_simple/rules.mk b/keyboards/lets_split/keymaps/DE_simple/rules.mk
new file mode 100644
index 000000000..457a3d01d
--- /dev/null
+++ b/keyboards/lets_split/keymaps/DE_simple/rules.mk
@@ -0,0 +1,3 @@
1ifndef QUANTUM_DIR
2 include ../../../../Makefile
3endif