2020-12-04 03:08:20 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 The ZMK Contributors
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*/
|
|
|
|
|
2020-12-05 23:18:43 +00:00
|
|
|
#include "tidbit.dtsi"
|
2020-12-04 03:08:20 +00:00
|
|
|
#include <behaviors.dtsi>
|
2020-12-05 23:18:43 +00:00
|
|
|
#include <dt-bindings/zmk/keys.h>
|
2020-12-04 03:08:20 +00:00
|
|
|
#include <dt-bindings/zmk/bt.h>
|
|
|
|
#include <dt-bindings/zmk/outputs.h>
|
|
|
|
|
|
|
|
&encoder_4 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pro_micro_i2c {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/ {
|
|
|
|
sensors {
|
|
|
|
compatible = "zmk,keymap-sensors";
|
|
|
|
sensors = <&encoder_4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
keymap {
|
|
|
|
compatible = "zmk,keymap";
|
2020-12-05 23:18:43 +00:00
|
|
|
|
2020-12-04 03:08:20 +00:00
|
|
|
default_layer {
|
|
|
|
bindings = <
|
2020-12-05 23:18:43 +00:00
|
|
|
&tog 1 &kp KP_NUMLOCK &kp KP_SLASH
|
2020-12-04 03:08:20 +00:00
|
|
|
&kp KP_NUMBER_7 &kp KP_NUMBER_8 &kp KP_NUMBER_9 &kp KP_ASTERISK
|
|
|
|
&kp KP_NUMBER_4 &kp KP_NUMBER_5 &kp KP_NUMBER_6 &kp KP_MINUS
|
|
|
|
&kp KP_NUMBER_1 &kp KP_NUMBER_2 &kp KP_NUMBER_3 &kp KP_PLUS
|
|
|
|
&kp C_MUTE &kp KP_NUMBER_0 &kp KP_DOT &kp KP_ENTER
|
|
|
|
>;
|
|
|
|
|
|
|
|
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
|
|
|
};
|
|
|
|
|
|
|
|
func_layer {
|
|
|
|
bindings = <
|
|
|
|
&tog 0 &reset &bootloader
|
|
|
|
&out OUT_TOG &out OUT_USB &out OUT_BLE &none
|
2020-12-05 23:18:43 +00:00
|
|
|
&bt BT_SEL 0 &bt BT_PRV &bt BT_NXT &bt BT_CLR
|
|
|
|
&bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &none
|
|
|
|
&kp C_MUTE &none &none &none
|
2020-12-04 03:08:20 +00:00
|
|
|
>;
|
|
|
|
|
|
|
|
sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|