* Add dedicated init priority for the sideband kscan. * Refactor sideband code for clarity. * Tweaks to direct kscan for clarity. * Make sideband behavior row optional for brevity. * Allow overriding ZMK Uno sideband behaviors.
39 lines
894 B
Text
39 lines
894 B
Text
/*
|
|
* Copyright (c) 2022 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#include <behaviors.dtsi>
|
|
#include <dt-bindings/zmk/keys.h>
|
|
#include <dt-bindings/zmk/backlight.h>
|
|
#include <dt-bindings/zmk/bt.h>
|
|
#include <dt-bindings/zmk/ext_power.h>
|
|
#include <dt-bindings/zmk/rgb.h>
|
|
|
|
// Uncomment the following lines if using the "Direct Wire" jumper to switch the matrix to a direct wire.
|
|
|
|
// &kscan_direct { status = "okay"; };
|
|
// &kscan_matrix { status = "disabled"; };
|
|
|
|
// / {
|
|
// chosen {
|
|
// zmk,matrix-transform = &direct_matrix_transform;
|
|
// zmk,kscan = &kscan_direct;
|
|
// };
|
|
// };
|
|
|
|
/ {
|
|
keymap {
|
|
compatible = "zmk,keymap";
|
|
|
|
default_layer {
|
|
bindings = <
|
|
&kp A &bl BL_TOG
|
|
&rgb_ug RGB_EFF &bt BT_CLR
|
|
>;
|
|
|
|
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
|
|
};
|
|
};
|
|
};
|