Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sensor handling to keymaps. #61

Merged

Conversation

petejohanson
Copy link
Contributor

This is the initial work on supporting sensors (encoders) for keymaps.

This still doesn't fully work for split, I need to figure out the best way to handle generic sensors that transmit channel data reasonably across the split protocol.

In your keymap layer:

sensor-bindings = <&enccp M_VOLU M_VOLD &enckp PGUP PGDN>;

And that can send consumer presses (volume), or key presses (pg up/down).

@petejohanson petejohanson added core Core functionality/behavior of ZMK behaviors sensors labels Jul 22, 2020
@petejohanson petejohanson requested a review from Nicell July 22, 2020 15:11
@petejohanson petejohanson self-assigned this Jul 22, 2020
@petejohanson petejohanson force-pushed the sensors/sensor-keymap-bindings branch from 5eaecdc to 34ff619 Compare July 22, 2020 18:54
@petejohanson petejohanson merged commit 36f36f2 into zmkfirmware:main Jul 22, 2020
MangoIV referenced this pull request in MangoIV/zmk Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behaviors core Core functionality/behavior of ZMK sensors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant