You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.0 KiB
45 lines
1.0 KiB
5 years ago
|
|
||
|
/ {
|
||
5 years ago
|
chosen {
|
||
5 years ago
|
zmk,kscan = &kscan0;
|
||
5 years ago
|
};
|
||
|
|
||
5 years ago
|
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 {
|
||
5 years ago
|
compatible = "gpio-kscan";
|
||
5 years ago
|
label = "KSCAN_LEFT";
|
||
5 years ago
|
|
||
5 years ago
|
diode-direction = "row2col";
|
||
5 years ago
|
row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
||
5 years ago
|
<&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 = "gpio-kscan";
|
||
|
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)>;
|
||
5 years ago
|
};
|
||
|
};
|