aboutsummaryrefslogtreecommitdiff
path: root/keyboards/c39
diff options
context:
space:
mode:
authorkuchosauronad0 <22005492+kuchosauronad0@users.noreply.github.com>2019-08-17 08:19:35 -0700
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-08-17 08:19:35 -0700
commit683605a9dc285c5e8f6328ec81a29505892287b7 (patch)
tree82254e30a4aa0c0774aec22a6c7f69a1045b83d0 /keyboards/c39
parentc178bbf2e50424ee54fbd3a43609089470129c34 (diff)
downloadqmk_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.h43
-rw-r--r--keyboards/c39/keymaps/kuchosauronad0/keymap.c137
-rw-r--r--keyboards/c39/keymaps/kuchosauronad0/readme.md1
-rw-r--r--keyboards/c39/keymaps/kuchosauronad0/rules.mk20
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/*
3This is the c configuration file for the keymap
4
5Copyright 2012 Jun Wako <wakojun@gmail.com>
6Copyright 2015 Jack Humbert
7Copyright 2017 Art Ortenburger
8
9This program is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 2 of the License, or
12(at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along 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/*
2This is the keymap for the keyboard
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
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 INDICATOR_LIGHTS
26extern userspace_config_t userspace_config;
27
28uint8_t last_mod;
29uint8_t last_led;
30uint8_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
45const 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
129void 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 @@
1BOOTLOADER = caterina
2BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
3MOUSEKEY_ENABLE = no # Mouse keys(+4700)
4EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
5CONSOLE_ENABLE = no # Console for debug(+400)
6COMMAND_ENABLE = no # Commands for debug and configuration
7LEADER_ENABLE = yes # default is yes
8TAP_DANCE_ENABLE = no #(+1254)
9UNICODE_ENABLE = no #(+1134)
10UNICODEMAP_ENABLE = yes
11RGBLIGHT_ENABLE = no
12AUDIO_ENABLE = no
13NKRO_ENABLE = yes
14
15INDICATOR_LIGHTS = no
16MACROS_ENABLED = no
17RGBLIGHT_TWINKLE = no
18RGBLIGHT_STARTUP_ANIMATION = no
19
20NO_SECRETS = yes