diff options
author | Elliot Powell <32494740+e11i0t23@users.noreply.github.com> | 2021-09-18 19:39:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-18 11:39:58 -0700 |
commit | 4e7133e262acf185fd4dc77a0cfad0083a88fae6 (patch) | |
tree | 104346a2efa89d8ba863acbb792b5d553a92ad39 /keyboards/keebsforall/coarse60 | |
parent | 2c4660e40d7897c60e7f0718f25f866e33137334 (diff) | |
download | qmk_firmware-4e7133e262acf185fd4dc77a0cfad0083a88fae6.tar.gz qmk_firmware-4e7133e262acf185fd4dc77a0cfad0083a88fae6.zip |
[Keyboard] Add support for Coarse60 (#14416)
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/keebsforall/coarse60')
-rw-r--r-- | keyboards/keebsforall/coarse60/chconf.h | 31 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/coarse60.c | 29 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/coarse60.h | 50 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/config.h | 103 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/halconf.h | 33 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/info.json | 154 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/keymaps/default/keymap.c | 37 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/keymaps/via/keymap.c | 52 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/keymaps/via/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/mcuconf.h | 36 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/readme.md | 22 | ||||
-rw-r--r-- | keyboards/keebsforall/coarse60/rules.mk | 29 |
12 files changed, 577 insertions, 0 deletions
diff --git a/keyboards/keebsforall/coarse60/chconf.h b/keyboards/keebsforall/coarse60/chconf.h new file mode 100644 index 000000000..2dfe6f0be --- /dev/null +++ b/keyboards/keebsforall/coarse60/chconf.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | /* | ||
18 | * This file was auto-generated by: | ||
19 | * `qmk chibios-confmigrate -i keyboards/projectkb/alice/chconf.h -r platforms/chibios/common/configs/chconf.h` | ||
20 | */ | ||
21 | |||
22 | #pragma once | ||
23 | |||
24 | #define CH_CFG_ST_FREQUENCY 10000 | ||
25 | |||
26 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
27 | |||
28 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
29 | |||
30 | #include_next <chconf.h> | ||
31 | |||
diff --git a/keyboards/keebsforall/coarse60/coarse60.c b/keyboards/keebsforall/coarse60/coarse60.c new file mode 100644 index 000000000..8287eec1a --- /dev/null +++ b/keyboards/keebsforall/coarse60/coarse60.c | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | Copyright 2021 Elliot Powell | ||
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 | #include "coarse60.h" | ||
18 | |||
19 | bool encoder_update_kb(uint8_t index, bool clockwise) { | ||
20 | if (!encoder_update_user(index, clockwise)) { return false; } | ||
21 | if (index == 0) { | ||
22 | if (clockwise) { | ||
23 | tap_code(KC_VOLU); | ||
24 | } else { | ||
25 | tap_code(KC_VOLD); | ||
26 | } | ||
27 | } | ||
28 | return true; | ||
29 | } | ||
diff --git a/keyboards/keebsforall/coarse60/coarse60.h b/keyboards/keebsforall/coarse60/coarse60.h new file mode 100644 index 000000000..76f147cf1 --- /dev/null +++ b/keyboards/keebsforall/coarse60/coarse60.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | Copyright 2021 Elliot Powell | ||
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 | #pragma once | ||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | #define KNO KC_NO | ||
22 | #define LAYOUT_default LAYOUT_alice_split_bs | ||
23 | |||
24 | #define LAYOUT_alice_split_bs( \ | ||
25 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K2D,\ | ||
26 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
27 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ | ||
28 | K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
29 | K41, K44, K45, K46, K48, K4A, K4E \ | ||
30 | ) { \ | ||
31 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
32 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
33 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ | ||
34 | { KNO, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
35 | { KNO, K41, KNO, KNO, K44, K45, K46, KNO, K48, KNO, K4A, KNO, KNO, KNO, K4E } \ | ||
36 | } | ||
37 | |||
38 | #define LAYOUT_alice( \ | ||
39 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
40 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
41 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ | ||
42 | K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
43 | K41, K44, K45, K46, K48, K4A, K4E \ | ||
44 | ) { \ | ||
45 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ | ||
46 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ | ||
47 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KNO, K2E }, \ | ||
48 | { KNO, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ | ||
49 | { KNO, K41, KNO, KNO, K44, K45, K46, KNO, K48, KNO, K4A, KNO, KNO, KNO, K4E } \ | ||
50 | } | ||
diff --git a/keyboards/keebsforall/coarse60/config.h b/keyboards/keebsforall/coarse60/config.h new file mode 100644 index 000000000..ee3780214 --- /dev/null +++ b/keyboards/keebsforall/coarse60/config.h | |||
@@ -0,0 +1,103 @@ | |||
1 | /* | ||
2 | Copyright 2021 Elliot Powell | ||
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 | #pragma once | ||
18 | |||
19 | /* USB Device descriptor parameter */ | ||
20 | #define VENDOR_ID 0x6B66 | ||
21 | #define PRODUCT_ID 0x5341 | ||
22 | #define DEVICE_VER 0x0001 | ||
23 | #define MANUFACTURER KeebsforAll | ||
24 | #define PRODUCT coarse60 | ||
25 | |||
26 | /* key matrix size */ | ||
27 | #define MATRIX_ROWS 5 | ||
28 | #define MATRIX_COLS 15 | ||
29 | |||
30 | #define MATRIX_COL_PINS { B1, B0, A7, B14, A5, A4, A3, B9, B8, B7, B6, B5, B4, B3, A15 } | ||
31 | #define MATRIX_ROW_PINS { A9, A10, B12, A2, C13 } | ||
32 | #define DIODE_DIRECTION COL2ROW | ||
33 | |||
34 | #define BACKLIGHT_PIN A6 | ||
35 | #define BACKLIGHT_PWM_DRIVER PWMD3 | ||
36 | #define BACKLIGHT_PWM_CHANNEL 1 | ||
37 | #define BACKLIGHT_PAL_MODE 1 | ||
38 | #define BACKLIGHT_LEVELS 6 | ||
39 | #define BACKLIGHT_BREATHING | ||
40 | #define BREATHING_PERIOD 6 | ||
41 | |||
42 | /* define if matrix has ghost */ | ||
43 | //#define MATRIX_HAS_GHOST | ||
44 | |||
45 | /* Set 0 if debouncing isn't needed */ | ||
46 | #define DEBOUNCE 5 | ||
47 | |||
48 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
49 | #define LOCKING_SUPPORT_ENABLE | ||
50 | /* Locking resynchronize hack */ | ||
51 | #define LOCKING_RESYNC_ENABLE | ||
52 | |||
53 | #define RGB_DI_PIN B15 | ||
54 | #define RGBLED_NUM 14 | ||
55 | #define WS2812_SPI SPID2 | ||
56 | #define WS2812_SPI_MOSI_PAL_MODE 0 | ||
57 | #define WS2812_SPI_SCK_PAL_MODE 0 | ||
58 | #define WS2812_SPI_SCK_PIN B13 | ||
59 | |||
60 | #define RGBLIGHT_EFFECT_BREATHING | ||
61 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
62 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
63 | #define RGBLIGHT_EFFECT_SNAKE | ||
64 | #define RGBLIGHT_EFFECT_KNIGHT | ||
65 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
66 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
67 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
68 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
69 | #define RGBLIGHT_EFFECT_TWINKLE | ||
70 | |||
71 | |||
72 | #define LED_NUM_LOCK_PIN B2 | ||
73 | #define LED_CAPS_LOCK_PIN B10 | ||
74 | #define LED_SCROLL_LOCK_PIN B11 | ||
75 | #define LED_PIN_ON_STATE 0 | ||
76 | |||
77 | #define ENCODERS_PAD_A { A8 } | ||
78 | #define ENCODERS_PAD_B { A1 } | ||
79 | #define ENCODER_RESOLUTION 2 | ||
80 | |||
81 | // 2 bits for 4 layout options | ||
82 | #define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2 | ||
83 | |||
84 | /* | ||
85 | * Feature disable options | ||
86 | * These options are also useful to firmware size reduction. | ||
87 | */ | ||
88 | |||
89 | /* disable debug print */ | ||
90 | //#define NO_DEBUG | ||
91 | |||
92 | /* disable print */ | ||
93 | //#define NO_PRINT | ||
94 | |||
95 | /* disable action features */ | ||
96 | //#define NO_ACTION_LAYER | ||
97 | //#define NO_ACTION_TAPPING | ||
98 | //#define NO_ACTION_ONESHOT | ||
99 | //#define NO_ACTION_MACRO | ||
100 | //#define NO_ACTION_FUNCTION | ||
101 | |||
102 | |||
103 | #define SLEEP_LED_GPT_DRIVER GPTD1 | ||
diff --git a/keyboards/keebsforall/coarse60/halconf.h b/keyboards/keebsforall/coarse60/halconf.h new file mode 100644 index 000000000..0016e53ba --- /dev/null +++ b/keyboards/keebsforall/coarse60/halconf.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | /* | ||
18 | * This file was auto-generated by: | ||
19 | * `qmk chibios-confmigrate -i keyboards/projectkb/alice/halconf.h -r platforms/chibios/common/configs/halconf.h` | ||
20 | */ | ||
21 | |||
22 | #pragma once | ||
23 | |||
24 | #define HAL_USE_I2C TRUE | ||
25 | |||
26 | #define HAL_USE_PWM TRUE | ||
27 | |||
28 | #define HAL_USE_SPI TRUE | ||
29 | |||
30 | #define HAL_USE_GPT TRUE | ||
31 | |||
32 | #include_next <halconf.h> | ||
33 | |||
diff --git a/keyboards/keebsforall/coarse60/info.json b/keyboards/keebsforall/coarse60/info.json new file mode 100644 index 000000000..8718b79f4 --- /dev/null +++ b/keyboards/keebsforall/coarse60/info.json | |||
@@ -0,0 +1,154 @@ | |||
1 | { | ||
2 | "keyboard_name": "coarse60", | ||
3 | "url":"https://keebsforall.com", | ||
4 | "maintainer": "keebsforall", | ||
5 | "layouts": { | ||
6 | "LAYOUT_alice_split_bs": { | ||
7 | "layout": [ | ||
8 | {"label":"Esc", "x":0.5, "y":0}, | ||
9 | {"label":"`", "x":1.75, "y":0.25}, | ||
10 | {"label":"1", "x":2.75, "y":0.25}, | ||
11 | {"label":"2", "x":3.75, "y":0}, | ||
12 | {"label":"3", "x":4.75, "y":0.25}, | ||
13 | {"label":"4", "x":5.75, "y":0.25}, | ||
14 | {"label":"5", "x":6.75, "y":0.25}, | ||
15 | {"label":"6", "x":7.75, "y":0.25}, | ||
16 | {"label":"7", "x":11, "y":0.25}, | ||
17 | {"label":"8", "x":12, "y":0.25}, | ||
18 | {"label":"9", "x":13, "y":0.25}, | ||
19 | {"label":"0", "x":14, "y":0.25}, | ||
20 | {"label":"-", "x":15, "y":0}, | ||
21 | {"label":"=", "x":16, "y":0.25}, | ||
22 | {"label":"Del", "x":17, "y":0.25}, | ||
23 | {"label":"Backspace", "x":18, "y":0.25}, | ||
24 | |||
25 | {"label":"PgUp", "x":0.25, "y":1}, | ||
26 | {"label":"Tab", "x":1.5, "y":1.25, "w":1.5}, | ||
27 | {"label":"Q", "x":3, "y":1.25}, | ||
28 | {"label":"W", "x":4.25, "y":1.25}, | ||
29 | {"label":"E", "x":5.25, "y":1.25}, | ||
30 | {"label":"R", "x":6.25, "y":1.25}, | ||
31 | {"label":"T", "x":7.25, "y":1.25}, | ||
32 | {"label":"Y", "x":10.5, "y":1.25}, | ||
33 | {"label":"U", "x":11.5, "y":1.25}, | ||
34 | {"label":"I", "x":12.5, "y":1.25}, | ||
35 | {"label":"O", "x":13.5, "y":1.25}, | ||
36 | {"label":"P", "x":14.75, "y":1.25}, | ||
37 | {"label":"{", "x":15.75, "y":1.25}, | ||
38 | {"label":"}", "x":16.75, "y":1.25}, | ||
39 | {"label":"|", "x":17.75, "y":1.25, "w":1.5}, | ||
40 | |||
41 | {"label":"PgDn", "x":0, "y":2}, | ||
42 | {"label":"Caps Lock", "x":1.5, "y":2.25, "w":1.75}, | ||
43 | {"label":"A", "x":3.25, "y":2.25}, | ||
44 | {"label":"S", "x":4.5, "y":2.25}, | ||
45 | {"label":"D", "x":5.5, "y":2.25}, | ||
46 | {"label":"F", "x":6.5, "y":2.25}, | ||
47 | {"label":"G", "x":7.5, "y":2.25}, | ||
48 | {"label":"H", "x":10.75, "y":2.25}, | ||
49 | {"label":"J", "x":11.75, "y":2.25}, | ||
50 | {"label":"K", "x":12.75, "y":2.25}, | ||
51 | {"label":"L", "x":13.75, "y":2.25}, | ||
52 | {"label":":", "x":15.25, "y":2.25}, | ||
53 | {"label":"\"", "x":16.25, "y":2.25}, | ||
54 | {"label":"Enter", "x":17.25, "y":2.25, "w":2.25}, | ||
55 | |||
56 | {"label":"Shift", "x":1.5, "y":3.25, "w":2.25}, | ||
57 | {"label":"Z", "x":3.75, "y":3.25}, | ||
58 | {"label":"X", "x":5, "y":3.25}, | ||
59 | {"label":"C", "x":6, "y":3.25}, | ||
60 | {"label":"V", "x":7, "y":3.25}, | ||
61 | {"label":"B", "x":8, "y":3.25}, | ||
62 | {"label":"Fn", "x":10.25, "y":3.25}, | ||
63 | {"label":"N", "x":11.25, "y":3.25}, | ||
64 | {"label":"M", "x":12.25, "y":3.25}, | ||
65 | {"label":"<", "x":13.25, "y":3.25}, | ||
66 | {"label":">", "x":15, "y":3.25}, | ||
67 | {"label":"?", "x":16, "y":3.25}, | ||
68 | {"label":"Shift", "x":17, "y":3.25, "w":1.75}, | ||
69 | {"label":"Fn", "x":18.75, "y":3.25}, | ||
70 | |||
71 | {"label":"Ctrl", "x":1.5, "y":4.25, "w":1.5}, | ||
72 | {"label":"Alt", "x":5, "y":4.25, "w":1.5}, | ||
73 | {"label":"Space", "x":6.5, "y":4.25, "w":2}, | ||
74 | {"label":"Menu", "x":8.5, "y":4.25}, | ||
75 | {"label":"Space", "x":10.25, "y":4.25, "w":2.75}, | ||
76 | {"label":"Alt", "x":13, "y":4.25, "w":1.5}, | ||
77 | {"label":"Ctrl", "x":18, "y":4.25, "w":1.5} | ||
78 | ] | ||
79 | }, | ||
80 | "LAYOUT_alice": { | ||
81 | "layout": [ | ||
82 | {"label":"Esc", "x":0.5, "y":0}, | ||
83 | {"label":"`", "x":1.75, "y":0.25}, | ||
84 | {"label":"1", "x":2.75, "y":0.25}, | ||
85 | {"label":"2", "x":3.75, "y":0}, | ||
86 | {"label":"3", "x":4.75, "y":0.25}, | ||
87 | {"label":"4", "x":5.75, "y":0.25}, | ||
88 | {"label":"5", "x":6.75, "y":0.25}, | ||
89 | {"label":"6", "x":7.75, "y":0.25}, | ||
90 | {"label":"7", "x":11, "y":0.25}, | ||
91 | {"label":"8", "x":12, "y":0.25}, | ||
92 | {"label":"9", "x":13, "y":0.25}, | ||
93 | {"label":"0", "x":14, "y":0.25}, | ||
94 | {"label":"-", "x":15, "y":0}, | ||
95 | {"label":"=", "x":16, "y":0.25}, | ||
96 | {"label":"Backspace", "x":17, "y":0.25, "w":2}, | ||
97 | |||
98 | {"label":"PgUp", "x":0.25, "y":1}, | ||
99 | {"label":"Tab", "x":1.5, "y":1.25, "w":1.5}, | ||
100 | {"label":"Q", "x":3, "y":1.25}, | ||
101 | {"label":"W", "x":4.25, "y":1.25}, | ||
102 | {"label":"E", "x":5.25, "y":1.25}, | ||
103 | {"label":"R", "x":6.25, "y":1.25}, | ||
104 | {"label":"T", "x":7.25, "y":1.25}, | ||
105 | {"label":"Y", "x":10.5, "y":1.25}, | ||
106 | {"label":"U", "x":11.5, "y":1.25}, | ||
107 | {"label":"I", "x":12.5, "y":1.25}, | ||
108 | {"label":"O", "x":13.5, "y":1.25}, | ||
109 | {"label":"P", "x":14.75, "y":1.25}, | ||
110 | {"label":"{", "x":15.75, "y":1.25}, | ||
111 | {"label":"}", "x":16.75, "y":1.25}, | ||
112 | {"label":"|", "x":17.75, "y":1.25, "w":1.5}, | ||
113 | |||
114 | {"label":"PgDn", "x":0, "y":2}, | ||
115 | {"label":"Caps Lock", "x":1.5, "y":2.25, "w":1.75}, | ||
116 | {"label":"A", "x":3.25, "y":2.25}, | ||
117 | {"label":"S", "x":4.5, "y":2.25}, | ||
118 | {"label":"D", "x":5.5, "y":2.25}, | ||
119 | {"label":"F", "x":6.5, "y":2.25}, | ||
120 | {"label":"G", "x":7.5, "y":2.25}, | ||
121 | {"label":"H", "x":10.75, "y":2.25}, | ||
122 | {"label":"J", "x":11.75, "y":2.25}, | ||
123 | {"label":"K", "x":12.75, "y":2.25}, | ||
124 | {"label":"L", "x":13.75, "y":2.25}, | ||
125 | {"label":":", "x":15.25, "y":2.25}, | ||
126 | {"label":"\"", "x":16.25, "y":2.25}, | ||
127 | {"label":"Enter", "x":17.25, "y":2.25, "w":2.25}, | ||
128 | |||
129 | {"label":"Shift", "x":1.5, "y":3.25, "w":2.25}, | ||
130 | {"label":"Z", "x":3.75, "y":3.25}, | ||
131 | {"label":"X", "x":5, "y":3.25}, | ||
132 | {"label":"C", "x":6, "y":3.25}, | ||
133 | {"label":"V", "x":7, "y":3.25}, | ||
134 | {"label":"B", "x":8, "y":3.25}, | ||
135 | {"label":"Fn", "x":10.25, "y":3.25}, | ||
136 | {"label":"N", "x":11.25, "y":3.25}, | ||
137 | {"label":"M", "x":12.25, "y":3.25}, | ||
138 | {"label":"<", "x":13.25, "y":3.25}, | ||
139 | {"label":">", "x":15, "y":3.25}, | ||
140 | {"label":"?", "x":16, "y":3.25}, | ||
141 | {"label":"Shift", "x":17, "y":3.25, "w":1.75}, | ||
142 | {"label":"Fn", "x":18.75, "y":3.25}, | ||
143 | |||
144 | {"label":"Ctrl", "x":1.5, "y":4.25, "w":1.5}, | ||
145 | {"label":"Alt", "x":5, "y":4.25, "w":1.5}, | ||
146 | {"label":"Space", "x":6.5, "y":4.25, "w":2}, | ||
147 | {"label":"Menu", "x":8.5, "y":4.25}, | ||
148 | {"label":"Space", "x":10.25, "y":4.25, "w":2.75}, | ||
149 | {"label":"Alt", "x":13, "y":4.25, "w":1.5}, | ||
150 | {"label":"Ctrl", "x":18, "y":4.25, "w":1.5} | ||
151 | ] | ||
152 | } | ||
153 | } | ||
154 | } | ||
diff --git a/keyboards/keebsforall/coarse60/keymaps/default/keymap.c b/keyboards/keebsforall/coarse60/keymaps/default/keymap.c new file mode 100644 index 000000000..702785058 --- /dev/null +++ b/keyboards/keebsforall/coarse60/keymaps/default/keymap.c | |||
@@ -0,0 +1,37 @@ | |||
1 | /* | ||
2 | Copyright 2021 Elliot Powell | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | |||
21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
22 | [0] = LAYOUT_alice_split_bs( | ||
23 | KC_ESC, KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, KC_BSPC, | ||
24 | KC_PGUP, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
25 | KC_PGDN, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RGUI, | ||
27 | KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_RCTL | ||
28 | ), | ||
29 | |||
30 | [1] = LAYOUT_alice_split_bs( | ||
31 | RGB_TOG, _______, 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_DEL, | ||
32 | RGB_MOD, _______, _______, KC_UP, _______, _______, _______, RGB_SAI, RGB_HUI, RGB_VAI, _______, _______, _______, _______, _______, | ||
33 | RGB_RMOD, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, RGB_SAD, RGB_HUD, RGB_VAD, _______, _______, _______, _______, | ||
34 | _______, BL_INC, BL_DEC, BL_TOGG, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
35 | _______, _______, _______, _______, _______, _______, RESET | ||
36 | ) | ||
37 | }; | ||
diff --git a/keyboards/keebsforall/coarse60/keymaps/via/keymap.c b/keyboards/keebsforall/coarse60/keymaps/via/keymap.c new file mode 100644 index 000000000..6139c43d7 --- /dev/null +++ b/keyboards/keebsforall/coarse60/keymaps/via/keymap.c | |||
@@ -0,0 +1,52 @@ | |||
1 | /* | ||
2 | Copyright 2021 Elliot Powell | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_alice_split_bs( | ||
22 | KC_ESC, KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_DEL, KC_BSPC, | ||
23 | KC_PGUP, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
24 | KC_PGDN, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RGUI, | ||
26 | KC_LCTL, KC_LALT, KC_SPC, MO(1), KC_SPC, KC_RALT, KC_RCTL | ||
27 | ), | ||
28 | |||
29 | [1] = LAYOUT_alice_split_bs( | ||
30 | RGB_TOG, _______, 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_DEL, | ||
31 | RGB_MOD, _______, _______, KC_UP, _______, _______, _______, RGB_SAI, RGB_HUI, RGB_VAI, _______, _______, _______, _______, _______, | ||
32 | RGB_RMOD, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, RGB_SAD, RGB_HUD, RGB_VAD, _______, _______, _______, _______, | ||
33 | _______, BL_INC, BL_DEC, BL_TOGG, BL_BRTG, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
34 | _______, _______, _______, _______, _______, _______, RESET | ||
35 | ), | ||
36 | |||
37 | [2] = LAYOUT_alice_split_bs( | ||
38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
42 | _______, _______, _______, _______, _______, _______, _______ | ||
43 | ), | ||
44 | |||
45 | [3] = LAYOUT_alice_split_bs( | ||
46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
50 | _______, _______, _______, _______, _______, _______, _______ | ||
51 | ), | ||
52 | }; | ||
diff --git a/keyboards/keebsforall/coarse60/keymaps/via/rules.mk b/keyboards/keebsforall/coarse60/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/keebsforall/coarse60/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/keebsforall/coarse60/mcuconf.h b/keyboards/keebsforall/coarse60/mcuconf.h new file mode 100644 index 000000000..6e0f1a50d --- /dev/null +++ b/keyboards/keebsforall/coarse60/mcuconf.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* Copyright 2020 QMK | ||
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 | /* | ||
18 | * This file was auto-generated by: | ||
19 | * `qmk chibios-confmigrate -i keyboards/projectkb/alice/mcuconf.h -r platforms/chibios/GENERIC_STM32_F072XB/configs/mcuconf.h` | ||
20 | */ | ||
21 | |||
22 | #pragma once | ||
23 | |||
24 | #include_next <mcuconf.h> | ||
25 | |||
26 | #undef STM32_I2C_USE_I2C1 | ||
27 | #define STM32_I2C_USE_I2C1 TRUE | ||
28 | |||
29 | #undef STM32_PWM_USE_TIM3 | ||
30 | #define STM32_PWM_USE_TIM3 TRUE | ||
31 | |||
32 | #undef STM32_SPI_USE_SPI2 | ||
33 | #define STM32_SPI_USE_SPI2 TRUE | ||
34 | |||
35 | #undef STM32_GPT_USE_TIM1 | ||
36 | #define STM32_GPT_USE_TIM1 TRUE | ||
diff --git a/keyboards/keebsforall/coarse60/readme.md b/keyboards/keebsforall/coarse60/readme.md new file mode 100644 index 000000000..cde615249 --- /dev/null +++ b/keyboards/keebsforall/coarse60/readme.md | |||
@@ -0,0 +1,22 @@ | |||
1 | # Coarse60 | ||
2 | ### seh0nky x KeebsForAll | ||
3 | |||
4 | A beginner-friendly aluminum alice inspired keyboard. The Coarse60 aims to provide a seamless aluminum keyboard with premium features for an affordable price. | ||
5 | |||
6 |  | ||
7 | |||
8 | * Hardware Supported: seh0nky x KeebsForAll Coarse60 | ||
9 | * Keyboard Maintainer: [e11i0t23](https://github.com/e11i0t23) | ||
10 | * Keyboard Availabilty: [keebsforall](https://keebsforall.com) | ||
11 | |||
12 | Make example for this keyboard (after setting up your build environment): | ||
13 | |||
14 | make keebsforall/coarse60:default | ||
15 | |||
16 | Enter the bootloader in 3 ways: | ||
17 | |||
18 | * **Bootmagic reset**: Hold down the top left key (Escape by default) and plug in the keyboard | ||
19 | * **Physical reset button**: Briefly press the button on the back of the PCB (S1) | ||
20 | * **Keycode in layout**: Press the key mapped to `RESET` if it is available | ||
21 | |||
22 | 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/keebsforall/coarse60/rules.mk b/keyboards/keebsforall/coarse60/rules.mk new file mode 100644 index 000000000..803f9f9e5 --- /dev/null +++ b/keyboards/keebsforall/coarse60/rules.mk | |||
@@ -0,0 +1,29 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F072 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = yes # Console for debug | ||
14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
21 | AUDIO_ENABLE = no # Audio output | ||
22 | WS2812_DRIVER = spi | ||
23 | ENCODER_ENABLE = yes | ||
24 | |||
25 | |||
26 | # Enter lower-power sleep mode when on the ChibiOS idle thread | ||
27 | OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE | ||
28 | |||
29 | LAYOUTS = alice alice_split_bs | ||