zmkfirmware / zmk

ZMK Firmware Repository
https://zmk.dev/
MIT License
2.84k stars 2.86k forks source link

Sideband behaviour only allows for any bindings of single word #2493

Open Trap101 opened 2 months ago

Trap101 commented 2 months ago

It seems that kscan-sideband-behaviors only allows for bindings in the form of &capsword or &ble etc. and does not allow for anyone like &kp A as there is a space in the middle. So this does not work and returns the error parse error: expected number or parenthesized expression

    endpoint_sideband_behaviour {
        compatible = "zmk,kscan-sideband-behaviors";
        auto-enable;
        kscan = <&kscan_sp3t_toggle>; 
        first {
            column = <0>;
            bindings = <&kp F>;
        };
        second {
            column = <1>;
            bindings = <&kp J>;
        };
    };

while this works

    endpoint_sideband_behaviour {
        compatible = "zmk,kscan-sideband-behaviors";
        auto-enable;
        kscan = <&kscan_sp3t_toggle>; 
        first {
            column = <0>;
            bindings = <&caps_word>;
        };
        second {
            column = <1>;
            bindings = <&caps_word>;
        };
    };

here is my repo which should contain a good history of failing and succeeding in github action forms https://github.com/Trap101/my-dactyl-keyboard

petejohanson commented 2 months ago

You're probably receiving that error because you're not #include-ing the keys.h header to bring in the defines for A, B, etc.