aboutsummaryrefslogtreecommitdiff
path: root/keyboards/c39/keymaps/kuchosauronad0/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/c39/keymaps/kuchosauronad0/keymap.c')
-rw-r--r--keyboards/c39/keymaps/kuchosauronad0/keymap.c131
1 files changed, 131 insertions, 0 deletions
diff --git a/keyboards/c39/keymaps/kuchosauronad0/keymap.c b/keyboards/c39/keymaps/kuchosauronad0/keymap.c
new file mode 100644
index 000000000..231e3cf44
--- /dev/null
+++ b/keyboards/c39/keymaps/kuchosauronad0/keymap.c
@@ -0,0 +1,131 @@
1/*
2This is the keymap for the keyboard
3
4Copyright 2012 Jun Wako <[email protected]>
5Copyright 2015 Jack Humbert
6Copyright 2017 Art Ortenburger
7
8This program is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 2 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#include QMK_KEYBOARD_H
23#include "kuchosauronad0.h"
24
25#ifdef RGBLIGHT_ENABLE
26 extern rgblight_config_t rgblight_config;
27#endif
28
29#ifdef INDICATOR_LIGHTS
30 extern userspace_config_t userspace_config;
31 uint8_t last_mod;
32 uint8_t last_led;
33 uint8_t last_osm;
34#endif
35
36
37#define LAYOUT_collide39_base( \
38 K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
39 K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \
40 K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
41 ) \
42 LAYOUT_wrapper( \
43 MT(MOD_LALT,KC_TAB), K01, K02, K03, K04, K05, LT(RAISE,KC_PGUP), K06, K07, K08, K09, K0A, KC_BSPC, \
44 SFT_T(KC_ESC), K11, K12, K13, K14, K15, LT(LOWER,KC_PGDN), K16, K17, K18, K19, K1A, SFT_T(KC_ENT), \
45 MT(MOD_LCTL,KC_DEL), K21, K22, K23, K24, K25, KC_SPACE, K26, K27, K28, K29, K2A, KC_LEAD \
46 )
47
48/*
49 * ,------. ,----------------------------------------------------------------------------. ,------.
50 * |ALTTAB| | Q | W | E | R | T |RSE/PU| Y | U | I | O | P | | BSPC |
51 * |------| |------+------+------+------+------+------+------+------+------+------+------+ |------|
52 * |SF/ESC| | A | S | D | F | G |LWR/PD| H | J | K | L | ; | | ENTER|
53 * |------| |------+------+------+------+------+------+------+------+------+------+------+ |------|
54 * |CTLDEL| | Z | X | C | V | B |SPACE | N | M | , | . | / | |LEADER|
55 * `------' `----------------------------------------------------------------------------' `------'
56 */
57
58const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
59
60 [_QWERTY] = LAYOUT_collide39_base_wrapper(
61 _________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
62 _________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
63 _________________QWERTY_L3_________________, _________________QWERTY_R3_________________
64 ),
65
66 [_COLEMAK] = LAYOUT_collide39_base_wrapper(
67 _________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
68 _________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
69 _________________COLEMAK_L3________________, _________________COLEMAK_R3________________
70 ),
71
72 [_DVORAK] = LAYOUT_collide39_base_wrapper(
73 _________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
74 _________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
75 _________________DVORAK_L3_________________, _________________DVORAK_R3_________________
76 ),
77
78#ifdef UNICODEMAP_ENABLE
79 [_UNICODE] = LAYOUT_collide39_base_wrapper(
80 _______________UNICODE_L1__________________, _______________UNICODE_R1__________________,
81 _______________UNICODE_L2__________________, _______________UNICODE_R2__________________,
82 _______________UNICODE_L3__________________, _______________UNICODE_R3__________________
83 ),
84#endif
85 [_WORKMAN] = LAYOUT_collide39_base_wrapper(
86 _________________RGB_UP____________________, _________________RGB_UP____________________,
87 _________________RGB_CENTER________________, _________________RGB_CENTER________________,
88 _________________RGB_DOWN__________________, _________________RGB_DOWN__________________
89 ),
90
91 [_PLOVER] = LAYOUT_wrapper(\
92 KC_1, _________________PLOVER_L1_________________, _______, _________________PLOVER_R1_________________, KC_1,
93 KC_NO, _________________PLOVER_L2_________________, _______, _________________PLOVER_R2_________________, KC_NO,
94 KC_NO, _________________PLOVER_L3_________________, _______, _________________PLOVER_R3_________________, _______
95 ),
96
97 [_MODS] = LAYOUT_wrapper(\
98 KC_LALT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_RALT,
99 KC_LCTL, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_RCTL,
100 KC_LSFT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
101 ),
102
103 [_LOWER] = LAYOUT_wrapper(\
104 KC_TILD, _________________LOWER_L1__________________, _______, _________________LOWER_R1__________________, KC_BSPC,
105 KC_F11, _________________LOWER_L2__________________, _______, _________________LOWER_R2__________________, KC_PIPE,
106 KC_F12, _________________LOWER_L3__________________, _______, _________________LOWER_R3__________________, _______
107 ),
108
109 [_RAISE] = LAYOUT_wrapper(\
110 KC_GRV, _________________RAISE_L1__________________, _______, _________________RAISE_R1__________________, KC_BSPC,
111 _______, _________________RAISE_L2__________________, _______, _________________RAISE_R2__________________, KC_BSLS,
112 _______, _________________RAISE_L3__________________, _______, _________________RAISE_R3__________________, _______
113 ),
114
115 [_ADJUST] = LAYOUT_wrapper(\
116 KC_MAKE, _________________ADJUST_L1_________________, _______, _________________ADJUST_R1_________________, KC_RESET,
117 VRSN, _________________ADJUST_L2_________________, _______, _________________ADJUST_R2_________________, EEP_RST,
118 DEBUG, _________________ADJUST_L3_________________, _______, _________________ADJUST_R3_________________, _______
119 )
120
121};
122
123void matrix_init_keymap(void) {
124 #ifndef CONVERT_TO_PROTON_C
125 setPinOutput(D5);
126 writePinHigh(D5);
127 setPinOutput(B0);
128 writePinHigh(B0);
129 #endif
130}
131