Skip to content

Commit 25b1367

Browse files
authored
VIA Support: MF68 (#11030)
* add via support to mf68 pcb * add license header
1 parent 624cafb commit 25b1367

File tree

5 files changed

+56
-5
lines changed

5 files changed

+56
-5
lines changed

keyboards/40percentclub/mf68/config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2020
#include "config_common.h"
2121

2222
/* USB Device descriptor parameter */
23-
#define VENDOR_ID 0xCEEB
24-
#define PRODUCT_ID 0x0510
23+
#define VENDOR_ID 0x3430 // "40"
24+
#define PRODUCT_ID 0x4D68 // "M68"
2525
#define DEVICE_VER 0x0101
2626
#define MANUFACTURER di0ib
2727
#define PRODUCT MF68
Original file line numberDiff line numberDiff line change
@@ -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+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VIA_ENABLE = yes
2+
LTO_ENABLE = yes

keyboards/40percentclub/mf68/mf68.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{ K40, K41, K42, K43, K44, K45, K46, K47, K48 }, \
1717
{ K50, K51, K52, K53, K54, K55, K56, K57, K58 }, \
1818
{ 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 } \
2020
}
2121

2222
#define LAYOUT_kc( \

keyboards/40percentclub/mf68/rules.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ BOOTLOADER = caterina
1414
# Build Options
1515
# change yes to no to disable
1616
#
17-
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
17+
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
1818
MOUSEKEY_ENABLE = yes # Mouse keys
1919
EXTRAKEY_ENABLE = yes # Audio control and System control
2020
CONSOLE_ENABLE = no # Console for debug
2121
COMMAND_ENABLE = no # Commands for debug and configuration
2222
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
2323
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
2424
# 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
2626
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
2727
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
2828
MIDI_ENABLE = no # MIDI controls

0 commit comments

Comments
 (0)