* Especially for splits, we need the ability to unpair all paired devices as sledgehammer if we need to "reset things", and doing so via keymaps isn't suitable. * Allows shields to define a collection of key positions that if all held 2 seconds after startup, will unpair all existing pairs for the device.
33 lines
574 B
Text
33 lines
574 B
Text
/*
|
|
* Copyright (c) 2020 Pete Johanson
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include "kyria.dtsi"
|
|
|
|
&default_transform {
|
|
col-offset = <8>;
|
|
};
|
|
|
|
&kscan0 {
|
|
col-gpios
|
|
= <&pro_micro_d 10 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro_a 2 GPIO_ACTIVE_HIGH>
|
|
, <&pro_micro_a 3 GPIO_ACTIVE_HIGH>
|
|
;
|
|
};
|
|
|
|
|
|
&right_encoder {
|
|
status = "okay";
|
|
};
|
|
|
|
&bt_unpair_combo {
|
|
key-positions = <11 45>;
|
|
}; |