diff options
author | ridingqwerty <george.g.koenig@gmail.com> | 2021-01-15 16:49:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 16:49:49 -0500 |
commit | c628408688306ed3e970505268cc4a235af8a5ff (patch) | |
tree | b7ab0f9b0c2f6c7fc6757dd60d2f114408e377ed | |
parent | 3d70766327422bcd918b6940298f7557ab10d248 (diff) | |
download | qmk_firmware-c628408688306ed3e970505268cc4a235af8a5ff.tar.gz qmk_firmware-c628408688306ed3e970505268cc4a235af8a5ff.zip |
New Keyboard: walletburner/cajal (#10458)
* adding alpha variants
* adding cajal layouts
* adding V2 PCB support
adding additional layouts for new PCB version, and correecting incorrect image in info file
* Cleanup master -- remove alpha9
* Cleanup master -- remove g4m3ralpha
* Cleanup master -- remove cajal & sl40
* Master cleanup -- re-add sl40
* Master cleanup -- correct SL40 image
* New Keyboard: walletburner/cajal
* Added license attribution to *.{c,h} files
* Update keyboards/walletburner/cajal/config.h
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/walletburner/cajal/keymaps/ortho/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Rename 'ortho' keymap to 'default_ortho'
* Update keyboards/walletburner/cajal/cajal.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update readme.md
Adding bootloader instructions.
Co-authored-by: worldspawn00 <mcmancuso@gmail.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
-rw-r--r-- | keyboards/walletburner/cajal/cajal.c | 17 | ||||
-rw-r--r-- | keyboards/walletburner/cajal/cajal.h | 43 | ||||
-rw-r--r-- | keyboards/walletburner/cajal/config.h | 59 | ||||
-rw-r--r-- | keyboards/walletburner/cajal/info.json | 15 | ||||
-rw-r--r-- | keyboards/walletburner/cajal/keymaps/default/keymap.c | 86 | ||||
-rw-r--r-- | keyboards/walletburner/cajal/keymaps/default_ortho/keymap.c | 82 | ||||
-rw-r--r-- | keyboards/walletburner/cajal/readme.md | 23 | ||||
-rw-r--r-- | keyboards/walletburner/cajal/rules.mk | 20 |
8 files changed, 345 insertions, 0 deletions
diff --git a/keyboards/walletburner/cajal/cajal.c b/keyboards/walletburner/cajal/cajal.c new file mode 100644 index 000000000..8536a1025 --- /dev/null +++ b/keyboards/walletburner/cajal/cajal.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.com> | ||
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 "cajal.h" | ||
diff --git a/keyboards/walletburner/cajal/cajal.h b/keyboards/walletburner/cajal/cajal.h new file mode 100644 index 000000000..33976d657 --- /dev/null +++ b/keyboards/walletburner/cajal/cajal.h | |||
@@ -0,0 +1,43 @@ | |||
1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.com> | ||
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 | #include "quantum.h" | ||
20 | |||
21 | #define LAYOUT_stagger( \ | ||
22 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0a, K0b, K0c, K0d, \ | ||
23 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, \ | ||
24 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2c, \ | ||
25 | K30, K31, K32, K33, K36, K38, K39, K3b, K3c, K3d \ | ||
26 | ) { \ | ||
27 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0a, K0b, K0c, K0d }, \ | ||
28 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, KC_NO, KC_NO }, \ | ||
29 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2a, KC_NO, K2c, KC_NO }, \ | ||
30 | { K30, K31, K32, K33, KC_NO, KC_NO, K36, KC_NO, K38, K39, KC_NO, K3b, K3c, K3d } \ | ||
31 | } | ||
32 | |||
33 | #define LAYOUT_ortho( \ | ||
34 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0a, K0b, K0c, K0d, \ | ||
35 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, K1c, \ | ||
36 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2b, K2c, \ | ||
37 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3c, K3d \ | ||
38 | ) { \ | ||
39 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0a, K0b, K0c, K0d }, \ | ||
40 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1a, K1b, K1c, KC_NO }, \ | ||
41 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2a, K2b, K2c, KC_NO }, \ | ||
42 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3a, K3b, K3c, K3d } \ | ||
43 | } | ||
diff --git a/keyboards/walletburner/cajal/config.h b/keyboards/walletburner/cajal/config.h new file mode 100644 index 000000000..f653710e6 --- /dev/null +++ b/keyboards/walletburner/cajal/config.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.com> | ||
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 | #include "config_common.h" | ||
20 | |||
21 | /* USB Device descriptor parameter */ | ||
22 | #define VENDOR_ID 0x5742 // WB | ||
23 | #define PRODUCT_ID 0x6361 // CJ | ||
24 | #define DEVICE_VER 0x0001 | ||
25 | #define MANUFACTURER Walletburner | ||
26 | #define PRODUCT Cajal | ||
27 | |||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 4 | ||
30 | #define MATRIX_COLS 14 | ||
31 | |||
32 | /* key matrix pins */ | ||
33 | #define MATRIX_ROW_PINS { D4, D5, C7, C6 } | ||
34 | #define MATRIX_COL_PINS { F4, F1, F0, E6, B0, B1, B2, B3, D0, D1, D2, D3, B4, F6 } | ||
35 | #define UNUSED_PINS | ||
36 | |||
37 | #define ENCODERS_PAD_A { D6 } | ||
38 | #define ENCODERS_PAD_B { D7 } | ||
39 | |||
40 | /* COL2ROW or ROW2COL */ | ||
41 | #define DIODE_DIRECTION COL2ROW | ||
42 | |||
43 | /* Set 0 if debouncing isn't needed */ | ||
44 | #define DEBOUNCE 5 | ||
45 | |||
46 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
47 | #define LOCKING_SUPPORT_ENABLE | ||
48 | |||
49 | /* Locking resynchronize hack */ | ||
50 | #define LOCKING_RESYNC_ENABLE | ||
51 | |||
52 | #define RGB_DI_PIN F7 | ||
53 | #ifdef RGB_DI_PIN | ||
54 | #define RGBLIGHT_ANIMATIONS | ||
55 | #define RGBLED_NUM 18 | ||
56 | #define RGBLIGHT_HUE_STEP 8 | ||
57 | #define RGBLIGHT_SAT_STEP 8 | ||
58 | #define RGBLIGHT_VAL_STEP 8 | ||
59 | #endif | ||
diff --git a/keyboards/walletburner/cajal/info.json b/keyboards/walletburner/cajal/info.json new file mode 100644 index 000000000..c1aea2f47 --- /dev/null +++ b/keyboards/walletburner/cajal/info.json | |||
@@ -0,0 +1,15 @@ | |||
1 | { | ||
2 | "keyboard_name": "cajal", | ||
3 | "url": "https://qmk.fm/keyboards/", | ||
4 | "maintainer": "worldspawn00", | ||
5 | "width": 14.25, | ||
6 | "height": 4.25, | ||
7 | "layouts": { | ||
8 | "LAYOUT_stagger": { | ||
9 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"[", "x":11, "y":0}, {"label":"Back Space", "x":12, "y":0}, {"label":"RGB", "x":13.25, "y":0.5}, {"label":"", "x":0, "y":1, "w":1.25}, {"label":"A", "x":1.25, "y":1}, {"label":"S", "x":2.25, "y":1}, {"label":"D", "x":3.25, "y":1}, {"label":"F", "x":4.25, "y":1}, {"label":"G", "x":5.25, "y":1}, {"label":"H", "x":6.25, "y":1}, {"label":"J", "x":7.25, "y":1}, {"label":"K", "x":8.25, "y":1}, {"label":"L", "x":9.25, "y":1}, {"label":"'", "x":10.25, "y":1}, {"label":"Return", "x":11.25, "y":1, "w":1.75}, {"label":"Shift", "x":0, "y":2, "w":1.75}, {"label":"Z", "x":1.75, "y":2}, {"label":"X", "x":2.75, "y":2}, {"label":"C", "x":3.75, "y":2}, {"label":"V", "x":4.75, "y":2}, {"label":"B", "x":5.75, "y":2}, {"label":"N", "x":6.75, "y":2}, {"label":"M", "x":7.75, "y":2}, {"label":",", "x":8.75, "y":2}, {"label":".", "x":9.75, "y":2}, {"label":"/", "x":10.75, "y":2, "w":1.25}, {"label":"↑", "x":12.25, "y":2.25}, {"label":"Ctrl", "x":0, "y":3, "w":1.25}, {"label":"Alt", "x":1.25, "y":3}, {"label":"Super", "x":2.25, "y":3, "w":1.25}, {"x":3.5, "y":3, "w":2.25}, {"x":5.75, "y":3, "w":2.75}, {"label":"Ctrl", "x":8.5, "y":3, "w":1.25}, {"label":"Del", "x":9.75, "y":3, "w":1.25}, {"label":"←", "x":11.25, "y":3.25}, {"label":"↓", "x":12.25, "y":3.25}, {"label":"→", "x":13.25, "y":3.25}] | ||
10 | }, | ||
11 | "LAYOUT_ortho": { | ||
12 | "layout": [{"label":"Esc", "x":0, "y":0}, {"label":"Q", "x":1, "y":0}, {"label":"W", "x":2, "y":0}, {"label":"E", "x":3, "y":0}, {"label":"R", "x":4, "y":0}, {"label":"T", "x":5, "y":0}, {"label":"Y", "x":6, "y":0}, {"label":"U", "x":7, "y":0}, {"label":"I", "x":8, "y":0}, {"label":"O", "x":9, "y":0}, {"label":"P", "x":10, "y":0}, {"label":"[", "x":11, "y":0}, {"label":"Back Space", "x":12, "y":0}, {"label":"Knob", "x":13.25, "y":0.5}, {"label":"", "x":0, "y":1}, {"label":"A", "x":1, "y":1}, {"label":"S", "x":2, "y":1}, {"label":"D", "x":3, "y":1}, {"label":"F", "x":4, "y":1}, {"label":"G", "x":5, "y":1}, {"label":"H", "x":6, "y":1}, {"label":"J", "x":7, "y":1}, {"label":"K", "x":8, "y":1}, {"label":"L", "x":9, "y":1}, {"label":";", "x":10, "y":1}, {"label":"'", "x":11, "y":1}, {"label":"Return", "x":12, "y":1}, {"label":"Shift", "x":0, "y":2}, {"label":"Z", "x":1, "y":2}, {"label":"X", "x":2, "y":2}, {"label":"C", "x":3, "y":2}, {"label":"V", "x":4, "y":2}, {"label":"B", "x":5, "y":2}, {"label":"N", "x":6, "y":2}, {"label":"M", "x":7, "y":2}, {"label":",", "x":8, "y":2}, {"label":".", "x":9, "y":2}, {"label":"/", "x":10, "y":2}, {"label":"Shift", "x":11, "y":2}, {"label":"↑", "x":12.25, "y":2.25}, {"label":"Menu", "x":0, "y":3}, {"label":"Ctrl", "x":1, "y":3}, {"label":"Alt", "x":2, "y":3}, {"label":"Super", "x":3, "y":3}, {"label":"⇓", "x":4, "y":3}, {"x":5, "y":3}, {"x":6, "y":3}, {"label":"⇑", "x":7, "y":3}, {"label":"Alt", "x":8, "y":3}, {"label":"Ctrl", "x":9, "y":3}, {"label":"Del", "x":10, "y":3}, {"label":"←", "x":11.25, "y":3.25}, {"label":"↓", "x":12.25, "y":3.25}, {"label":"→", "x":13.25, "y":3.25}] | ||
13 | } | ||
14 | } | ||
15 | } | ||
diff --git a/keyboards/walletburner/cajal/keymaps/default/keymap.c b/keyboards/walletburner/cajal/keymaps/default/keymap.c new file mode 100644 index 000000000..0a9837df7 --- /dev/null +++ b/keyboards/walletburner/cajal/keymaps/default/keymap.c | |||
@@ -0,0 +1,86 @@ | |||
1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.com> | ||
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 QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | |||
21 | [0] = LAYOUT_stagger( | ||
22 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSPC, RGB_TOG, | ||
23 | CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_QUOT, KC_ENT, | ||
24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_LSFT, KC_UP, | ||
25 | KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, MO(2), KC_LEFT, KC_DOWN, KC_RGHT | ||
26 | ), | ||
27 | |||
28 | [1] = LAYOUT_stagger( | ||
29 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_RBRC, KC_BSLS, RGB_MOD, | ||
30 | KC_TRNS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_TRNS, KC_TRNS, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS, KC_PGUP, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_HOME, KC_PGDN, KC_END | ||
33 | ), | ||
34 | |||
35 | [2] = LAYOUT_stagger( | ||
36 | KC_TILD, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SAD, RGB_SAI, KC_TRNS, RGB_VAI, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, RGB_HUD, RGB_VAD, RGB_HUI | ||
40 | ), | ||
41 | |||
42 | [3] = LAYOUT_stagger( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
47 | ) | ||
48 | }; | ||
49 | |||
50 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
51 | switch (get_highest_layer(state)) { | ||
52 | case 1: | ||
53 | writePinHigh(B7); | ||
54 | writePinLow(B6); | ||
55 | break; | ||
56 | case 2: | ||
57 | writePinLow(B7); | ||
58 | writePinHigh(B6); | ||
59 | break; | ||
60 | case 3: | ||
61 | writePinHigh(B7); | ||
62 | writePinHigh(B6); | ||
63 | break; | ||
64 | default: | ||
65 | writePinLow(B7); | ||
66 | writePinLow(B6); | ||
67 | break; | ||
68 | } | ||
69 | return state; | ||
70 | } | ||
71 | |||
72 | bool led_update_user(led_t led_state) { | ||
73 | writePin(B5, led_state.caps_lock); | ||
74 | return false; | ||
75 | } | ||
76 | |||
77 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
78 | if (index == 0) { | ||
79 | if (clockwise) { | ||
80 | tap_code(KC_VOLD); | ||
81 | } else { | ||
82 | tap_code(KC_VOLU); | ||
83 | } | ||
84 | } | ||
85 | } | ||
86 | |||
diff --git a/keyboards/walletburner/cajal/keymaps/default_ortho/keymap.c b/keyboards/walletburner/cajal/keymaps/default_ortho/keymap.c new file mode 100644 index 000000000..c1a3a1e22 --- /dev/null +++ b/keyboards/walletburner/cajal/keymaps/default_ortho/keymap.c | |||
@@ -0,0 +1,82 @@ | |||
1 | /* Copyright 2020 Worldspawn <mcmancuso@gmail.com> | ||
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 QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | |||
21 | [0] = LAYOUT_ortho( | ||
22 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_BSPC, RGB_TOG, | ||
23 | CTL_T(KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_LSFT, KC_UP, | ||
25 | KC_APP, KC_LCTL, KC_LGUI, KC_LALT, MO(1), KC_SPC, KC_SPC, MO(2), KC_RALT, KC_RCTL, KC_DEL, KC_LEFT, KC_DOWN, KC_RGHT | ||
26 | ), | ||
27 | |||
28 | [1] = LAYOUT_ortho( | ||
29 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_RBRC, KC_BSLS, RGB_MOD, | ||
30 | KC_TRNS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_SCLN, KC_TRNS, KC_TRNS, | ||
31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_TRNS, KC_PGUP, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGDN, KC_END | ||
33 | ), | ||
34 | |||
35 | [2] = LAYOUT_ortho( | ||
36 | KC_TILD, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, | ||
37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SAD, RGB_SAI, KC_TRNS, RGB_VAI, | ||
39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MO(3), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_HUD, RGB_VAD, RGB_HUI | ||
40 | ), | ||
41 | |||
42 | [3] = LAYOUT_ortho( | ||
43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS | ||
47 | ) | ||
48 | }; | ||
49 | |||
50 | |||
51 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
52 | writePinLow(B7); | ||
53 | writePinLow(B6); | ||
54 | switch (get_highest_layer(state)) { | ||
55 | case 1: | ||
56 | writePinHigh(B7); | ||
57 | break; | ||
58 | case 2: | ||
59 | writePinHigh(B6); | ||
60 | break; | ||
61 | case 3: | ||
62 | writePinHigh(B7); | ||
63 | writePinHigh(B6); | ||
64 | break; | ||
65 | } | ||
66 | return state; | ||
67 | } | ||
68 | |||
69 | bool led_update_user(led_t led_state) { | ||
70 | writePin(B5, led_state.caps_lock); | ||
71 | return false; | ||
72 | } | ||
73 | |||
74 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
75 | if (index == 0) { | ||
76 | if (clockwise) { | ||
77 | tap_code(KC_VOLD); | ||
78 | } else { | ||
79 | tap_code(KC_VOLU); | ||
80 | } | ||
81 | } | ||
82 | } | ||
diff --git a/keyboards/walletburner/cajal/readme.md b/keyboards/walletburner/cajal/readme.md new file mode 100644 index 000000000..4573e4067 --- /dev/null +++ b/keyboards/walletburner/cajal/readme.md | |||
@@ -0,0 +1,23 @@ | |||
1 | # Cajal | ||
2 | |||
3 |  | ||
4 | |||
5 | The Cajal is a premium 45% keyboard with stagger or ortho layout options. | ||
6 | |||
7 | * Keyboard Maintainer: [worldspawn00](https://github.com/worldspawn00/) | ||
8 | * Hardware Supported: The Cajal PCB and kit. | ||
9 | * Hardware Availability: [PCB & Kit](https://www.walletburner.co/) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make walletburner/cajal:default | ||
14 | |||
15 | make walletburner/cajal:default_ortho | ||
16 | |||
17 | Flashing example for this keyboard: | ||
18 | |||
19 | make walletburner/cajal:default:flash | ||
20 | |||
21 | To put the PCB into bootloader mode: Push the reset button on the bottom of the PCB | ||
22 | |||
23 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/walletburner/cajal/rules.mk b/keyboards/walletburner/cajal/rules.mk new file mode 100644 index 000000000..0bb221f12 --- /dev/null +++ b/keyboards/walletburner/cajal/rules.mk | |||
@@ -0,0 +1,20 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # comment out to disable the options. | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
16 | NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
18 | AUDIO_ENABLE = no | ||
19 | RGBLIGHT_ENABLE = yes | ||
20 | ENCODER_ENABLE = yes # Enable support for EC11 Rotary Encoder | ||