From eb90d18401b38fa5e3a16fca88d336cc96fc1a00 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 4 Jul 2021 15:47:09 +0000 Subject: [PATCH] Add output selection to bt select layer ; top is usb, bottom is ble --- config/artsey.dtsi | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/config/artsey.dtsi b/config/artsey.dtsi index 00c4b09..12e6c3c 100644 --- a/config/artsey.dtsi +++ b/config/artsey.dtsi @@ -6,6 +6,7 @@ #include #include +#include /***************************************** * 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 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 * @@ -302,9 +289,9 @@ label = "BT"; bindings = < 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 - &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 >; }; @@ -382,9 +369,9 @@ label = "BT"; bindings = < 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 - 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 >; };