2020-05-02 04:58:00 +10:00
|
|
|
|
|
|
|
/ {
|
2020-05-04 05:49:33 +10:00
|
|
|
chosen {
|
2020-05-07 00:04:19 +10:00
|
|
|
zmk,kscan = &kscan0;
|
2020-05-04 05:49:33 +10:00
|
|
|
};
|
|
|
|
|
2020-05-27 14:48:03 +10:00
|
|
|
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 {
|
2020-06-25 00:06:35 +10:00
|
|
|
compatible = "zmk,kscan-gpio-matrix";
|
2020-05-27 14:48:03 +10:00
|
|
|
label = "KSCAN_LEFT";
|
2020-05-02 04:58:00 +10:00
|
|
|
|
2020-05-06 06:09:05 +10:00
|
|
|
diode-direction = "row2col";
|
2020-05-02 04:58:00 +10:00
|
|
|
row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
2020-05-27 14:48:03 +10:00
|
|
|
<&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 {
|
2020-06-25 00:06:35 +10:00
|
|
|
compatible = "zmk,kscan-gpio-matrix";
|
2020-05-27 14:48:03 +10:00
|
|
|
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)>;
|
2020-05-02 04:58:00 +10:00
|
|
|
};
|
|
|
|
};
|