diff options
author | Kaylyn Bogle <kaylyn@kaylyn.ink> | 2019-07-09 08:01:11 -0700 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-07-09 08:01:11 -0700 |
commit | 207e50c5347adeb6d66c092d5f41d7dc52d4a166 (patch) | |
tree | ea1079811a8dd9f861a8812b8dd06568f547df69 | |
parent | 6cccc22be933d0ee59368979bc58c3a7d02e3d7b (diff) | |
download | qmk_firmware-207e50c5347adeb6d66c092d5f41d7dc52d4a166.tar.gz qmk_firmware-207e50c5347adeb6d66c092d5f41d7dc52d4a166.zip |
Add G35 keyboard (#6263)
-rw-r--r-- | keyboards/mechllama/g35/config.h | 39 | ||||
-rw-r--r-- | keyboards/mechllama/g35/g35.c | 16 | ||||
-rw-r--r-- | keyboards/mechllama/g35/g35.h | 33 | ||||
-rw-r--r-- | keyboards/mechllama/g35/info.json | 14 | ||||
-rw-r--r-- | keyboards/mechllama/g35/keymaps/default/keymap.c | 72 | ||||
-rw-r--r-- | keyboards/mechllama/g35/keymaps/default/readme.md | 4 | ||||
-rw-r--r-- | keyboards/mechllama/g35/readme.md | 15 | ||||
-rw-r--r-- | keyboards/mechllama/g35/rules.mk | 14 | ||||
-rw-r--r-- | keyboards/mechllama/g35/v1/config.h | 25 | ||||
-rw-r--r-- | keyboards/mechllama/g35/v1/rules.mk | 0 | ||||
-rw-r--r-- | keyboards/mechllama/g35/v2/config.h | 25 | ||||
-rw-r--r-- | keyboards/mechllama/g35/v2/rules.mk | 0 |
12 files changed, 257 insertions, 0 deletions
diff --git a/keyboards/mechllama/g35/config.h b/keyboards/mechllama/g35/config.h new file mode 100644 index 000000000..61400fe9c --- /dev/null +++ b/keyboards/mechllama/g35/config.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | Copyright 2019 Kaylyn Bogle | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #include "config_common.h" | ||
21 | |||
22 | #define VENDOR_ID 0xCEEB | ||
23 | #define PRODUCT_ID 0x0035 | ||
24 | #define MANUFACTURER kaylynb | ||
25 | #define PRODUCT MechLlama G35 | ||
26 | #define DESCRIPTION 35 key macropad | ||
27 | |||
28 | #define MATRIX_ROWS 5 | ||
29 | #define MATRIX_COLS 7 | ||
30 | |||
31 | #define DIODE_DIRECTION COL2ROW | ||
32 | |||
33 | #define QMK_ESC_OUTPUT D6 | ||
34 | #define QMK_ESC_INPUT F5 | ||
35 | #define QMK_SPEAKER D2 | ||
36 | |||
37 | #define RGB_DI_PIN F7 | ||
38 | |||
39 | #define FORCE_NKRO | ||
diff --git a/keyboards/mechllama/g35/g35.c b/keyboards/mechllama/g35/g35.c new file mode 100644 index 000000000..e3925674f --- /dev/null +++ b/keyboards/mechllama/g35/g35.c | |||
@@ -0,0 +1,16 @@ | |||
1 | /* Copyright 2019 Kaylyn Bogle | ||
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 | #include "g35.h" | ||
diff --git a/keyboards/mechllama/g35/g35.h b/keyboards/mechllama/g35/g35.h new file mode 100644 index 000000000..227527245 --- /dev/null +++ b/keyboards/mechllama/g35/g35.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* Copyright 2019 Kaylyn Bogle | ||
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 | #pragma once | ||
17 | |||
18 | #include "quantum.h" | ||
19 | |||
20 | #define LAYOUT( \ | ||
21 | K00, K01, K02, K03, K04, K05, K06, \ | ||
22 | K10, K11, K12, K13, K14, K15, K16, \ | ||
23 | K20, K21, K22, K23, K24, K25, K26, \ | ||
24 | K30, K31, K32, K33, K34, K35, K36, \ | ||
25 | K40, K41, K42, K43, K44, K45, K46 \ | ||
26 | ) \ | ||
27 | { \ | ||
28 | { K00, K01, K02, K03, K04, K05, K06, }, \ | ||
29 | { K10, K11, K12, K13, K14, K15, K16, }, \ | ||
30 | { K20, K21, K22, K23, K24, K25, K26, }, \ | ||
31 | { K30, K31, K32, K33, K34, K35, K36, }, \ | ||
32 | { K40, K41, K42, K43, K44, K45, K46 } \ | ||
33 | } | ||
diff --git a/keyboards/mechllama/g35/info.json b/keyboards/mechllama/g35/info.json new file mode 100644 index 000000000..f37ca63b0 --- /dev/null +++ b/keyboards/mechllama/g35/info.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "keyboard_name": "G35", | ||
3 | "url": "https://github.com/kaylynb/MechLlama-G35", | ||
4 | "maintainer": "kaylynb", | ||
5 | "width": 7, | ||
6 | "height": 5.75, | ||
7 | "key_count": 35, | ||
8 | "layouts": { | ||
9 | "LAYOUT": { | ||
10 | "layout": [{"label":"F1", "x":0, "y":0.5}, {"label":"Esc", "x":1, "y":0.5}, {"label":"1", "x":2, "y":0}, {"label":"2", "x":3, "y":0.15}, {"label":"3", "x":4, "y":0}, {"label":"4", "x":5, "y":0}, {"label":"5", "x":6, "y":0}, {"label":"F2", "x":0, "y":1.5}, {"label":"Tab", "x":1, "y":1.5}, {"label":"Q", "x":2, "y":1}, {"label":"W", "x":3, "y":1.15}, {"label":"E", "x":4, "y":1}, {"label":"R", "x":5, "y":1}, {"label":"T", "x":6, "y":1}, {"label":"F3", "x":0, "y":2.5}, {"label":"Shift", "x":1, "y":2.5}, {"label":"A", "x":2, "y":2}, {"label":"S", "x":3, "y":2.15}, {"label":"D", "x":4, "y":2}, {"label":"F", "x":5, "y":2}, {"label":"G", "x":6, "y":2}, {"label":"F4", "x":0, "y":3.5}, {"label":"Ctrl", "x":1, "y":3.5}, {"label":"Z", "x":2, "y":3}, {"label":"X", "x":3, "y":3.15}, {"label":"C", "x":4, "y":3}, {"label":"V", "x":5, "y":3}, {"label":"B", "x":6, "y":3}, {"label":"F5", "x":0, "y":4.5}, {"label":"Super", "x":1, "y":4.5}, {"label":"Alt", "x":2, "y":4, "h":1.5}, {"label":"Bksp", "x":3, "y":4.25, "h":1.25}, {"label":"Enter", "x":4, "y":4, "h":1.5}, {"label":"Space", "x":5, "y":4, "h":1.75}, {"label":"Fn", "x":6, "y":4, "h":1.75}] | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | rt | ||
diff --git a/keyboards/mechllama/g35/keymaps/default/keymap.c b/keyboards/mechllama/g35/keymaps/default/keymap.c new file mode 100644 index 000000000..4b7bf7651 --- /dev/null +++ b/keyboards/mechllama/g35/keymaps/default/keymap.c | |||
@@ -0,0 +1,72 @@ | |||
1 | /* Copyright 2019 Kaylyn Bogle | ||
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 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | enum layers { | ||
19 | _BASE = 0, | ||
20 | _ADJUST, | ||
21 | }; | ||
22 | |||
23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
24 | [_BASE] = LAYOUT( | ||
25 | //┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ | ||
26 | KC_F1, KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, | ||
27 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
28 | KC_F2, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, | ||
29 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
30 | KC_F3, KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_G, | ||
31 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
32 | KC_F4, KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, | ||
33 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
34 | // | ||
35 | MO(_ADJUST),KC_LGUI, KC_LALT, KC_BSPC, KC_ENT, KC_SPC, KC_MINUS | ||
36 | //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ | ||
37 | ), | ||
38 | [_ADJUST] = LAYOUT( | ||
39 | //┌────────┬────────┬────────┬────────┬────────┬────────┬────────┐ | ||
40 | RGB_TOG,TO(_BASE),XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RESET, | ||
41 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
42 | RGB_M_K, XXXXXXX, RGB_RMOD,RGB_HUI, RGB_MOD, XXXXXXX, XXXXXXX, | ||
43 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┤ | ||
44 | XXXXXXX, XXXXXXX, RGB_SAD, RGB_HUD, RGB_SAI, XXXXXXX, XXXXXXX, | ||
45 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼ | ||
46 | XXXXXXX, XXXXXXX, RGB_VAD, XXXXXXX, RGB_VAI, XXXXXXX, XXXXXXX, | ||
47 | //├────────┼────────┼────────┼────────┼────────┼────────┼────────┼ | ||
48 | // | ||
49 | _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX | ||
50 | //└────────┴────────┴────────┴────────┴────────┴────────┴────────┘ | ||
51 | ), | ||
52 | }; | ||
53 | |||
54 | #if defined(OLED_DRIVER_ENABLE) | ||
55 | const char* get_layer_name(uint8_t layer) { | ||
56 | switch (layer) { | ||
57 | case _BASE: | ||
58 | return PSTR("Default"); | ||
59 | break; | ||
60 | case _ADJUST: | ||
61 | return PSTR("Adjust"); | ||
62 | break; | ||
63 | default: | ||
64 | return PSTR("Unknown"); | ||
65 | break; | ||
66 | } | ||
67 | } | ||
68 | |||
69 | void oled_task_user(void) { | ||
70 | oled_write_ln_P(get_layer_name(biton32(layer_state)), false); | ||
71 | } | ||
72 | #endif | ||
diff --git a/keyboards/mechllama/g35/keymaps/default/readme.md b/keyboards/mechllama/g35/keymaps/default/readme.md new file mode 100644 index 000000000..200a42f19 --- /dev/null +++ b/keyboards/mechllama/g35/keymaps/default/readme.md | |||
@@ -0,0 +1,4 @@ | |||
1 |  | ||
2 | # Default G35 Layout | ||
3 | |||
4 | This is the default layout for the G35. | ||
diff --git a/keyboards/mechllama/g35/readme.md b/keyboards/mechllama/g35/readme.md new file mode 100644 index 000000000..e0d895b4e --- /dev/null +++ b/keyboards/mechllama/g35/readme.md | |||
@@ -0,0 +1,15 @@ | |||
1 | # MechLlama G35 | ||
2 | |||
3 |  | ||
4 | |||
5 | A 35 key left-handed columnar layout macropad. | ||
6 | |||
7 | Keyboard Maintainer: [Kaylyn Bogle](https://github.com/kaylynb/) | ||
8 | Hardware Supported: G35 v1 & v2 | ||
9 | Hardware Availability: [KiCad and Gerbers](https://github.com/kaylynb/MechLlama-G35) | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make mechllama/g35/v2:default | ||
14 | |||
15 | 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/mechllama/g35/rules.mk b/keyboards/mechllama/g35/rules.mk new file mode 100644 index 000000000..1e1487513 --- /dev/null +++ b/keyboards/mechllama/g35/rules.mk | |||
@@ -0,0 +1,14 @@ | |||
1 | MCU = atmega32u4 | ||
2 | F_CPU = 16000000 | ||
3 | ARCH = AVR8 | ||
4 | F_USB = $(F_CPU) | ||
5 | |||
6 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
7 | |||
8 | BOOTLOADER = atmel-dfu | ||
9 | |||
10 | NKRO_ENABLE = yes | ||
11 | OLED_DRIVER_ENABLE = yes | ||
12 | RGBLIGHT_ENABLE = yes | ||
13 | |||
14 | DEFAULT_FOLDER = mechllama/g35/v2 | ||
diff --git a/keyboards/mechllama/g35/v1/config.h b/keyboards/mechllama/g35/v1/config.h new file mode 100644 index 000000000..9e7be98ea --- /dev/null +++ b/keyboards/mechllama/g35/v1/config.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | Copyright 2019 Kaylyn Bogle | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #define DEVICE_VER 0x0001 | ||
21 | |||
22 | #define MATRIX_ROW_PINS { F5, F6, F4, F1, D4 } | ||
23 | #define MATRIX_COL_PINS { D6, D7, B4, B5, B6, F0, D5 } | ||
24 | |||
25 | #define RGBLED_NUM 41 | ||
diff --git a/keyboards/mechllama/g35/v1/rules.mk b/keyboards/mechllama/g35/v1/rules.mk new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/keyboards/mechllama/g35/v1/rules.mk | |||
diff --git a/keyboards/mechllama/g35/v2/config.h b/keyboards/mechllama/g35/v2/config.h new file mode 100644 index 000000000..09d5f607d --- /dev/null +++ b/keyboards/mechllama/g35/v2/config.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | Copyright 2019 Kaylyn Bogle | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #pragma once | ||
19 | |||
20 | #define DEVICE_VER 0x0002 | ||
21 | |||
22 | #define MATRIX_ROW_PINS { F5, F4, F1, F0, D4 } | ||
23 | #define MATRIX_COL_PINS { D6, D7, B4, B5, B6, F6, D5 } | ||
24 | |||
25 | #define RGBLED_NUM 6 | ||
diff --git a/keyboards/mechllama/g35/v2/rules.mk b/keyboards/mechllama/g35/v2/rules.mk new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/keyboards/mechllama/g35/v2/rules.mk | |||