2022-06-12 20:28:56 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2023-12-06 12:05:29 -08:00
|
|
|
#include "zmk_uno.dtsi"
|
2022-06-12 20:28:56 -07:00
|
|
|
|
2023-12-30 16:57:00 -08:00
|
|
|
#include <behaviors.dtsi>
|
|
|
|
#include <dt-bindings/zmk/bt.h>
|
|
|
|
#include <dt-bindings/zmk/outputs.h>
|
|
|
|
|
2022-06-12 20:28:56 -07:00
|
|
|
/ {
|
2023-04-22 21:25:56 -07:00
|
|
|
chosen {
|
|
|
|
zmk,matrix-transform = &matrix_transform;
|
|
|
|
};
|
2024-01-26 18:39:35 -08:00
|
|
|
sensors: sensors {
|
2023-04-22 21:25:56 -07:00
|
|
|
compatible = "zmk,keymap-sensors";
|
|
|
|
sensors = <&encoder>;
|
2023-04-16 01:18:57 -07:00
|
|
|
triggers-per-rotation = <20>;
|
|
|
|
left {
|
|
|
|
triggers-per-rotation = <20>;
|
|
|
|
};
|
2023-04-22 21:25:56 -07:00
|
|
|
};
|
2022-06-12 20:28:56 -07:00
|
|
|
|
2023-12-30 16:57:00 -08:00
|
|
|
macros {
|
|
|
|
ZMK_MACRO(ble_zero,
|
|
|
|
wait-ms = <1>;
|
|
|
|
tap-ms = <1>;
|
|
|
|
bindings = <&out OUT_BLE &bt BT_SEL 0>;
|
|
|
|
)
|
|
|
|
ZMK_MACRO(ble_one,
|
|
|
|
wait-ms = <1>;
|
|
|
|
tap-ms = <1>;
|
|
|
|
bindings = <&out OUT_BLE &bt BT_SEL 1>;
|
|
|
|
)
|
|
|
|
};
|
|
|
|
|
|
|
|
endpoint_sideband_behaviors {
|
|
|
|
compatible = "zmk,kscan-sideband-behaviors";
|
|
|
|
kscan = <&kscan_sp3t_toggle>;
|
|
|
|
|
2024-01-22 13:39:08 -08:00
|
|
|
first_toggle_sideband: first_toggle_sideband {
|
2023-12-30 16:57:00 -08:00
|
|
|
column = <0>;
|
|
|
|
bindings = <&out OUT_USB>;
|
|
|
|
};
|
|
|
|
|
2024-01-22 13:39:08 -08:00
|
|
|
second_toggle_sideband: second_toggle_sideband {
|
2023-12-30 16:57:00 -08:00
|
|
|
column = <1>;
|
|
|
|
bindings = <&ble_zero>;
|
|
|
|
};
|
|
|
|
|
2024-01-22 13:39:08 -08:00
|
|
|
third_toggle_sideband: third_toggle_sideband {
|
2023-12-30 16:57:00 -08:00
|
|
|
column = <2>;
|
|
|
|
bindings = <&ble_one>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-06-12 20:28:56 -07:00
|
|
|
};
|