Skip to content
New issue

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

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

Already on GitHub? # to your account

Allow behavior locality to be configurable #1616

Open
xudongzheng opened this issue Jan 3, 2023 · 0 comments
Open

Allow behavior locality to be configurable #1616

xudongzheng opened this issue Jan 3, 2023 · 0 comments

Comments

@xudongzheng
Copy link
Contributor

xudongzheng commented Jan 3, 2023

This would enable a number of use cases particularly when using a dongle.

  • &reset and &bootloader currently default to BEHAVIOR_LOCALITY_EVENT_SOURCE. BEHAVIOR_LOCALITY_CENTRAL would allow user to reset or trigger bootloader on dongle instead of peripheral half.
  • &ext_power, &rgb_ug, and &bl default to BEHAVIOR_LOCALITY_GLOBAL. BEHAVIOR_LOCALITY_CENTRAL would allow user to manipulate LEDs connected to dongle (where power consumption is not a concern) without affecting keyboard halves.

One option is to make it a DeviceTree attribute, which will allow users to define separate keys that are local/global/source.

Also important to think about how CONFIG_ZMK_RGB_UNDERGLOW_EXT_POWER should behave. Most logical would be for it to do whatever the default &ext_vcc does.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant