diff options
author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2020-12-19 13:14:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 13:14:41 -0800 |
commit | 25b13678066d10b7df6b5f0102c37b4e7e44f701 (patch) | |
tree | 64e0db9065d8a0371316478b89a8ed2a5bef3a9a | |
parent | 624cafbfd2199fdf9fb0e834d7e9f1df70221336 (diff) | |
download | qmk_firmware-25b13678066d10b7df6b5f0102c37b4e7e44f701.tar.gz qmk_firmware-25b13678066d10b7df6b5f0102c37b4e7e44f701.zip |
VIA Support: MF68 (#11030)
* add via support to mf68 pcb
* add license header
-rw-r--r-- | keyboards/40percentclub/mf68/config.h | 4 | ||||
-rw-r--r-- | keyboards/40percentclub/mf68/keymaps/via/keymap.c | 49 | ||||
-rw-r--r-- | keyboards/40percentclub/mf68/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/40percentclub/mf68/mf68.h | 2 | ||||
-rw-r--r-- | keyboards/40percentclub/mf68/rules.mk | 4 |
5 files changed, 56 insertions, 5 deletions
diff --git a/keyboards/40percentclub/mf68/config.h b/keyboards/40percentclub/mf68/config.h index 5bda9bb78..7c5a0cd5e 100644 --- a/keyboards/40percentclub/mf68/config.h +++ b/keyboards/40percentclub/mf68/config.h | |||
@@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
20 | #include "config_common.h" | 20 | #include "config_common.h" |
21 | 21 | ||
22 | /* USB Device descriptor parameter */ | 22 | /* USB Device descriptor parameter */ |
23 | #define VENDOR_ID 0xCEEB | 23 | #define VENDOR_ID 0x3430 // "40" |
24 | #define PRODUCT_ID 0x0510 | 24 | #define PRODUCT_ID 0x4D68 // "M68" |
25 | #define DEVICE_VER 0x0101 | 25 | #define DEVICE_VER 0x0101 |
26 | #define MANUFACTURER di0ib | 26 | #define MANUFACTURER di0ib |
27 | #define PRODUCT MF68 | 27 | #define PRODUCT MF68 |
diff --git a/keyboards/40percentclub/mf68/keymaps/via/keymap.c b/keyboards/40percentclub/mf68/keymaps/via/keymap.c new file mode 100644 index 000000000..efd595ac1 --- /dev/null +++ b/keyboards/40percentclub/mf68/keymaps/via/keymap.c | |||
@@ -0,0 +1,49 @@ | |||
1 | /* Copyright 2020 MechMerlin | ||
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 | |||
20 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
21 | [0] = LAYOUT_68_ansi( | ||
22 | 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, KC_PGUP, | ||
23 | 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, KC_DEL, KC_PGDN, | ||
24 | 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_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, | ||
26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
27 | ), | ||
28 | [1] = LAYOUT_68_ansi( | ||
29 | KC_GRV, 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_BSPC, KC_VOLU, KC_HOME, | ||
30 | _______, _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, BL_STEP, _______, KC_VOLD, KC_END, | ||
31 | _______, _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, | ||
32 | _______, _______, _______, _______, _______, _______, _______, KC_MUTE, _______, _______, _______, _______, KC_MUTE, | ||
33 | _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT | ||
34 | ), | ||
35 | [2] = LAYOUT_68_ansi( | ||
36 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
37 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
38 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
41 | ), | ||
42 | [3] = LAYOUT_68_ansi( | ||
43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
44 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
46 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
48 | ) | ||
49 | }; | ||
diff --git a/keyboards/40percentclub/mf68/keymaps/via/rules.mk b/keyboards/40percentclub/mf68/keymaps/via/rules.mk new file mode 100644 index 000000000..36b7ba9cb --- /dev/null +++ b/keyboards/40percentclub/mf68/keymaps/via/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes | ||
diff --git a/keyboards/40percentclub/mf68/mf68.h b/keyboards/40percentclub/mf68/mf68.h index a34f9cde8..6844ed1b0 100644 --- a/keyboards/40percentclub/mf68/mf68.h +++ b/keyboards/40percentclub/mf68/mf68.h | |||
@@ -16,7 +16,7 @@ | |||
16 | { K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \ | 16 | { K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \ |
17 | { K50, K51, K52, K53, K54, K55, K56, K57, K58 }, \ | 17 | { K50, K51, K52, K53, K54, K55, K56, K57, K58 }, \ |
18 | { K60, K61, K62, K63, K64, K65, K66, K67, K68 }, \ | 18 | { K60, K61, K62, K63, K64, K65, K66, K67, K68 }, \ |
19 | { K70, K71, K72, K73, K74 } \ | 19 | { K70, K71, K72, K73, K74, KC_NO, KC_NO, KC_NO, KC_NO } \ |
20 | } | 20 | } |
21 | 21 | ||
22 | #define LAYOUT_kc( \ | 22 | #define LAYOUT_kc( \ |
diff --git a/keyboards/40percentclub/mf68/rules.mk b/keyboards/40percentclub/mf68/rules.mk index 65d187035..f1967d83e 100644 --- a/keyboards/40percentclub/mf68/rules.mk +++ b/keyboards/40percentclub/mf68/rules.mk | |||
@@ -14,7 +14,7 @@ BOOTLOADER = caterina | |||
14 | # Build Options | 14 | # Build Options |
15 | # change yes to no to disable | 15 | # change yes to no to disable |
16 | # | 16 | # |
17 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | 17 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration |
18 | MOUSEKEY_ENABLE = yes # Mouse keys | 18 | MOUSEKEY_ENABLE = yes # Mouse keys |
19 | EXTRAKEY_ENABLE = yes # Audio control and System control | 19 | EXTRAKEY_ENABLE = yes # Audio control and System control |
20 | CONSOLE_ENABLE = no # Console for debug | 20 | CONSOLE_ENABLE = no # Console for debug |
@@ -22,7 +22,7 @@ COMMAND_ENABLE = no # Commands for debug and configuration | |||
22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | 22 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE |
23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | 23 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend |
24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | 24 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work |
25 | NKRO_ENABLE = no # USB Nkey Rollover | 25 | NKRO_ENABLE = yes # USB Nkey Rollover |
26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default | 26 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default |
27 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | 27 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow |
28 | MIDI_ENABLE = no # MIDI controls | 28 | MIDI_ENABLE = no # MIDI controls |