Commit graph

2093 commits

Author SHA1 Message Date
Kuba Birecki
cb22fa885a Fix formatting 2023-06-13 16:00:21 +02:00
Kuba Birecki
abeb5c8c49 Update the animation API for Zephyr 3.* 2023-06-13 15:21:13 +02:00
Kuba Birecki
e2cdd017e3 Put animation control settings code behind config flags 2023-06-11 10:23:03 +02:00
Kuba Birecki
331573471d Disable animations when entering sleep state 2023-06-11 10:23:03 +02:00
Kuba Birecki
6a551851aa Persist settings for control animations 2023-06-11 10:23:03 +02:00
Kuba Birecki
fc8b91a2ba Implement control animation and basic animation behaviors 2023-06-11 10:23:02 +02:00
Kuba Birecki
69de72c6f4 Ensure the buffer is always reset before calculating each frame 2023-06-11 10:20:46 +02:00
Kuba Birecki
eb1fc0a21b Prevent ripple animation from requesting frames unless active 2023-06-11 10:20:46 +02:00
Kuba Birecki
0e09446cf8 Optimize the lookup table for pixel distances 2023-06-11 10:20:46 +02:00
Kuba Birecki
19790f2e1a Implement animation activation/deactivation API and frame scheduling 2023-06-11 10:20:46 +02:00
Kuba Birecki
6697fc4582 Fix intensity calculation for the ripple animation 2023-06-11 10:20:46 +02:00
Kuba Birecki
2fa6063c9b Refactor animation API to allow for processing entire frames at once 2023-06-11 10:20:46 +02:00
Kuba Birecki
ae518fabc9 Add 'compose' animation 2023-06-11 10:20:46 +02:00
Kuba Birecki
38a70ea747 Update devicetree bindings for solid animation 2023-06-11 10:20:46 +02:00
Kuba Birecki
d7d1c0abcf Update ripple animation to use the given color 2023-06-11 10:20:46 +02:00
Kuba Birecki
30e0903d8e Implement a 'ripple' per-key effect animation 2023-06-11 10:20:46 +02:00
Kuba Birecki
df35aa5547 Implement helpers for key pixel position and pixel distance 2023-06-11 10:20:46 +02:00
Kuba Birecki
cc70d75238 Refactor the animation api to allow for pre- and post-frame hooks 2023-06-11 10:20:46 +02:00
Kuba Birecki
2dfec75038 Fix formatting 2023-06-11 10:20:46 +02:00
Kuba Birecki
8e5574ab49 Move animation_solid from drivers to zmk/src/animation 2023-06-11 10:20:44 +02:00
Kuba Birecki
105afca3d9 Clean up the main animation module 2023-06-11 10:17:50 +02:00
Kuba Birecki
f50037dcbb Fix HSL->RGB conversion 2023-06-11 10:17:50 +02:00
Kuba Birecki
2326f36e50 Update animation devicetree bindings 2023-06-11 10:17:50 +02:00
Kuba Birecki
5da7a6e29f Remove pixel device definition 2023-06-11 10:17:50 +02:00
Kuba Birecki
be02e78356 Implement a simple solid-color-cycle animation 2023-06-11 10:17:48 +02:00
Kuba Birecki
352fe39468 Add an implementation for the core animations system 2023-06-11 10:16:37 +02:00
Kuba Birecki
4da01b63b0 Implement the initial version of the animation interface 2023-06-11 10:14:43 +02:00
Kuba Birecki
c3beca12bd Add animation devicetree bindings 2023-06-11 10:14:43 +02:00
dependabot[bot]
9d714c0b69 chore(deps-dev): bump webpack from 5.80.0 to 5.86.0 in /docs
Bumps [webpack](https://github.com/webpack/webpack) from 5.80.0 to 5.86.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.80.0...v5.86.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-10 23:51:23 -07:00
dependabot[bot]
0be0d07630 chore(deps): bump minimatch and serve-handler in /docs
Bumps [minimatch](https://github.com/isaacs/minimatch) and [serve-handler](https://github.com/zeit/serve-handler). These dependencies needed to be updated together.

Updates `minimatch` from 3.0.4 to 3.1.2
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

Updates `serve-handler` from 6.1.3 to 6.1.5
- [Release notes](https://github.com/zeit/serve-handler/releases)
- [Commits](https://github.com/zeit/serve-handler/compare/6.1.3...6.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
- dependency-name: serve-handler
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-10 23:37:26 -07:00
pixls
9d39a87f67
fix(docs): Change user-setup.md order to agree with order in setup script
Fixes #1281 

Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
2023-06-10 17:49:30 -07:00
kadoyau
98524a9567
fix(docs): Fix INT6 keycode description 2023-06-10 12:32:50 -07:00
Albert Y
a5c57fa224
feat(docs): Add an example for combining just modifiers (#1826)
Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
2023-06-05 22:22:39 -07:00
Xudong Zheng
5d9ae8fffa feat(split): allow central to connect to multiple peripherals 2023-06-05 16:22:41 -06:00
Peter Johanson
f08802eaa7 fix(boards): Proper i2c pinctrl for BlueMicro840
* Use the proper pin assignmets after the move to pinctrl for the
  Zephyr 3.2 migration.
2023-06-05 00:05:44 -06:00
Peter Johanson
19d883cdfe fix(bluetooth): Passkey pairing improvements.
* Capture the last 6 entered digits, and then require pressing
   Enter/Return to submit the entered digits. This matches the
   messaging shown on hosts regarding how to complete pairing.
* Fix the wording on the Kconfig menu item to accurately describe
  the feature.
2023-06-05 00:01:44 -06:00
Cem Aksoylar
ace11e327f fix(docs): Fix broken link in BT troubleshooting 2023-06-02 22:07:29 -06:00
Cem Aksoylar
0682bc3aa6 feat(docs): Note split connectivity improvement with TX power 2023-06-02 21:13:27 -06:00
Cem Aksoylar
a9ad11f91e refactor(docs): Move BT troubleshooting items to BT page 2023-06-02 21:13:27 -06:00
Cem Aksoylar
30ba4b08ae feat(docs): Add pointer to Bluetooth page in troubleshooting 2023-06-02 21:13:27 -06:00
Cem Aksoylar
4042aea66f feat(docs): Add troubleshooting for Windows issue 2023-06-02 21:13:27 -06:00
Cem Aksoylar
0508718d6c feat(docs): Add behavior types section for hold-tap 2023-06-02 21:11:33 -06:00
Cem Aksoylar
a2af74f5ab feat(docs): Add note on modifier functions to macros 2023-06-02 21:08:02 -06:00
Joel Spadin
b276a3bfb0 refactor(kscan): batch GPIO reads by port
Changed the GPIO matrix and direct GPIO key scan drivers to do a single
read per port instead of one read per pin. This is much more efficient
for some types of GPIO drivers, such as I2C GPIO expanders.

To accomplish this with minimal overhead, we now sort input pins by port
at driver init. if we iterate through the pins in the sorted order, all
pins on the same port are consecutive, so we only need to read each port
once the first time we see it.
2023-05-28 23:33:34 -06:00
Xudong Zheng
1adfcf92bf refactor(split): fix inconsistency in Kconfig names 2023-05-28 22:58:31 -06:00
Peter Johanson
5aac2743b1 fix(bluetooth): Improved checking for conn status.
* Check the actual connection status before considering
  a discovered connection as connected.
2023-05-22 23:09:40 -06:00
Cem Aksoylar
864394b40a feat(display): Add setting to invert display colors
Add CONFIG_ZMK_DISPLAY_INVERT Kconfig to invert colors
(black-on-white to white-on-black) on monochrome screens.
Currently applies only if CONFIG_LV_USE_THEME_MONO is selected,
which is the default unless user overrides it.
2023-05-21 21:51:36 -06:00
Cem Aksoylar
7e29166c6c refactor(display): Clean up unused theme Kconfig 2023-05-21 21:51:36 -06:00
Cem Aksoylar
b021d19255 fix(display): Imply LVGL mono theme when display is enabled
All displays currently used with ZMK are monochrome so it makes sense
to enable the mono theme by default, which can be disabled by the user
since we use the "imply" statement.

Without this theme setting, the small font size selection for widgets
at the bottom of the stock status screen does not work.
2023-05-21 21:51:36 -06:00
Joel Spadin
c4c014e3d1 fix(docs): Fix typescript error
See https://github.com/facebook/docusaurus/issues/8226#issuecomment-1420620198
2023-05-20 01:33:11 -06:00