MF68 added and compiles

This commit is contained in:
Paul Warren 2022-12-13 12:14:00 +00:00
parent f03e29ca13
commit 6b20e8f1e9
5 changed files with 98 additions and 0 deletions

View file

@ -0,0 +1,8 @@
if SHIELD_MF68
config ZMK_KEYBOARD_NAME
default "MF68"
endif

View file

@ -0,0 +1,3 @@
config SHIELD_MF68
def_bool $(shields_list_contains,mf68)

View file

@ -0,0 +1,40 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
/ {
keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp ESC &kp 1 &kp 2 &kp 3 &kp 4 &kp 5 &kp 6 &kp 7 &kp 8 &kp 9 &kp 0 &kp MINUS &kp EQUAL &kp BSPC &kp INS &kp PGUP
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT &kp RBKT &kp BSLH &kp DEL &kp PGDN
&kp GRAVE &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT &kp RET
&kp LSFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSFT &kp UP
&kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo 1 &mo 2 &kp RCTRL &kp LEFT &kp DOWN &kp RIGHT
>;
};
lower {
bindings = <
&kp GRAVE &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp DEL &kp C_VOL_UP &kp HOME
&trans &kp HOME &kp UP &kp END &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp C_VOL_DN &kp END
&trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp C_MUTE
&trans &trans &trans &trans &trans &trans &trans &kp C_PREV &kp C_PP &kp C_NEXT
>;
};
raise{
bindings = <
&trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &trans &trans &trans &trans &trans &trans &trans &trans &bt BT_CLR &reset &bootloader
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &kp &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
};
};

View file

@ -0,0 +1,39 @@
// QMK bits
// #define MATRIX_ROW_PINS { B6, B2, B3, B1, F7, F6, F5, F4 }
// #define MATRIX_COL_PINS { D3, D2, D1, D0, D4, C6, D7, E6, B4 }
// #define DIODE_DIRECTION COL2ROW
// #define BACKLIGHT_PIN B5
/ {
chosen {
zmk,kscan = &kscan0;
};
kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
diode-direction = "col2row";
col-gpios
= <&pro_micro 10 GPIO_ACTIVE_HIGH>,
<&pro_micro 16 GPIO_ACTIVE_HIGH>,
<&pro_micro 14 GPIO_ACTIVE_HIGH>,
<&pro_micro 15 GPIO_ACTIVE_HIGH>,
<&pro_micro 18 GPIO_ACTIVE_HIGH>,
<&pro_micro 19 GPIO_ACTIVE_HIGH>,
<&pro_micro 20 GPIO_ACTIVE_HIGH>,
<&pro_micro 21 GPIO_ACTIVE_HIGH>;
row-gpios
= <&pro_micro 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
};
};

View file

@ -0,0 +1,8 @@
file_format: "1"
id: mf68
name: MF68
type: shield
url: https://68keys.io/
requires: [pro_micro]
features:
- keys