Output switching, USB <-> BLE

This commit is contained in:
Paul Warren 2022-12-13 22:43:35 +00:00
parent 6b20e8f1e9
commit d2aed86a35
3 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#include <behaviors.dtsi> #include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h> #include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h> #include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
/ { / {
keymap { keymap {
@ -29,7 +30,7 @@
raise{ raise{
bindings = < bindings = <
&trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &trans &trans &trans &trans &trans &trans &trans &trans &bt BT_CLR &reset &bootloader &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &trans &trans &trans &trans &trans &trans &trans &trans &bt BT_CLR &reset &bootloader
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &out OUT_USB &out OUT_BLE &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &kp &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans

View File

@ -15,6 +15,7 @@
label = "KSCAN"; label = "KSCAN";
diode-direction = "col2row"; diode-direction = "col2row";
col-gpios col-gpios
= <&pro_micro 10 GPIO_ACTIVE_HIGH>, = <&pro_micro 10 GPIO_ACTIVE_HIGH>,
<&pro_micro 16 GPIO_ACTIVE_HIGH>, <&pro_micro 16 GPIO_ACTIVE_HIGH>,

View File

@ -0,0 +1,3 @@
# Turn on logging, and set ZMK logging to debug output
CONFIG_ZMK_USB_LOGGING=y
#CONFIG_ZMK_LOG_LEVEL=8