-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
414ab03
commit ac09c03
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Enable encoder support | ||
CONFIG_EC11=y | ||
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* | ||
* 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/outputs.h> | ||
#include <dt-bindings/zmk/rgb.h> | ||
|
||
// Uncomment the following block if using the "Direct Wire" jumper to switch the matrix to a direct wire. | ||
|
||
/* :REMOVE ME | ||
|
||
&kscan_direct_comp { status = "okay"; }; | ||
&kscan_direct { status = "okay"; }; | ||
&kscan_matrix_comp { status = "disabled"; }; | ||
&kscan_matrix { status = "disabled"; }; | ||
|
||
/ { | ||
chosen { | ||
zmk,matrix-transform = &direct_matrix_transform; | ||
zmk,kscan = &kscan_direct_comp; | ||
}; | ||
}; | ||
|
||
REMOVE ME: */ | ||
|
||
|
||
/ { | ||
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>; | ||
) | ||
}; | ||
|
||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
default_layer { | ||
bindings = < | ||
&kp A &bl BL_TOG | ||
&rgb_ug RGB_EFF &bt BT_CLR | ||
|
||
&out OUT_USB &ble_zero &ble_one | ||
>; | ||
|
||
sensor-bindings = <&inc_dec_kp A B>; | ||
}; | ||
}; | ||
}; |