Only test w/ Kyria and handwire.

This commit is contained in:
Pete Johanson
2020-06-26 11:38:58 -04:00
parent 185f9be6ab
commit f84a41de3e
7 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
if SHIELD_PETEJOHANSON_PRO_MICRO_HANDWIRE
config ZMK_KEYBOARD_NAME
default "Pete's ProMicro Compat Handwire"
config ZMK_USB
default y
config ZMK_ACTION_MOD_TAP
default y
endif

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2020 Pete Johanson
# SPDX-License-Identifier: MIT
config SHIELD_PETEJOHANSON_PRO_MICRO_HANDWIRE
def_bool $(shields_list_contains,petejohanson_pro_micro_handwire)

View File

@@ -0,0 +1,41 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
/ {
chosen {
zmk,keymap = &keymap0;
};
keymap0: keymap {
compatible = "zmk,keymap";
label ="Default keymap";
layers = <&default &lower &raise>;
};
layers {
compatible = "zmk,layers";
default: layer_0 {
label = "DEFAULT";
bindings = <
&mo 1 &kp A
&mo 2 &kp C>;
};
lower: layer_1 {
label = "LOWER";
bindings = <
&trans &kp D
&trans &kp E>;
};
raise: layer_2 {
label = "RAISE";
bindings = <
&trans &kp I
&trans &kp H>;
};
};
};

View File

@@ -0,0 +1,17 @@
/ {
chosen {
zmk,kscan = &kscan0;
};
kscan0: kscan {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
diode-direction = "row2col";
row-gpios = <&pro_micro_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
<&pro_micro_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
col-gpios = <&pro_micro_d 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
<&pro_micro_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};