34 lines
678 B
Plaintext
34 lines
678 B
Plaintext
|
/*
|
||
|
* Copyright (c) 2021 The ZMK Contributors
|
||
|
*
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
|
||
|
// #include <dt-bindings/zmk/matrix_transform.h>
|
||
|
#include "choctopus44.dtsi"
|
||
|
|
||
|
/ {
|
||
|
chosen {
|
||
|
zmk,kscan = &kscan0;
|
||
|
};
|
||
|
|
||
|
kscan0: kscan_0 {
|
||
|
compatible = "zmk,kscan-gpio-matrix";
|
||
|
label = "KSCAN";
|
||
|
diode-direction = "col2row";
|
||
|
|
||
|
col-gpios
|
||
|
= <&pro_micro_d 4 GPIO_ACTIVE_HIGH>
|
||
|
, <&pro_micro_d 5 GPIO_ACTIVE_HIGH>
|
||
|
, <&pro_micro_d 6 GPIO_ACTIVE_HIGH>
|
||
|
, <&pro_micro_d 7 GPIO_ACTIVE_HIGH>
|
||
|
, <&pro_micro_d 8 GPIO_ACTIVE_HIGH>
|
||
|
, <&pro_micro_d 9 GPIO_ACTIVE_HIGH>
|
||
|
;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&middle_encoder {
|
||
|
status = "okay";
|
||
|
};
|