Browse Source
* Still just devicetree keymaps. * Filename can now use `<board>.keymap` or `<shield>.keymap` convention, including overrides for revisions, etc.xmkb
Pete Johanson
4 years ago
16 changed files with 25 additions and 212 deletions
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
|
||||
if SHIELD_PETEJOHANSON_HANDWIRE |
||||
|
||||
config ZMK_KEYBOARD_NAME |
||||
default "Pete's Handwire Breadboard" |
||||
|
||||
config ZMK_BLE |
||||
default y |
||||
|
||||
config ZMK_ACTION_MOD_TAP |
||||
default y |
||||
|
||||
endif |
@ -1,5 +0,0 @@
@@ -1,5 +0,0 @@
|
||||
# Copyright (c) 2019 Linaro Limited |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_PETEJOHANSON_HANDWIRE |
||||
def_bool $(shields_list_contains,petejohanson_handwire) |
@ -1,40 +0,0 @@
@@ -1,40 +0,0 @@
|
||||
#include <dt-bindings/zmk/keys.h> |
||||
#include <behaviors.dtsi> |
||||
|
||||
/ { |
||||
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 = < |
||||
&cp M_NEXT &mt MOD_LSFT B &trans &trans |
||||
&mo 1 &mo 2 &trans &trans>; |
||||
}; |
||||
|
||||
lower: layer_1 { |
||||
label = "LOWER"; |
||||
|
||||
bindings = < |
||||
&cp M_PLAY &cp M_NEXT &trans &trans |
||||
&trans &trans &trans &trans>; |
||||
}; |
||||
|
||||
raise: layer_2 { |
||||
label = "RAISE"; |
||||
bindings = < |
||||
&kp C &kp D &trans &trans |
||||
&trans &kp E &trans &trans>; |
||||
}; |
||||
}; |
||||
}; |
@ -1 +0,0 @@
@@ -1 +0,0 @@
|
||||
CONFIG_ZMK_KSCAN_COMPOSITE_DRIVER=y |
@ -1,44 +0,0 @@
@@ -1,44 +0,0 @@
|
||||
|
||||
/ { |
||||
chosen { |
||||
zmk,kscan = &kscan0; |
||||
}; |
||||
|
||||
kscan0: kscan_0 { |
||||
compatible = "zmk,kscan-composite"; |
||||
label = "KSCAN_COMP"; |
||||
rows = <2>; |
||||
columns = <4>; |
||||
|
||||
left { |
||||
kscan = <&left_hand>; |
||||
}; |
||||
|
||||
right { |
||||
kscan = <&right_hand>; |
||||
column-offset = <2>; |
||||
}; |
||||
}; |
||||
|
||||
left_hand: kscan_1 { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN_LEFT"; |
||||
|
||||
diode-direction = "row2col"; |
||||
row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, |
||||
<&arduino_header 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
||||
col-gpios = <&arduino_header 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, |
||||
<&arduino_header 11 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
||||
}; |
||||
|
||||
right_hand: kscan_2 { |
||||
compatible = "zmk,kscan-gpio-matrix"; |
||||
label = "KSCAN_RIGHT"; |
||||
|
||||
diode-direction = "row2col"; |
||||
row-gpios = <&arduino_header 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, |
||||
<&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
||||
col-gpios = <&arduino_header 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>, |
||||
<&arduino_header 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
||||
}; |
||||
}; |
@ -1,13 +0,0 @@
@@ -1,13 +0,0 @@
|
||||
|
||||
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 |
@ -1,5 +0,0 @@
@@ -1,5 +0,0 @@
|
||||
# Copyright (c) 2020 Pete Johanson |
||||
# SPDX-License-Identifier: MIT |
||||
|
||||
config SHIELD_PETEJOHANSON_PRO_MICRO_HANDWIRE |
||||
def_bool $(shields_list_contains,petejohanson_pro_micro_handwire) |
@ -1,41 +0,0 @@
@@ -1,41 +0,0 @@
|
||||
#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>; |
||||
}; |
||||
}; |
||||
}; |
@ -1,17 +0,0 @@
@@ -1,17 +0,0 @@
|
||||
|
||||
/ { |
||||
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)>; |
||||
}; |
||||
}; |
Loading…
Reference in new issue