diff options
Diffstat (limited to 'app/boards/shields/petejohanson_pro_micro_handwire')
5 files changed, 76 insertions, 0 deletions
diff --git a/app/boards/shields/petejohanson_pro_micro_handwire/Kconfig.defconfig b/app/boards/shields/petejohanson_pro_micro_handwire/Kconfig.defconfig new file mode 100644 index 0000000..5098fc8 --- /dev/null +++ b/app/boards/shields/petejohanson_pro_micro_handwire/Kconfig.defconfig @@ -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 diff --git a/app/boards/shields/petejohanson_pro_micro_handwire/Kconfig.shield b/app/boards/shields/petejohanson_pro_micro_handwire/Kconfig.shield new file mode 100644 index 0000000..b6264db --- /dev/null +++ b/app/boards/shields/petejohanson_pro_micro_handwire/Kconfig.shield @@ -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) diff --git a/app/boards/shields/petejohanson_pro_micro_handwire/keymap/keymap.overlay b/app/boards/shields/petejohanson_pro_micro_handwire/keymap/keymap.overlay new file mode 100644 index 0000000..ca03557 --- /dev/null +++ b/app/boards/shields/petejohanson_pro_micro_handwire/keymap/keymap.overlay @@ -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>; + }; + }; +}; diff --git a/app/boards/shields/petejohanson_pro_micro_handwire/petejohanson_pro_micro_handwire.conf b/app/boards/shields/petejohanson_pro_micro_handwire/petejohanson_pro_micro_handwire.conf new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/boards/shields/petejohanson_pro_micro_handwire/petejohanson_pro_micro_handwire.conf diff --git a/app/boards/shields/petejohanson_pro_micro_handwire/petejohanson_pro_micro_handwire.overlay b/app/boards/shields/petejohanson_pro_micro_handwire/petejohanson_pro_micro_handwire.overlay new file mode 100644 index 0000000..1b27b93 --- /dev/null +++ b/app/boards/shields/petejohanson_pro_micro_handwire/petejohanson_pro_micro_handwire.overlay @@ -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)>; + }; +}; |