commit 7301aa5fea939052aa278a4aef7f7400bf434c68
Author: Kim Streich <kim@infusedinsight.com>
Date: Tue Mar 15 19:54:31 2022 +0400
feature(split): add support for sensors from peripheral
This commit adds a new GATT characteristics on the peripheral side
and wires it up to read sensor values. The central side subscribes
to this new characteristics and replays sensor values on its side.
—
This commit was originally made by Stephen Wan. I just adjusted it so that it rebases on top of later changes on the zmk main branch.
commit 8342b8b8d3fc76bd4ec958cf6ebe9f86973eef4a
Author: Kim Streich <kim@infusedinsight.com>
Date: Tue Mar 15 20:09:26 2022 +0400
refactor(split): take params in subscribe
We'll reuse this function later to subscribe to multiple characteristics.
—
This commit was originally made by Stephen Wan. I just adjusted it so that it rebases on top of later changes on the zmk main branch.
commit c4779911c486d3b93b74a1ca08d47a5d2eb97f96
Author: Stephen Wan <stephen@stephenwan.com>
Date: Mon Mar 15 11:57:33 2021 -0700
refactor(core): read sensor values earlier
Reading the values earlier will let us send the sensor values over GATT
for split, which will happen in a subsequent commit.
* GATT characteristic allowing passng data + behavior
label to invoke the behavior on the peripheral side.
* Behaviors have a locality setting to specify where they run.
* Build reset/power/RGB on peripheral.
* Add timestamps to position events and behaviors.
- Take original event timestamps into consideration so nested tap-holds have proper timing.
- Add position and timestamp to keycode state changed event so the one-shot behavior can properly identify other keypresses and timings.
- Add timestamp to position events received from peripheral
* reduce number of arguments to behaviors
* Use extra comptible = "zmk,behavior-global" to add
behaviors to global bindings for event notification.
* Implement mod-tap, as a keymap binding and global one
to skip tap if other keycode pressed while held.