diff options
author | WestM <93159069+WestMProducts@users.noreply.github.com> | 2021-12-16 10:07:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 10:07:06 -0800 |
commit | d7bbd52e19970a506ac617fd3e9f19a062fead05 (patch) | |
tree | 1b358908dde17f31525f5947320a91196c8a0d17 | |
parent | f383d3d8be525ae34f40d848edb5dc091cba8922 (diff) | |
download | qmk_firmware-d7bbd52e19970a506ac617fd3e9f19a062fead05.tar.gz qmk_firmware-d7bbd52e19970a506ac617fd3e9f19a062fead05.zip |
[Keyboard] Add WestM (#15459)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
24 files changed, 789 insertions, 0 deletions
diff --git a/keyboards/westm/westm68/chconf.h b/keyboards/westm/westm68/chconf.h new file mode 100644 index 000000000..2faefa379 --- /dev/null +++ b/keyboards/westm/westm68/chconf.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | #define CH_CFG_ST_FREQUENCY 10000 | ||
20 | |||
21 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
22 | |||
23 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
24 | |||
25 | #include_next <chconf.h> | ||
26 | |||
diff --git a/keyboards/westm/westm68/config.h b/keyboards/westm/westm68/config.h new file mode 100644 index 000000000..ceecbb914 --- /dev/null +++ b/keyboards/westm/westm68/config.h | |||
@@ -0,0 +1,61 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | /* USB Device descriptor parameter */ | ||
20 | #define VENDOR_ID 0x574D // WM | ||
21 | #define PRODUCT_ID 0x0001 | ||
22 | #define DEVICE_VER 0x0001 // Revision prototype | ||
23 | #define MANUFACTURER WestM | ||
24 | #define PRODUCT WestM68 | ||
25 | |||
26 | /* key matrix size */ | ||
27 | #define MATRIX_ROWS 5 | ||
28 | #define MATRIX_COLS 15 | ||
29 | |||
30 | #define MATRIX_ROW_PINS { A13, B9, F1, A10, A9 } | ||
31 | #define MATRIX_COL_PINS { B14, B13, B12, B11, B10, B2, B1, B8, B7, B6, B5, B4, B3, A15, A14 } | ||
32 | #define DIODE_DIRECTION COL2ROW | ||
33 | |||
34 | #define RGBLIGHT_EFFECT_BREATHING | ||
35 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
36 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
37 | #define RGBLIGHT_EFFECT_SNAKE | ||
38 | #define RGBLIGHT_EFFECT_KNIGHT | ||
39 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
40 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
41 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
42 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
43 | #define RGBLIGHT_EFFECT_TWINKLE | ||
44 | // The pin connected to the data pin of the LEDs | ||
45 | #define RGB_DI_PIN A8 | ||
46 | #define RGBLED_NUM 19 | ||
47 | |||
48 | /* define if matrix has ghost */ | ||
49 | //#define MATRIX_HAS_GHOST | ||
50 | |||
51 | /* Set 0 if debouncing isn't needed */ | ||
52 | #define DEBOUNCE 5 | ||
53 | |||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
55 | #define LOCKING_SUPPORT_ENABLE | ||
56 | /* Locking resynchronize hack */ | ||
57 | #define LOCKING_RESYNC_ENABLE | ||
58 | |||
59 | /* Hold ESC key (first key of first column) to trigger bootloader */ | ||
60 | #define BOOTMAGIC_LITE_ROW 0 | ||
61 | #define BOOTMAGIC_LITE_COLUMN 0 \ No newline at end of file | ||
diff --git a/keyboards/westm/westm68/halconf.h b/keyboards/westm/westm68/halconf.h new file mode 100644 index 000000000..a73f08fb6 --- /dev/null +++ b/keyboards/westm/westm68/halconf.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | #pragma once | ||
19 | |||
20 | #define HAL_USE_PWM TRUE | ||
21 | |||
22 | #include_next <halconf.h> | ||
23 | |||
diff --git a/keyboards/westm/westm68/info.json b/keyboards/westm/westm68/info.json new file mode 100644 index 000000000..58378c1b4 --- /dev/null +++ b/keyboards/westm/westm68/info.json | |||
@@ -0,0 +1,83 @@ | |||
1 | { | ||
2 | "keyboard_name": "WestM68", | ||
3 | "url": "https://github.com/WestMProducts", | ||
4 | "maintainer": "WestM", | ||
5 | "layouts": { | ||
6 | "LAYOUT_65_ansi": { | ||
7 | "layout": [ | ||
8 | {"x":0, "y":0}, | ||
9 | {"x":1, "y":0}, | ||
10 | {"x":2, "y":0}, | ||
11 | {"x":3, "y":0}, | ||
12 | {"x":4, "y":0}, | ||
13 | {"x":5, "y":0}, | ||
14 | {"x":6, "y":0}, | ||
15 | {"x":7, "y":0}, | ||
16 | {"x":8, "y":0}, | ||
17 | {"x":9, "y":0}, | ||
18 | {"x":10, "y":0}, | ||
19 | {"x":11, "y":0}, | ||
20 | {"x":12, "y":0}, | ||
21 | {"x":13, "y":0, "w":2}, | ||
22 | {"x":15, "y":0}, | ||
23 | |||
24 | {"x":0, "y":1, "w":1.5}, | ||
25 | {"x":1.5, "y":1}, | ||
26 | {"x":2.5, "y":1}, | ||
27 | {"x":3.5, "y":1}, | ||
28 | {"x":4.5, "y":1}, | ||
29 | {"x":5.5, "y":1}, | ||
30 | {"x":6.5, "y":1}, | ||
31 | {"x":7.5, "y":1}, | ||
32 | {"x":8.5, "y":1}, | ||
33 | {"x":9.5, "y":1}, | ||
34 | {"x":10.5, "y":1}, | ||
35 | {"x":11.5, "y":1}, | ||
36 | {"x":12.5, "y":1}, | ||
37 | {"x":13.5, "y":1, "w":1.5}, | ||
38 | {"x":15, "y":1}, | ||
39 | |||
40 | {"x":0, "y":2, "w":1.75}, | ||
41 | {"x":1.75, "y":2}, | ||
42 | {"x":2.75, "y":2}, | ||
43 | {"x":3.75, "y":2}, | ||
44 | {"x":4.75, "y":2}, | ||
45 | {"x":5.75, "y":2}, | ||
46 | {"x":6.75, "y":2}, | ||
47 | {"x":7.75, "y":2}, | ||
48 | {"x":8.75, "y":2}, | ||
49 | {"x":9.75, "y":2}, | ||
50 | {"x":10.75, "y":2}, | ||
51 | {"x":11.75, "y":2}, | ||
52 | {"x":12.75, "y":2, "w":2.25}, | ||
53 | {"x":15, "y":2}, | ||
54 | |||
55 | {"x":0, "y":3, "w":2.25}, | ||
56 | {"x":2.25, "y":3}, | ||
57 | {"x":3.25, "y":3}, | ||
58 | {"x":4.25, "y":3}, | ||
59 | {"x":5.25, "y":3}, | ||
60 | {"x":6.25, "y":3}, | ||
61 | {"x":7.25, "y":3}, | ||
62 | {"x":8.25, "y":3}, | ||
63 | {"x":9.25, "y":3}, | ||
64 | {"x":10.25, "y":3}, | ||
65 | {"x":11.25, "y":3}, | ||
66 | {"x":12.25, "y":3, "w":1.75}, | ||
67 | {"x":14, "y":3}, | ||
68 | {"x":15, "y":3}, | ||
69 | |||
70 | {"x":0, "y":4, "w":1.25}, | ||
71 | {"x":1.25, "y":4, "w":1.25}, | ||
72 | {"x":2.5, "y":4, "w":1.25}, | ||
73 | {"x":3.75, "y":4, "w":6.25}, | ||
74 | {"x":10, "y":4}, | ||
75 | {"x":11, "y":4}, | ||
76 | {"x":12, "y":4}, | ||
77 | {"x":13, "y":4}, | ||
78 | {"x":14, "y":4}, | ||
79 | {"x":15, "y":4} | ||
80 | ] | ||
81 | } | ||
82 | } | ||
83 | } | ||
diff --git a/keyboards/westm/westm68/keymaps/default/keymap.c b/keyboards/westm/westm68/keymaps/default/keymap.c new file mode 100755 index 000000000..d49c8f81e --- /dev/null +++ b/keyboards/westm/westm68/keymaps/default/keymap.c | |||
@@ -0,0 +1,34 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | [0] = LAYOUT_65_ansi( /* Base */ | ||
21 | KC_ESC, 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_BSPC, KC_INS, | ||
22 | 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_BSLASH, KC_DEL, | ||
23 | 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, KC_PGUP, | ||
24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||
26 | ), | ||
27 | [1] = LAYOUT_65_ansi( /* FN */ | ||
28 | KC_ESC, 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, KC_HOME, | ||
29 | _______, _______, KC_UP, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, | ||
30 | _______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, KC_MUTE, RGB_HUI, RGB_HUD, _______, _______, _______, _______, _______, _______, | ||
31 | _______, KC_MPRV, KC_MPLY, KC_MNXT, KC__VOLDOWN, KC__VOLUP, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
33 | ) | ||
34 | }; \ No newline at end of file | ||
diff --git a/keyboards/westm/westm68/keymaps/via/keymap.c b/keyboards/westm/westm68/keymaps/via/keymap.c new file mode 100644 index 000000000..a4818ea81 --- /dev/null +++ b/keyboards/westm/westm68/keymaps/via/keymap.c | |||
@@ -0,0 +1,48 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | [0] = LAYOUT_65_ansi( /* Base */ | ||
21 | KC_GESC, 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_BSPC, KC_INS, | ||
22 | 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_BSLASH, KC_DEL, | ||
23 | 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, KC_PGUP, | ||
24 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, | ||
25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT | ||
26 | ), | ||
27 | [1] = LAYOUT_65_ansi( /* FN */ | ||
28 | KC_GESC, 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, KC_HOME, | ||
29 | _______, _______, KC_UP, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, | ||
30 | _______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, KC_MUTE, RGB_HUI, RGB_HUD, _______, _______, _______, _______, _______, _______, | ||
31 | _______, KC_MPRV, KC_MPLY, KC_MNXT, KC__VOLDOWN, KC__VOLUP, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
32 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
33 | ), | ||
34 | [2] = LAYOUT_65_ansi( /* 2 */ | ||
35 | KC_GESC, 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, KC_HOME, | ||
36 | _______, _______, _______, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, | ||
37 | _______, _______, _______, _______, _______, KC_MUTE, RGB_HUI, RGB_HUD, _______, _______, _______, _______, _______, _______, | ||
38 | _______, KC_MPRV, KC_MPLY, KC_MNXT, KC__VOLDOWN, KC__VOLUP, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
40 | ), | ||
41 | [3] = LAYOUT_65_ansi( /* 3 */ | ||
42 | KC_GESC, 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, KC_HOME, | ||
43 | _______, _______, _______, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, | ||
44 | _______, _______, _______, _______, _______, KC_MUTE, RGB_HUI, RGB_HUD, _______, _______, _______, _______, _______, _______, | ||
45 | _______, KC_MPRV, KC_MPLY, KC_MNXT, KC__VOLDOWN, KC__VOLUP, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
47 | ) | ||
48 | }; | ||
diff --git a/keyboards/westm/westm68/keymaps/via/rules.mk b/keyboards/westm/westm68/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/westm/westm68/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/westm/westm68/mcuconf.h b/keyboards/westm/westm68/mcuconf.h new file mode 100644 index 000000000..403696185 --- /dev/null +++ b/keyboards/westm/westm68/mcuconf.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* Copyright 2021 WestM | ||
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_next <mcuconf.h> | ||
20 | |||
21 | #undef STM32_I2C_USE_DMA | ||
22 | #define STM32_I2C_USE_DMA FALSE | ||
23 | |||
24 | #undef STM32_PWM_USE_TIM1 | ||
25 | #define STM32_PWM_USE_TIM1 TRUE | ||
26 | |||
diff --git a/keyboards/westm/westm68/readme.md b/keyboards/westm/westm68/readme.md new file mode 100644 index 000000000..f5d4daf30 --- /dev/null +++ b/keyboards/westm/westm68/readme.md | |||
@@ -0,0 +1,18 @@ | |||
1 | # WestM | ||
2 | |||
3 |  | ||
4 | |||
5 | A 65% PCB with arrow cluster | ||
6 | |||
7 | ## Bootloader | ||
8 | * **Physical reset button**: Briefly press the button on the back of the PCB. | ||
9 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard. | ||
10 | |||
11 | * Keyboard Maintainer: [WestM](https://github.com/westm00) | ||
12 | * Hardware Supported: WestM65 | ||
13 | |||
14 | Make example for this keyboard (after setting up your build environment): | ||
15 | |||
16 | make westm/westm68:default | ||
17 | |||
18 | 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/westm/westm68/rules.mk b/keyboards/westm/westm68/rules.mk new file mode 100644 index 000000000..0ad5e320f --- /dev/null +++ b/keyboards/westm/westm68/rules.mk | |||
@@ -0,0 +1,21 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F072 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Wildcard to allow APM32 MCU | ||
8 | DFU_SUFFIX_ARGS = -v FFFF -p FFFF | ||
9 | |||
10 | # Build Options | ||
11 | # change yes to no to disable | ||
12 | # | ||
13 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
16 | CONSOLE_ENABLE = yes # Console for debug | ||
17 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
18 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
21 | AUDIO_ENABLE = no # Audio output \ No newline at end of file | ||
diff --git a/keyboards/westm/westm68/westm68.c b/keyboards/westm/westm68/westm68.c new file mode 100644 index 000000000..f5ec49624 --- /dev/null +++ b/keyboards/westm/westm68/westm68.c | |||
@@ -0,0 +1,18 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | #include "westm68.h" | ||
diff --git a/keyboards/westm/westm68/westm68.h b/keyboards/westm/westm68/westm68.h new file mode 100644 index 000000000..6dda35435 --- /dev/null +++ b/keyboards/westm/westm68/westm68.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 XXX KC_NO | ||
22 | |||
23 | #define LAYOUT_65_ansi( \ | ||
24 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
25 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, \ | ||
26 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \ | ||
27 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3E, \ | ||
28 | K40, K41, K42, K45, K49, K4A, K4B, K4C, K4D, K4E \ | ||
29 | ) { \ | ||
30 | { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E}, \ | ||
31 | { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E}, \ | ||
32 | { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, XXX, K2C, K2E}, \ | ||
33 | { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, XXX, K3B, K3C, K3E}, \ | ||
34 | { K40, K41, K42, XXX, XXX, K45, XXX, XXX, XXX, K49, K4A, K4B, K4C, K4D, K4E} \ | ||
35 | } | ||
diff --git a/keyboards/westm/westmergo/chconf.h b/keyboards/westm/westmergo/chconf.h new file mode 100644 index 000000000..6def64662 --- /dev/null +++ b/keyboards/westm/westmergo/chconf.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | #pragma once | ||
19 | |||
20 | #define CH_CFG_ST_FREQUENCY 10000 | ||
21 | |||
22 | #define CH_CFG_OPTIMIZE_SPEED FALSE | ||
23 | |||
24 | #define CH_CFG_USE_CONDVARS_TIMEOUT FALSE | ||
25 | |||
26 | #include_next <chconf.h> | ||
27 | |||
diff --git a/keyboards/westm/westmergo/config.h b/keyboards/westm/westmergo/config.h new file mode 100644 index 000000000..1f90dc82b --- /dev/null +++ b/keyboards/westm/westmergo/config.h | |||
@@ -0,0 +1,61 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | /* USB Device descriptor parameter */ | ||
20 | #define VENDOR_ID 0x574D // WM | ||
21 | #define PRODUCT_ID 0x0001 | ||
22 | #define DEVICE_VER 0x0001 // Revision prototype | ||
23 | #define MANUFACTURER WestM | ||
24 | #define PRODUCT WestMErgo | ||
25 | |||
26 | /* key matrix size */ | ||
27 | #define MATRIX_ROWS 5 | ||
28 | #define MATRIX_COLS 16 | ||
29 | |||
30 | #define MATRIX_ROW_PINS { A13, B9, F1, A10, A9 } | ||
31 | #define MATRIX_COL_PINS { B15, B14, B13, B12, B11, B10, B2, B1, B8, B7, B6, B5, B4, B3, A15, A14 } | ||
32 | #define DIODE_DIRECTION COL2ROW | ||
33 | |||
34 | #define RGBLIGHT_EFFECT_BREATHING | ||
35 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
36 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
37 | #define RGBLIGHT_EFFECT_SNAKE | ||
38 | #define RGBLIGHT_EFFECT_KNIGHT | ||
39 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
40 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
41 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
42 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
43 | #define RGBLIGHT_EFFECT_TWINKLE | ||
44 | // The pin connected to the data pin of the LEDs | ||
45 | #define RGB_DI_PIN A8 | ||
46 | #define RGBLED_NUM 19 | ||
47 | |||
48 | /* define if matrix has ghost */ | ||
49 | //#define MATRIX_HAS_GHOST | ||
50 | |||
51 | /* Set 0 if debouncing isn't needed */ | ||
52 | #define DEBOUNCE 5 | ||
53 | |||
54 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
55 | #define LOCKING_SUPPORT_ENABLE | ||
56 | /* Locking resynchronize hack */ | ||
57 | #define LOCKING_RESYNC_ENABLE | ||
58 | |||
59 | /* Hold ESC key (first key of first column) to trigger bootloader */ | ||
60 | #define BOOTMAGIC_LITE_ROW 0 | ||
61 | #define BOOTMAGIC_LITE_COLUMN 0 \ No newline at end of file | ||
diff --git a/keyboards/westm/westmergo/halconf.h b/keyboards/westm/westmergo/halconf.h new file mode 100644 index 000000000..a0a931836 --- /dev/null +++ b/keyboards/westm/westmergo/halconf.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | #define HAL_USE_PWM TRUE | ||
20 | |||
21 | #include_next <halconf.h> | ||
22 | |||
diff --git a/keyboards/westm/westmergo/info.json b/keyboards/westm/westmergo/info.json new file mode 100644 index 000000000..7b28d1710 --- /dev/null +++ b/keyboards/westm/westmergo/info.json | |||
@@ -0,0 +1,80 @@ | |||
1 | { | ||
2 | "keyboard_name": "WestMErgo", | ||
3 | "url": "https://github.com/WestMProducts", | ||
4 | "maintainer": "WestM", | ||
5 | "layouts": { | ||
6 | "LAYOUT_alice": { | ||
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":"Backspace", "x":17, "y":0.25, "w":2}, | ||
23 | |||
24 | {"label":"PgUp", "x":0.25, "y":1}, | ||
25 | {"label":"Tab", "x":1.5, "y":1.25, "w":1.5}, | ||
26 | {"label":"Q", "x":3, "y":1.25}, | ||
27 | {"label":"W", "x":4.25, "y":1.25}, | ||
28 | {"label":"E", "x":5.25, "y":1.25}, | ||
29 | {"label":"R", "x":6.25, "y":1.25}, | ||
30 | {"label":"T", "x":7.25, "y":1.25}, | ||
31 | {"label":"Y", "x":10.5, "y":1.25}, | ||
32 | {"label":"U", "x":11.5, "y":1.25}, | ||
33 | {"label":"I", "x":12.5, "y":1.25}, | ||
34 | {"label":"O", "x":13.5, "y":1.25}, | ||
35 | {"label":"P", "x":14.75, "y":1.25}, | ||
36 | {"label":"{", "x":15.75, "y":1.25}, | ||
37 | {"label":"}", "x":16.75, "y":1.25}, | ||
38 | {"label":"|", "x":17.75, "y":1.25, "w":1.5}, | ||
39 | |||
40 | {"label":"PgDn", "x":0, "y":2}, | ||
41 | {"label":"Caps Lock", "x":1.5, "y":2.25, "w":1.75}, | ||
42 | {"label":"A", "x":3.25, "y":2.25}, | ||
43 | {"label":"S", "x":4.5, "y":2.25}, | ||
44 | {"label":"D", "x":5.5, "y":2.25}, | ||
45 | {"label":"F", "x":6.5, "y":2.25}, | ||
46 | {"label":"G", "x":7.5, "y":2.25}, | ||
47 | {"label":"H", "x":10.75, "y":2.25}, | ||
48 | {"label":"J", "x":11.75, "y":2.25}, | ||
49 | {"label":"K", "x":12.75, "y":2.25}, | ||
50 | {"label":"L", "x":13.75, "y":2.25}, | ||
51 | {"label":":", "x":15.25, "y":2.25}, | ||
52 | {"label":"\"", "x":16.25, "y":2.25}, | ||
53 | {"label":"Enter", "x":17.25, "y":2.25, "w":2.25}, | ||
54 | |||
55 | {"label":"Shift", "x":1.5, "y":3.25, "w":2.25}, | ||
56 | {"label":"Z", "x":3.75, "y":3.25}, | ||
57 | {"label":"X", "x":5, "y":3.25}, | ||
58 | {"label":"C", "x":6, "y":3.25}, | ||
59 | {"label":"V", "x":7, "y":3.25}, | ||
60 | {"label":"B", "x":8, "y":3.25}, | ||
61 | {"label":"Fn", "x":10.25, "y":3.25}, | ||
62 | {"label":"N", "x":11.25, "y":3.25}, | ||
63 | {"label":"M", "x":12.25, "y":3.25}, | ||
64 | {"label":"<", "x":13.25, "y":3.25}, | ||
65 | {"label":">", "x":15, "y":3.25}, | ||
66 | {"label":"?", "x":16, "y":3.25}, | ||
67 | {"label":"Shift", "x":17, "y":3.25, "w":1.75}, | ||
68 | {"label":"Fn", "x":18.75, "y":3.25}, | ||
69 | |||
70 | {"label":"Ctrl", "x":1.5, "y":4.25, "w":1.5}, | ||
71 | {"label":"Alt", "x":5, "y":4.25, "w":1.5}, | ||
72 | {"label":"Space", "x":6.5, "y":4.25, "w":2}, | ||
73 | {"label":"Menu", "x":8.5, "y":4.25}, | ||
74 | {"label":"Space", "x":10.25, "y":4.25, "w":2.75}, | ||
75 | {"label":"Alt", "x":13, "y":4.25, "w":1.5}, | ||
76 | {"label":"Ctrl", "x":18, "y":4.25, "w":1.5} | ||
77 | ] | ||
78 | } | ||
79 | } | ||
80 | } | ||
diff --git a/keyboards/westm/westmergo/keymaps/default/keymap.c b/keyboards/westm/westmergo/keymaps/default/keymap.c new file mode 100755 index 000000000..80e40b33c --- /dev/null +++ b/keyboards/westm/westmergo/keymaps/default/keymap.c | |||
@@ -0,0 +1,35 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_alice( /* Base */ | ||
22 | KC_ESC, KC_GRV, 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_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, MO(1), 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, MO(1), | ||
26 | KC_LCTL, KC_LGUI, KC_SPC, KC_LALT, KC_SPC, KC_RALT, KC_RCTL | ||
27 | ), | ||
28 | [1] = LAYOUT_alice( /* FN */ | ||
29 | RESET, _______, 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, | ||
30 | KC_HOME, _______, _______, KC_UP, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
31 | KC_END, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_MUTE, RGB_HUI, RGB_HUD, _______, _______, _______, _______, _______, | ||
32 | _______, KC_MPRV, KC_MPLY, KC_MNXT, KC__VOLDOWN, KC__VOLUP, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
33 | _______, _______, _______, _______, _______, _______, _______ | ||
34 | ) | ||
35 | }; \ No newline at end of file | ||
diff --git a/keyboards/westm/westmergo/keymaps/via/keymap.c b/keyboards/westm/westmergo/keymaps/via/keymap.c new file mode 100644 index 000000000..170f82710 --- /dev/null +++ b/keyboards/westm/westmergo/keymaps/via/keymap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 | #include QMK_KEYBOARD_H | ||
19 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_alice( | ||
22 | KC_ESC, KC_GRV, 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_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, MO(1), 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, MO(1), | ||
26 | KC_LCTL, KC_LGUI, KC_SPC, KC_LALT, KC_SPC, KC_RALT, KC_RCTL | ||
27 | ), | ||
28 | [1] = LAYOUT_alice( /* FN */ | ||
29 | RESET, _______, 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, | ||
30 | KC_HOME, _______, _______, KC_UP, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
31 | KC_END, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_MUTE, RGB_HUI, RGB_HUD, _______, _______, _______, _______, _______, | ||
32 | _______, KC_MPRV, KC_MPLY, KC_MNXT, KC__VOLDOWN, KC__VOLUP, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
33 | _______, _______, _______, _______, _______, _______, _______ | ||
34 | ), | ||
35 | [2] = LAYOUT_alice( /* 2 */ | ||
36 | RESET, _______, 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, | ||
37 | KC_HOME, _______, _______, KC_UP, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
38 | KC_END, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_MUTE, RGB_HUI, RGB_HUD, _______, _______, _______, _______, _______, | ||
39 | _______, KC_MPRV, KC_MPLY, KC_MNXT, KC__VOLDOWN, KC__VOLUP, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
40 | _______, _______, _______, _______, _______, _______, _______ | ||
41 | ), | ||
42 | [3] = LAYOUT_alice( /* 3 */ | ||
43 | RESET, _______, 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, | ||
44 | KC_HOME, _______, _______, KC_UP, _______, RGB_TOG, RGB_MOD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, _______, | ||
45 | KC_END, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, KC_MUTE, RGB_HUI, RGB_HUD, _______, _______, _______, _______, _______, | ||
46 | _______, KC_MPRV, KC_MPLY, KC_MNXT, KC__VOLDOWN, KC__VOLUP, RGB_SAI, RGB_SAD, _______, _______, _______, _______, _______, _______, | ||
47 | _______, _______, _______, _______, _______, _______, _______ | ||
48 | ) | ||
49 | }; | ||
diff --git a/keyboards/westm/westmergo/keymaps/via/rules.mk b/keyboards/westm/westmergo/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/westm/westmergo/keymaps/via/rules.mk | |||
@@ -0,0 +1 @@ | |||
VIA_ENABLE = yes | |||
diff --git a/keyboards/westm/westmergo/mcuconf.h b/keyboards/westm/westmergo/mcuconf.h new file mode 100644 index 000000000..403696185 --- /dev/null +++ b/keyboards/westm/westmergo/mcuconf.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* Copyright 2021 WestM | ||
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_next <mcuconf.h> | ||
20 | |||
21 | #undef STM32_I2C_USE_DMA | ||
22 | #define STM32_I2C_USE_DMA FALSE | ||
23 | |||
24 | #undef STM32_PWM_USE_TIM1 | ||
25 | #define STM32_PWM_USE_TIM1 TRUE | ||
26 | |||
diff --git a/keyboards/westm/westmergo/readme.md b/keyboards/westm/westmergo/readme.md new file mode 100644 index 000000000..53cb5e682 --- /dev/null +++ b/keyboards/westm/westmergo/readme.md | |||
@@ -0,0 +1,18 @@ | |||
1 | # WestM | ||
2 | |||
3 |  | ||
4 | |||
5 | A 65 key PCB with arrow cluster | ||
6 | |||
7 | ## Bootloader | ||
8 | * **Physical reset button**: Briefly press the button on the back of the PCB. | ||
9 | * **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard. | ||
10 | |||
11 | * Keyboard Maintainer: [WestM](https://github.com/westm00) | ||
12 | * Hardware Supported: WestM65 | ||
13 | |||
14 | Make example for this keyboard (after setting up your build environment): | ||
15 | |||
16 | make westm/westmergo:default | ||
17 | |||
18 | 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). \ No newline at end of file | ||
diff --git a/keyboards/westm/westmergo/rules.mk b/keyboards/westm/westmergo/rules.mk new file mode 100644 index 000000000..0ad5e320f --- /dev/null +++ b/keyboards/westm/westmergo/rules.mk | |||
@@ -0,0 +1,21 @@ | |||
1 | # MCU name | ||
2 | MCU = STM32F072 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = stm32-dfu | ||
6 | |||
7 | # Wildcard to allow APM32 MCU | ||
8 | DFU_SUFFIX_ARGS = -v FFFF -p FFFF | ||
9 | |||
10 | # Build Options | ||
11 | # change yes to no to disable | ||
12 | # | ||
13 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
14 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
15 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
16 | CONSOLE_ENABLE = yes # Console for debug | ||
17 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
18 | NKRO_ENABLE = yes # Enable N-Key Rollover | ||
19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
21 | AUDIO_ENABLE = no # Audio output \ No newline at end of file | ||
diff --git a/keyboards/westm/westmergo/westmergo.c b/keyboards/westm/westmergo/westmergo.c new file mode 100644 index 000000000..d78a8f9d4 --- /dev/null +++ b/keyboards/westm/westmergo/westmergo.c | |||
@@ -0,0 +1,17 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 "westmergo.h" | ||
diff --git a/keyboards/westm/westmergo/westmergo.h b/keyboards/westm/westmergo/westmergo.h new file mode 100644 index 000000000..2ed5a1ab2 --- /dev/null +++ b/keyboards/westm/westmergo/westmergo.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /* Copyright 2021 WestM | ||
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 XXX KC_NO | ||
22 | |||
23 | // Full backspace | ||
24 | // Split right shift | ||
25 | #define LAYOUT_alice( \ | ||
26 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0f, \ | ||
27 | k10, k11, k12, k13, k14, k15, k16, k18, k19, k1a, k1b, k1c, k1d, k1e, k1f, \ | ||
28 | k20, k21, k22, k23, k24, k25, k26, k28, k29, k2a, k2b, k2c, k2d, k2f, \ | ||
29 | k31, k32, k33, k34, k35, k36, k38, k39, k3a, k3b, k3c, k3d, k3e, k3f, \ | ||
30 | k41, k43, k45, k46, k49, k4b, k4f \ | ||
31 | ) \ | ||
32 | { \ | ||
33 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, XXX, k0f }, \ | ||
34 | { k10, k11, k12, k13, k14, k15, k16, XXX, k18, k19, k1a, k1b, k1c, k1d, k1e, k1f }, \ | ||
35 | { k20, k21, k22, k23, k24, k25, k26, XXX, k28, k29, k2a, k2b, k2c, k2d, XXX, k2f }, \ | ||
36 | { XXX, k31, k32, k33, k34, k35, k36, XXX, k38, k39, k3a, k3b, k3c, k3d, k3e, k3f }, \ | ||
37 | { XXX, k41, XXX, k43, XXX, k45, k46, XXX, XXX, k49, XXX, k4b, XXX, XXX, XXX, k4f }, \ | ||
38 | } | ||