aboutsummaryrefslogtreecommitdiff
path: root/keyboards/c39/keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/c39/keymaps')
-rwxr-xr-xkeyboards/c39/keymaps/default/keymap.c45
-rwxr-xr-xkeyboards/c39/keymaps/default/readme.md1
-rw-r--r--keyboards/c39/keymaps/drashna/config.h34
-rwxr-xr-xkeyboards/c39/keymaps/drashna/keymap.c83
-rwxr-xr-xkeyboards/c39/keymaps/drashna/readme.md3
-rw-r--r--keyboards/c39/keymaps/drashna/rules.mk19
-rw-r--r--keyboards/c39/keymaps/kuchosauronad0/config.h34
-rw-r--r--keyboards/c39/keymaps/kuchosauronad0/keymap.c131
-rw-r--r--keyboards/c39/keymaps/kuchosauronad0/readme.md10
-rw-r--r--keyboards/c39/keymaps/kuchosauronad0/rules.mk20
10 files changed, 380 insertions, 0 deletions
diff --git a/keyboards/c39/keymaps/default/keymap.c b/keyboards/c39/keymaps/default/keymap.c
new file mode 100755
index 000000000..9de75190d
--- /dev/null
+++ b/keyboards/c39/keymaps/default/keymap.c
@@ -0,0 +1,45 @@
1#include QMK_KEYBOARD_H
2
3// Each layer gets a name for readability, which is then used in the keymap matrix below.
4// The underscores don't mean anything - you can have a layer called STUFF or any other name.
5// Layer names don't all need to be of the same length, obviously, and you can also skip them
6// entirely and just use numbers.
7#define _QWERTY 0
8#define _FN1 1
9
10// Defines for task manager and such
11#define CALTDEL LCTL(LALT(KC_DEL))
12#define TSKMGR LCTL(LSFT(KC_ESC))
13
14const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
15
16/* Qwerty
17 * ,----------------------------------------------------------------------------. ,-------------.
18 * | Q | W | E | R | T | Bksp | Y | U | I | O | P | | M1 | M2 |
19 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
20 * | A | S | D | F | G | Enter| H | J | K | L | ; | | M3 | M4 |
21 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
22 * | Z | X | C | V | B | FN1 | N | M | , | . | / | | M5 | M6 |
23 * `----------------------------------------------------------------------------' `-------------'
24 */
25[_QWERTY] = LAYOUT(
26 KC_Q, KC_W, KC_E, KC_R, KC_T, KC_BSPC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_1, KC_2,
27 KC_A, KC_S, KC_D, KC_F, KC_G, MT(MOD_LSFT, KC_ENT), KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_3, KC_4,
28 KC_Z, KC_X, KC_C, KC_V, KC_B, LT(_FN1, KC_SPC), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_5, KC_6
29),
30
31/* FN1
32 * ,----------------------------------------------------------------------------. ,-------------.
33 * | 1 | 2 | 3 | 4 | 5 | Bksp | 6 | 7 | 8 | 9 | 0 | | M1 | M2 |
34 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
35 * | 4 | 5 | 6 | + | | Enter| | | | | | | M3 | M4 |
36 * |------+------+------+------+------+------+------+------+------+------+------+ |------+------|
37 * | 7 | 8 | 9 | 0 | | FN1 | | | | | | | M5 | M6 |
38 * `----------------------------------------------------------------------------' `-------------'
39 */
40[_FN1] = LAYOUT(
41 KC_1, KC_2, KC_3, KC_4, KC_5, KC_BSPC, KC_6, KC_7, KC_8, KC_9, KC_0, KC_1, KC_2,
42 KC_4, KC_5, KC_6, KC_PLUS, _______, KC_ENT, _______, _______, _______, _______, _______, KC_3, KC_4,
43 KC_7, KC_8, KC_9, KC_0, _______, _______, _______, _______, _______, _______, _______, KC_5, KC_6
44),
45};
diff --git a/keyboards/c39/keymaps/default/readme.md b/keyboards/c39/keymaps/default/readme.md
new file mode 100755
index 000000000..f5b1b6ac1
--- /dev/null
+++ b/keyboards/c39/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for the C39
diff --git a/keyboards/c39/keymaps/drashna/config.h b/keyboards/c39/keymaps/drashna/config.h
new file mode 100644
index 000000000..e48bc46ca
--- /dev/null
+++ b/keyboards/c39/keymaps/drashna/config.h
@@ -0,0 +1,34 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <[email protected]>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19// place overrides here
20#undef MATRIX_COL_PINS
21#define MATRIX_COL_PINS \
22 { A3, A2, A1, A0, B13, B14, B15, B9, B3, B2, B4, A10, A9 }
23#undef MATRIX_ROW_PINS
24#define MATRIX_ROW_PINS \
25 { B7, B1, B0 }
26
27#define RGB_DI_PIN B10
28#define RGBLED_NUM 15
29
30#define SOLENOID_PIN B11
31
32#define AUDIO_PIN A5
33#define AUDIO_PIN_ALT A4
34#define AUDIO_PIN_ALT_AS_NEGATIVE
diff --git a/keyboards/c39/keymaps/drashna/keymap.c b/keyboards/c39/keymaps/drashna/keymap.c
new file mode 100755
index 000000000..6fd1f1298
--- /dev/null
+++ b/keyboards/c39/keymaps/drashna/keymap.c
@@ -0,0 +1,83 @@
1/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <[email protected]>
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "drashna.h"
18
19/*
20 * The `LAYOUT_base` macro is a template to allow the use of identical
21 * modifiers for the default layouts (eg QWERTY, Colemak, Dvorak, etc), so
22 * that there is no need to set them up for each layout, and modify all of
23 * them if I want to change them. This helps to keep consistency and ease
24 * of use. K## is a placeholder to pass through the individual keycodes
25 */
26// clang-format off
27#define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__)
28#define LAYOUT_base( \
29 K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, \
30 K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
31 K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A \
32 ) \
33 LAYOUT_wrapper( \
34 KC_ESC, K01, K02, K03, K04, K05, KC_NO, K06, K07, K08, K09, K0A, KC_DEL, \
35 ALT_T(KC_TAB), K11, K12, K13, K14, K15, KC_BSPC, K16, K17, K18, K19, K1A, RALT_T(K1B), \
36 KC_MLSF, CTL_T(K21), K22, K23, K24, LT(_LOWER,K25), KC_SPC, LT(_RAISE,K26), K27, K28, K29, RCTL_T(K2A), KC_ENT \
37 )
38#define LAYOUT_base_wrapper(...) LAYOUT_base(__VA_ARGS__)
39
40const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41
42 [_DEFAULT_LAYER_1] = LAYOUT_base_wrapper(
43 _________________QWERTY_L1_________________, _________________QWERTY_R1_________________,
44 _________________QWERTY_L2_________________, _________________QWERTY_R2_________________,
45 _________________QWERTY_L3_________________, _________________QWERTY_R3_________________
46 ),
47
48 [_DEFAULT_LAYER_2] = LAYOUT_base_wrapper(
49 ______________COLEMAK_MOD_DH_L1____________, ______________COLEMAK_MOD_DH_R1____________,
50 ______________COLEMAK_MOD_DH_L2____________, ______________COLEMAK_MOD_DH_R2____________,
51 ______________COLEMAK_MOD_DH_L3____________, ______________COLEMAK_MOD_DH_R3____________
52 ),
53 [_DEFAULT_LAYER_3] = LAYOUT_base_wrapper(
54 _________________COLEMAK_L1________________, _________________COLEMAK_R1________________,
55 _________________COLEMAK_L2________________, _________________COLEMAK_R2________________,
56 _________________COLEMAK_L3________________, _________________COLEMAK_R3________________
57 ),
58
59 [_DEFAULT_LAYER_4] = LAYOUT_base_wrapper(
60 _________________DVORAK_L1_________________, _________________DVORAK_R1_________________,
61 _________________DVORAK_L2_________________, _________________DVORAK_R2_________________,
62 _________________DVORAK_L3_________________, _________________DVORAK_R3_________________
63 ),
64
65 [_LOWER] = LAYOUT_wrapper(
66 KC_TILD, _________________LOWER_L1__________________, _______, _________________LOWER_R1__________________, KC_BSPC,
67 KC_DEL, _________________LOWER_L2__________________, _______, _________________LOWER_R2__________________, KC_PIPE,
68 _______, _________________LOWER_L3__________________, _______, _________________LOWER_R3__________________, _______
69 ),
70
71 [_RAISE] = LAYOUT_wrapper(
72 KC_GRV, _________________RAISE_L1__________________, _______, _________________RAISE_R1__________________, KC_BSPC,
73 KC_DEL, _________________RAISE_L2__________________, _______, _________________RAISE_R2__________________, KC_BSLS,
74 _______, _________________RAISE_L3__________________, _______, _________________RAISE_R3__________________, _______
75 ),
76
77 [_ADJUST] = LAYOUT_wrapper(
78 KC_MAKE, _________________ADJUST_L1_________________, KC_NUKE, _________________ADJUST_R1_________________, KC_RST,
79 VRSN, _________________ADJUST_L2_________________, MG_NKRO, _________________ADJUST_R2_________________, EEP_RST,
80 TG_MODS, _________________ADJUST_L3_________________, KC_RGB_T,_________________ADJUST_R3_________________, RGB_IDL
81 )
82};
83// clang-format on
diff --git a/keyboards/c39/keymaps/drashna/readme.md b/keyboards/c39/keymaps/drashna/readme.md
new file mode 100755
index 000000000..a8efbaa5f
--- /dev/null
+++ b/keyboards/c39/keymaps/drashna/readme.md
@@ -0,0 +1,3 @@
1# @drashna's keymap for the C39
2
3HERE BE DRAGONS
diff --git a/keyboards/c39/keymaps/drashna/rules.mk b/keyboards/c39/keymaps/drashna/rules.mk
new file mode 100644
index 000000000..a6575bbd9
--- /dev/null
+++ b/keyboards/c39/keymaps/drashna/rules.mk
@@ -0,0 +1,19 @@
1# MCU name
2MCU = STM32F303
3BOARD = QMK_PROTON_C
4
5# Bootloader selection
6BOOTLOADER = stm32-dfu
7
8BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite
9MOUSEKEY_ENABLE = yes
10EXTRAKEY_ENABLE = yes
11CONSOLE_ENABLE = yes
12COMMAND_ENABLE = yes
13NKRO_ENABLE = yes
14AUDIO_ENABLE = yes
15UNICODE_ENABLE = yes
16HAPTIC_ENABLE = yes
17HAPTIC_DRIVER = SOLENOID
18
19RGBLIGHT_STARTUP_ANIMATION = yes
diff --git a/keyboards/c39/keymaps/kuchosauronad0/config.h b/keyboards/c39/keymaps/kuchosauronad0/config.h
new file mode 100644
index 000000000..d67935a9f
--- /dev/null
+++ b/keyboards/c39/keymaps/kuchosauronad0/config.h
@@ -0,0 +1,34 @@
1
2/*
3This is the c configuration file for the keymap
4
5Copyright 2012 Jun Wako <[email protected]>
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 D0
33# define RGBLED_NUM 4
34#endif // !RGBLIGHT_ENABLE
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
diff --git a/keyboards/c39/keymaps/kuchosauronad0/readme.md b/keyboards/c39/keymaps/kuchosauronad0/readme.md
new file mode 100644
index 000000000..ff01fb5ff
--- /dev/null
+++ b/keyboards/c39/keymaps/kuchosauronad0/readme.md
@@ -0,0 +1,10 @@
1# Personal keymap for the collide39
2
3## Features:
4
5- leader key
6- combos
7- tap dance
8- rgb backlight for the space key using a chameleon 4x WS28xx leds
9
10#
diff --git a/keyboards/c39/keymaps/kuchosauronad0/rules.mk b/keyboards/c39/keymaps/kuchosauronad0/rules.mk
new file mode 100644
index 000000000..a6304cdf4
--- /dev/null
+++ b/keyboards/c39/keymaps/kuchosauronad0/rules.mk
@@ -0,0 +1,20 @@
1BOOTLOADER = caterina
2BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
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)
9COMBO_ENABLE = yes
10UNICODE_ENABLE = no #(+1134)
11UNICODEMAP_ENABLE = yes
12RGBLIGHT_ENABLE = yes
13AUDIO_ENABLE = no
14NKRO_ENABLE = yes
15
16INDICATOR_LIGHTS = yes
17MACROS_ENABLED = no
18RGBLIGHT_STARTUP_ANIMATION = yes
19
20NO_SECRETS = no