1
0
Fork 0

Add output selection to bt select layer ; top is usb, bottom is ble

This commit is contained in:
KemoNine 2021-07-04 15:47:09 +00:00
parent 5fe44dbd4d
commit eb90d18401

View file

@ -6,6 +6,7 @@
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
/***************************************** /*****************************************
* Macros for filling in "&none" in the right places in the keymap for re-use needs * Macros for filling in "&none" in the right places in the keymap for re-use needs
@ -83,20 +84,6 @@
// #define MIDDLE_NONES NONE(0, 0, 3) // #define MIDDLE_NONES NONE(0, 0, 3)
// #define TRAILING_NONES NONE(0, 1, 0) // #define TRAILING_NONES NONE(0, 1, 0)
/*****************************************
* Define custom BT layer extra keys
*
* You can override the 2 blank keys on the BT select layer by copy/pasting the below into your keymap
* *before* including the artsey.dtsfile
* Once added to your keymap you can adjust these 2 keys as you see fit
*****************************************/
#if !defined ARTSEY_BT_TOP
#define ARTSEY_BT_TOP &none
#endif
#if !defined ARTSEY_BT_BOTTOM
#define ARTSEY_BT_BOTTOM &none
#endif
/***************************************** /*****************************************
* Define custom layer * Define custom layer
* *
@ -302,9 +289,9 @@
label = "BT"; label = "BT";
bindings = < bindings = <
LEADING_NONES LEADING_NONES
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 ARTSEY_BT_TOP &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &out OUT_USB
MIDDLE_NONES MIDDLE_NONES
&bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 5 ARTSEY_BT_BOTTOM &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 5 &out OUT_BLE
TRAILING_NONES TRAILING_NONES
>; >;
}; };
@ -382,9 +369,9 @@
label = "BT"; label = "BT";
bindings = < bindings = <
LEADING_NONES LEADING_NONES
ARTSEY_BT_TOP &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 &out OUT_USB &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0
MIDDLE_NONES MIDDLE_NONES
ARTSEY_BT_BOTTOM &bt BT_SEL 5 &bt BT_SEL 4 &bt BT_SEL 3 &out OUT_BLE &bt BT_SEL 5 &bt BT_SEL 4 &bt BT_SEL 3
TRAILING_NONES TRAILING_NONES
>; >;
}; };