diff options
author | kuchosauronad0 <22005492+kuchosauronad0@users.noreply.github.com> | 2019-08-17 08:19:35 -0700 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-08-17 08:19:35 -0700 |
commit | 683605a9dc285c5e8f6328ec81a29505892287b7 (patch) | |
tree | 82254e30a4aa0c0774aec22a6c7f69a1045b83d0 /keyboards/c39 | |
parent | c178bbf2e50424ee54fbd3a43609089470129c34 (diff) | |
download | qmk_firmware-683605a9dc285c5e8f6328ec81a29505892287b7.tar.gz qmk_firmware-683605a9dc285c5e8f6328ec81a29505892287b7.zip |
Userspace kuchosauronad0 (#6541)
* initial commit
* Update layout. Tweak rules.mk
* initial userspace configuration for kuchosauronad0
* modified userspace for kuchosauronad0
* added OSL_UNI
* clean up
* clean up
* style
* style
* added more unicode
* fixed representation
* fixed representation
* added comments
* added comments, restructure
* accidently one line
* restructure
* restructure
* added git_lazy(void)
* fixed indenting and added missing symbols
* fixed indent
* fixed indent
* update
* change tapping_term to 150
* added UNICODEMAP_ENABLE block
* replace register with tap_code where possible
* formatting
* rearrange sequences
* clean up
* clean up
* added unicode layer
* disabled tap dance
* add files for encoder
* removed unnecessary include
* removed unnecessary stuff
Diffstat (limited to 'keyboards/c39')
-rw-r--r-- | keyboards/c39/keymaps/kuchosauronad0/config.h | 43 | ||||
-rw-r--r-- | keyboards/c39/keymaps/kuchosauronad0/keymap.c | 137 | ||||
-rw-r--r-- | keyboards/c39/keymaps/kuchosauronad0/readme.md | 1 | ||||
-rw-r--r-- | keyboards/c39/keymaps/kuchosauronad0/rules.mk | 20 |
4 files changed, 201 insertions, 0 deletions
diff --git a/keyboards/c39/keymaps/kuchosauronad0/config.h b/keyboards/c39/keymaps/kuchosauronad0/config.h new file mode 100644 index 000000000..c214ddb75 --- /dev/null +++ b/keyboards/c39/keymaps/kuchosauronad0/config.h | |||
@@ -0,0 +1,43 @@ | |||
1 | |||
2 | /* | ||
3 | This is the c configuration file for the keymap | ||
4 | |||
5 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
6 | Copyright 2015 Jack Humbert | ||
7 | Copyright 2017 Art Ortenburger | ||
8 | |||
9 | This program is free software: you can redistribute it and/or modify | ||
10 | it under the terms of the GNU General Public License as published by | ||
11 | the Free Software Foundation, either version 2 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | This program is distributed in the hope that it will be useful, | ||
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | GNU General Public License for more details. | ||
18 | |||
19 | You should have received a copy of the GNU General Public License | ||
20 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
21 | */ | ||
22 | |||
23 | #pragma once | ||
24 | |||
25 | /* key combination for magic key command */ | ||
26 | #undef IS_COMMAND | ||
27 | #define IS_COMMAND() ( \ | ||
28 | get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_LALT)) \ | ||
29 | ) | ||
30 | |||
31 | //#ifdef RGBLIGHT_ENABLE | ||
32 | //#define RGB_DI_PIN D3 | ||
33 | //#define RGBLED_NUM 16 // Number of LEDs | ||
34 | //#define RGBLED_SPLIT { 8, 8 } | ||
35 | // | ||
36 | //#define RGBLIGHT_HUE_STEP 12 | ||
37 | //#define RGBLIGHT_SAT_STEP 12 | ||
38 | //#define RGBLIGHT_VAL_STEP 12 | ||
39 | //#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2 | ||
40 | //#define RGBLIGHT_EFFECT_SNAKE_LENGTH 2 | ||
41 | //#define RGBLIGHT_EFFECT_BREATHE_CENTER 1 | ||
42 | //#endif // RGBLIGHT_ENABLE | ||
43 | |||
diff --git a/keyboards/c39/keymaps/kuchosauronad0/keymap.c b/keyboards/c39/keymaps/kuchosauronad0/keymap.c new file mode 100644 index 000000000..738408cc3 --- /dev/null +++ b/keyboards/c39/keymaps/kuchosauronad0/keymap.c | |||
@@ -0,0 +1,137 @@ | |||
1 | /* | ||
2 | This is the keymap for the keyboard | ||
3 | |||
4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
5 | Copyright 2015 Jack Humbert | ||
6 | Copyright 2017 Art Ortenburger | ||
7 | |||
8 | This program is free software: you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation, either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along 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 INDICATOR_LIGHTS | ||
26 | extern userspace_config_t userspace_config; | ||
27 | |||
28 | uint8_t last_mod; | ||
29 | uint8_t last_led; | ||
30 | uint8_t last_osm; | ||
31 | #endif | ||
32 | |||
33 | #define LAYOUT_collide39_base( \ | ||
34 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \ | ||
35 | K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, \ | ||
36 | K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \ | ||
37 | ) \ | ||
38 | LAYOUT_wrapper( \ | ||
39 | MT(MOD_LALT,KC_TAB), K01, K02, K03, K04, K05, LT(RAISE,KC_PGUP), K06, K07, K08, K09, K0A, KC_BSPC, \ | ||
40 | SFT_T(KC_ESC), K11, K12, K13, K14, K15, LT(LOWER,KC_PGDN), K16, K17, K18, K19, K1A, SFT_T(KC_ENT), \ | ||
41 | MT(MOD_LCTL,KC_DEL), K21, K22, K23, K24, K25, KC_SPACE, K26, K27, K28, K29, K2A, KC_LEAD \ | ||
42 | ) | ||
43 | #define LAYOUT_collide39_base_wrapper(...) LAYOUT_collide39_base(__VA_ARGS__) | ||
44 | |||
45 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
46 | |||
47 | [_QWERTY] = LAYOUT_collide39_base_wrapper( | ||
48 | _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, | ||
49 | _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, | ||
50 | _________________QWERTY_L3_________________, _________________QWERTY_R3_________________ | ||
51 | ), | ||
52 | |||
53 | [_COLEMAK] = LAYOUT_collide39_base_wrapper( | ||
54 | _________________COLEMAK_L1________________, _________________COLEMAK_R1________________, | ||
55 | _________________COLEMAK_L2________________, _________________COLEMAK_R2________________, | ||
56 | _________________COLEMAK_L3________________, _________________COLEMAK_R3________________ | ||
57 | ), | ||
58 | |||
59 | [_DVORAK] = LAYOUT_collide39_base_wrapper( | ||
60 | _________________DVORAK_L1_________________, _________________DVORAK_R1_________________, | ||
61 | _________________DVORAK_L2_________________, _________________DVORAK_R2_________________, | ||
62 | _________________DVORAK_L3_________________, _________________DVORAK_R3_________________ | ||
63 | ), | ||
64 | |||
65 | #ifdef UNICODEMAP_ENABLE | ||
66 | [_UNICODE] = LAYOUT_collide39_base_wrapper( | ||
67 | _______________UNICODE_L1__________________, _______________UNICODE_R1__________________, | ||
68 | _______________UNICODE_L2__________________, _______________UNICODE_R2__________________, | ||
69 | _______________UNICODE_L3__________________, _______________UNICODE_R3__________________ | ||
70 | ), | ||
71 | #endif | ||
72 | [_WORKMAN] = LAYOUT_collide39_base_wrapper( | ||
73 | _________________WORKMAN_L1________________, _________________WORKMAN_R1________________, | ||
74 | _________________WORKMAN_L2________________, _________________WORKMAN_R2________________, | ||
75 | _________________WORKMAN_L3________________, _________________WORKMAN_R3________________ | ||
76 | ), | ||
77 | |||
78 | [_NORMAN] = LAYOUT_collide39_base_wrapper( | ||
79 | _________________NORMAN_L1_________________, _________________NORMAN_L1_________________, | ||
80 | _________________NORMAN_L2_________________, _________________NORMAN_R2_________________, | ||
81 | _________________NORMAN_L3_________________, _________________NORMAN_R3_________________ | ||
82 | ), | ||
83 | |||
84 | [_MALTRON] = LAYOUT_collide39_base_wrapper( | ||
85 | _________________MALTRON_L1________________, _________________MALTRON_R1________________, | ||
86 | _________________MALTRON_L2________________, _________________MALTRON_R2________________, | ||
87 | _________________MALTRON_L3________________, _________________MALTRON_R3________________ | ||
88 | ), | ||
89 | |||
90 | [_EUCALYN] = LAYOUT_collide39_base_wrapper( | ||
91 | _________________EUCALYN_L1________________, _________________EUCALYN_R1________________, | ||
92 | _________________EUCALYN_L2________________, _________________EUCALYN_R2________________, | ||
93 | _________________EUCALYN_L3________________, _________________EUCALYN_R3________________ | ||
94 | ), | ||
95 | |||
96 | [_CARPLAX] = LAYOUT_collide39_base_wrapper( | ||
97 | _____________CARPLAX_QFMLWY_L1_____________, _____________CARPLAX_QFMLWY_R1_____________, | ||
98 | _____________CARPLAX_QFMLWY_L2_____________, _____________CARPLAX_QFMLWY_R2_____________, | ||
99 | _____________CARPLAX_QFMLWY_L3_____________, _____________CARPLAX_QFMLWY_R3_____________ | ||
100 | ), | ||
101 | |||
102 | |||
103 | [_MODS] = LAYOUT_wrapper(\ | ||
104 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
105 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
106 | KC_LSFT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
107 | ), | ||
108 | |||
109 | [_LOWER] = LAYOUT_wrapper(\ | ||
110 | KC_TILD, _________________LOWER_L1__________________, _______, _________________LOWER_R1__________________, KC_BSPC, | ||
111 | KC_F11, _________________LOWER_L2__________________, _______, _________________LOWER_R2__________________, KC_PIPE, | ||
112 | KC_F12, _________________LOWER_L3__________________, _______, _________________LOWER_R3__________________, _______ | ||
113 | ), | ||
114 | |||
115 | [_RAISE] = LAYOUT_wrapper(\ | ||
116 | KC_GRV, _________________RAISE_L1__________________, _______, _________________RAISE_R1__________________, KC_BSPC, | ||
117 | _______, _________________RAISE_L2__________________, _______, _________________RAISE_R2__________________, KC_BSLS, | ||
118 | _______, _________________RAISE_L3__________________, _______, _________________RAISE_R3__________________, _______ | ||
119 | ), | ||
120 | |||
121 | [_ADJUST] = LAYOUT_wrapper(\ | ||
122 | KC_MAKE, _________________ADJUST_L1_________________, _______, _________________ADJUST_R1_________________, KC_RESET, | ||
123 | VRSN, _________________ADJUST_L2_________________, _______, _________________ADJUST_R2_________________, EEP_RST, | ||
124 | TG_MODS, _________________ADJUST_L3_________________, _______, _________________ADJUST_R3_________________, KC_MPLY | ||
125 | ) | ||
126 | |||
127 | }; | ||
128 | |||
129 | void matrix_init_keymap(void) { | ||
130 | #ifndef CONVERT_TO_PROTON_C | ||
131 | setPinOutput(D5); | ||
132 | writePinHigh(D5); | ||
133 | setPinOutput(B0); | ||
134 | writePinHigh(B0); | ||
135 | #endif | ||
136 | } | ||
137 | |||
diff --git a/keyboards/c39/keymaps/kuchosauronad0/readme.md b/keyboards/c39/keymaps/kuchosauronad0/readme.md new file mode 100644 index 000000000..60b971e4e --- /dev/null +++ b/keyboards/c39/keymaps/kuchosauronad0/readme.md | |||
@@ -0,0 +1 @@ | |||
# Personal keymap for the collide39 | |||
diff --git a/keyboards/c39/keymaps/kuchosauronad0/rules.mk b/keyboards/c39/keymaps/kuchosauronad0/rules.mk new file mode 100644 index 000000000..e2be2e5ac --- /dev/null +++ b/keyboards/c39/keymaps/kuchosauronad0/rules.mk | |||
@@ -0,0 +1,20 @@ | |||
1 | BOOTLOADER = caterina | ||
2 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
3 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
4 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
5 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
6 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
7 | LEADER_ENABLE = yes # default is yes | ||
8 | TAP_DANCE_ENABLE = no #(+1254) | ||
9 | UNICODE_ENABLE = no #(+1134) | ||
10 | UNICODEMAP_ENABLE = yes | ||
11 | RGBLIGHT_ENABLE = no | ||
12 | AUDIO_ENABLE = no | ||
13 | NKRO_ENABLE = yes | ||
14 | |||
15 | INDICATOR_LIGHTS = no | ||
16 | MACROS_ENABLED = no | ||
17 | RGBLIGHT_TWINKLE = no | ||
18 | RGBLIGHT_STARTUP_ANIMATION = no | ||
19 | |||
20 | NO_SECRETS = yes | ||