2020-05-01 11:58:00 -07:00
|
|
|
|
|
|
|
/ {
|
2020-05-03 12:49:33 -07:00
|
|
|
chosen {
|
2020-05-06 07:04:19 -07:00
|
|
|
zmk,kscan = &kscan0;
|
2020-05-03 12:49:33 -07:00
|
|
|
};
|
|
|
|
|
2020-05-06 07:04:19 -07:00
|
|
|
kscan0: kscan {
|
2020-05-01 11:58:00 -07:00
|
|
|
compatible = "gpio-kscan";
|
2020-05-06 07:04:19 -07:00
|
|
|
label = "KSCAN";
|
2020-05-01 11:58:00 -07:00
|
|
|
|
2020-05-05 13:09:05 -07:00
|
|
|
diode-direction = "row2col";
|
2020-05-01 11:58:00 -07:00
|
|
|
row-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
|
|
|
<&arduino_header 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
|
|
|
col-gpios = <&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
|
|
|
|
<&arduino_header 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
|
|
|
};
|
|
|
|
};
|