51c9e7746a
fixed misstake from rebase
pre-commit / pre-commit (push) Has been cancelled
2024-09-12 15:36:30 +02:00
Peter Johanson
671cea5eb0
fix: Various fixes for building.
pre-commit / pre-commit (push) Waiting to run
BLE Tests / collect-tests (push) Has been cancelled
Tests / collect-tests (push) Has been cancelled
BLE Tests / run-tests (push) Has been cancelled
Tests / run-tests (push) Has been cancelled
2024-09-12 00:03:55 +02:00
Peter Johanson
4cf0f458b4
fix(mouse): Fix up tests and make ZMK_MOUSE explicit.
2024-09-12 00:03:55 +02:00
Peter Johanson
13ab1cefdc
refactor(mouse): Tweak behavior inclusion, listener code
...
* Always import mouse keys behavior and their associated listeners.
* Tweak listener code to only add listener nodes when
listener and the associated input device are enabled.
2024-09-12 00:03:52 +02:00
Peter Johanson
5e2e1a9bad
fix: Testing fixes for listener refactor.
2024-09-12 00:01:17 +02:00
Peter Johanson
1c0ae5725a
chore: Minor input behavior clean-up.
2024-09-12 00:00:32 +02:00
Peter Johanson
326505c4c0
refactor: Proper per-device input listeners.
...
* Buffer data from input devices and only surface to HID once synd'd.
2024-09-12 00:00:28 +02:00
Peter Johanson
33fc17b4c1
fix(mouse): Fixes for logging.
...
* Corrected logging for two-axis input timestamps.
2024-09-11 23:59:40 +02:00
Peter Johanson
4d37113f3f
refactor(mouse): Remove mouse work queue, Kconfig
...
* Remove now-unused mouse work queue and related mouse main file.
* Move ticks config into a DTS property on the two axis input behavior.
2024-09-11 23:59:40 +02:00
Peter Johanson
e9513c51d3
feat(mouse): Add input configs for data mods.
...
* Add ability to swap X/Y, invert X and Y values, and apply a
scalar multiplier/divisor.
2024-09-11 23:59:40 +02:00
Peter Johanson
2b6cdfa593
refactor: Use input system for pointer events.
2024-09-11 23:59:36 +02:00
Cem Aksoylar
79991d76f5
fix(mouse): Bump up default mouse tick duration to prevent crashes
2024-09-11 23:58:38 +02:00
Cem Aksoylar
76e3b76f2e
feat(mouse): Split move/scroll & x/y acceleration
2024-09-11 23:58:38 +02:00
Cem Aksoylar
fe32108532
feat(mouse): Add mouse move and scroll support [WIP]
...
Co-authored-by: Alexander Krikun <krikun98@gmail.com>
Co-authored-by: Robert U <urob@users.noreply.github.com>
Co-authored-by: Shawn Meier <ftc@users.noreply.github.com>
2024-09-11 23:58:14 +02:00
Peter Johanson
6b4d591c37
fix(bt): Fix compilation failure for clearing bonds.
...
BLE Tests / collect-tests (push) Has been cancelled
Docs Checks / lint (push) Has been cancelled
Docs Checks / typecheck (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Tests / collect-tests (push) Has been cancelled
BLE Tests / run-tests (push) Has been cancelled
Tests / run-tests (push) Has been cancelled
* Refactor broke the build when clearing bonds on start.
2024-09-09 11:26:53 -06:00
Pete Johanson
d52bb04090
Revert "feat: Split physical layout selection sync."
...
This reverts commit 03b5b38bc4
.
2024-09-07 00:22:01 -06:00
Alexander Krikun
cddc92108c
fix(boards): add sleep pinctrl node for nice!60
...
Add spi3_sleep pinctrl node to fix nice!60 builds with
both RGB underglow and sleep enabled.
2024-09-06 13:04:22 -06:00
honorless
a2f32cc12c
refactor(shield): tidbit
...
* Implement alternative matrix-transform.
* Add missing wakeup-source attribute.
* Revise README to provide more appropriate information.
* Remove unnecessary files (partially-functional shield).
2024-09-06 13:02:15 -06:00
Robert U
2a137bb675
fix: Support west test when invoked as module
2024-09-06 14:56:40 -04:00
ReFil
91447ac55c
fix: Correct max brightness in backlight metadata
...
The set brightness function in the backlighting code has a max of 100, as does the zephyr led-pwm driver https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/led/led_pwm.c
The range for the set brightness function should reflect this max
2024-09-06 14:36:08 -04:00
honorless
eaa8989f37
style: update commented-out obsolete keycodes
2024-09-06 12:22:54 -06:00
honorless
e0ec2ff84d
refactor: update obsolete keycodes
2024-09-06 12:22:54 -06:00
Peter Johanson
03b5b38bc4
feat: Split physical layout selection sync.
...
* Ensure the split peripherals have the same selected physical
layout on connection and change.
2024-09-06 12:20:45 -06:00
Peter Johanson
5176fbea6a
fix: Locking fix for RPC subsystem.
2024-09-05 12:22:08 -06:00
Peter Johanson
782695f4a9
fix: Fixes for CRC16 local IDs.
2024-09-05 12:22:08 -06:00
Peter Johanson
e0339a2a57
feat: Add shared layout .dtsi files to promote reuse.
...
* Add Corne and Ferris shared layouts, and update the respective
shields to use them.
* Add a sample Hummingbird physical layout for testing posix xiao.
* Add Sofle physical layout as an additional reference.
2024-09-05 12:22:08 -06:00
Peter Johanson
b84436e611
feat: Add posix_pro_micro and posix_seeed_xiao shields
...
* Make it easier to test native builds of our shields by adding
`posix_pro_micro` and `posix_seeed_xiao` so you can build posix
target of, e.g. `corne_left` for testing ZMK Studio.
2024-09-05 12:22:08 -06:00
Peter Johanson
fd28eab179
feat: Add the ability to keep/omit behaviors for a given build.
...
* Use defines to keep either all behaviors with omits, or selective behaviors with
explicit kept behavior, before including `behavior.dtsi` in keymaps.
* Default ZMK_BEHAVIORS_KEEP_ALL when building with the studio RPC
endpoint snippet.
2024-09-05 12:22:08 -06:00
Peter Johanson
d77e400eb9
feat(boards): Add posix MiniVan studio tester
...
* New shield to easily test studio using the `native_posix_64` board.
2024-09-05 12:22:08 -06:00
Peter Johanson
c8c19598a7
feat(keymap): Add binding get/set, layer movement
...
* Add keymap API for getting/setting a bindings
in keymap layers.
* Add layer move support via intemediary ordering array.
* Add settings storage for keymap changes.
2024-09-05 12:22:08 -06:00
Mike Szczys
f019524600
fix(display): widgets: increase buffer size for symbols
...
Increase buffer size used for placing LVGL symbols on displays. This
prevents array overflow warnings as discussed in #2444 .
Also convert one sprintf to snprintf to ensure the buffers are always
null terminated and never overflow.
Signed-off-by: Mike Szczys <szczys@hotmail.com>
2024-08-28 00:35:28 -06:00
Peter Johanson
d5061c5d3b
fix: Make CRC behavior local ID select CRC.
2024-08-15 11:45:18 -06:00
Peter Johanson
6ae6bf78b4
fix(boards): BDN9 rev2 tweaks.
...
* Reduce RAM usage, no need for heap any more in ZMK.
* Don't attempt to enable FPU that's not present.
2024-08-15 11:45:18 -06:00
Peter Johanson
fb67e4603a
feat: Add studio core coverage targets.
...
* Cover stm32, RP2040, and nRF52 builds.
2024-08-15 11:45:18 -06:00
Peter Johanson
bafe648425
feat: Add &studio_unlock
behavior.
...
* New behavior allows unlocking the keyboard to allow ZMK Studio to
make changes.
Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
2024-08-15 11:45:18 -06:00
Peter Johanson
b1bcc3e418
feat(studio): Add studio-rpc-usb-uart
snippet.
...
* Add an easy snippet for enabling USB UART added
to the `zephyr_udc0` standard node.
2024-08-15 11:45:18 -06:00
Peter Johanson
feda96eb40
feat(studio): Initial RPC infrastructure and subsystems.
...
* UART and BLE/GATT transports for a protobuf encoded RPC
request/response protocol.
* Custom framing protocol is used to frame a give message.
* Requests/responses are divided into major "subsystems" which
handle requests and create response messages.
* Notification support, including mapping local events to RPC
notifications by a given subsystem.
* Meta responses for "no response" and "unlock needed".
* Initial basic lock state support in a new core section, and allow specifying
if a given RPC callback requires unlocked state or not.
* Add behavior subsystem with full metadata support and examples of
using callback to serialize a repeated field without extra stack space needed.
Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
2024-08-15 11:45:18 -06:00
LostQuasar
b42d06ecf7
chore: Update pancake shield url
2024-08-14 14:38:38 -04:00
down
895f557ae5
fix: no error return in sticky key get_parameter_metadata
2024-08-14 12:34:18 -06:00
Pete Johanson
6d50ba5553
chore: Docs review tweaks.
...
Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
2024-08-12 16:57:54 -07:00
Peter Johanson
3fec690def
feat: Add config settings for sticky keys/hold-tap
...
* Add new Kconfig symbols to config max held sticky-keys/hold-taps
and for max captured events during hold-tap resolution.
2024-08-12 16:57:54 -07:00
Peter Johanson
cd25c12ce9
fix: Proper device PM support for composite kscan.
...
* Clean up composite kscan to allow multiple instances properly.
* Implement PM hook and properly suspend/resume the child devices.
Fixes : #2388
2024-08-03 13:45:51 -07:00
Peter Johanson
78ed721c36
fix(pm): Properly configure a wakeup as input.
...
* Other drivers properly disconnect/de-config pins now, so we need
to be sure the wakeup trigger connects the wake pin as input.
2024-08-02 16:37:11 -07:00
Peter Johanson
8c6bda260a
fix: Proper behavior metadata for key repeat/toggle
2024-07-05 15:38:04 -06:00
Peter Johanson
3694ff85a0
fix: Fix up layer metadata, move to layer IDs.
...
* Studio will use stable layer IDs to refer to layers, so that
layer reordering doesn't affect behavior bindings, so update to match.
* Fix a few layer metadata entries that missed being refactored.
2024-07-05 13:13:42 -06:00
Peter Johanson
e01f13f9f0
fix: Fix external power settings load issue.
...
* Because settings load is delayed now, enable external
power on init, and let it be disabled on settings load
later, to ensure power is on early for
other peripheral initialization.
Fixes : #2361
2024-07-04 17:20:40 -06:00
Peter Johanson
82eed0f5dd
feat(boards): Add flash/settings to XIAO RP2040.
...
* Add storage partition.
* Default necessacy Kconfig symbols for flash/settings.
2024-07-03 16:57:22 -06:00
Peter Johanson
5fcf092901
refactor(shields): Set ZMK Uno physical layouts.
...
* Add physical layout definitions for uno and split uno shields.
2024-07-03 16:52:05 -06:00
Peter Johanson
74f7fe921b
fix(splits): Increase split notify stack size.
2024-07-03 16:52:05 -06:00
Peter Johanson
0438cb0ee5
feat(kscan): More complete PM support to drivers.
...
* Update our GPIO kscan drivers to more completely support PM device,
by doing proper hardare init/deinit in the PM action hook.
2024-07-03 16:52:05 -06:00