Purdea Andrei
309359b32f
fix(keymaps): fix keypresses that are not in the transform
...
Before this change, if a matrix position was not present in the transform,
various incorrect behaviors would happen:
1) In some cases out-of-bounds accesses:
Note that the size of the`transform[]` array does not necessarily match
the size of the matrix. So for example if key position
(ZMK_MATRIX_COLS-1, ZMK_MATRIX_ROWS-1) is not present in the transform,
but ends up being pressed, then the array will be accessed beyond its
size, and any data could be returned.
2) In other cases the 0th position in the keymap will be used because
the `transform[]` array is initialized to all zeros.
2023-04-10 03:27:19 -04:00
Xudong Zheng
ee9fcec3c9
feat(core): Process log every 100ms
2023-04-09 23:29:22 -07:00
Xudong Zheng
a20b9502bc
feat(core): Add RTT logging Kconfig option
2023-04-09 23:29:22 -07:00
Xudong Zheng
3f48062225
feat(core): Add Kconfig option to exclude debug log messages
2023-04-09 23:29:22 -07:00
nguyendown
702d79c108
test(behaviors): add unit tests for sticky key quick-release
...
Duplicate the existing tests with `quick-release` enabled:
- 8-lsk-osk-combination-quick-release
- 10-callum-mods-quick-release
2023-04-10 01:50:57 -04:00
Cem Aksoylar
3c8f55ede0
fix(display): Do not override font size in status screen
2023-04-09 21:36:43 -07:00
Joel Spadin
064aff6bc0
fix(behaviors): Fix use after free in sticky key
...
Fixed an issue where the sticky key behavior would call
ZMK_EVENT_RAISE_AFTER(), which would free the provided event, but then
it would keep using that now-freed event data.
2023-04-09 20:17:40 -07:00
Peter Johanson
374104dec6
fix(underglow): Move to spi3 for underglow bus.
...
* Workaround Zephyr bug for Nordic SPI(M) driver after the
pinctrl refactor by using spi3 peripheral for the SPI bus for
the WS2812 led_strip driver.
2023-04-09 14:41:00 -07:00
Joel Spadin
b31b42018a
fix: Remove deprecated labels from zmk_uno
2023-04-08 15:37:48 -07:00
Cem Aksoylar
7434a6b99b
fix(shields): Fix nice!view for deep sleep
2023-04-08 00:41:19 -07:00
Hooky
9dcc3ac375
fix(shields): Fixup nice!view adapter pinctrl props.
...
`pinctrl-0` setting missing `<>`.
2023-04-07 06:53:10 -07:00
Peter Johanson
313ed6adb6
fix(display): Tweak EPD driver init/blanking.
...
Ensure we only clear the display when turning blanking off the
first time, not every time, to avoid duplicate clears.
2023-04-05 22:55:38 -07:00
Peter Johanson
1493620bf7
refactor(boards): Move to pinctrl.
2023-04-05 22:55:38 -07:00
Peter Johanson
518f9a550f
fix(underglow): Use DT_HAS_CHOSEN
properly.
2023-04-05 22:55:38 -07:00
Peter Johanson
198daaf524
fix(shields): Don't try to disable xiao_i2c on Hummingbird.
2023-04-05 22:55:38 -07:00
Peter Johanson
c3d06b22c8
fix(core): Bump system work queue stack on RP2040.
2023-04-05 22:55:38 -07:00
Peter Johanson
a6ebdb7180
fix(kscan): Default wait between outputs on RP2040.
2023-04-05 22:55:38 -07:00
Peter Johanson
2f9bc2f1f7
fix(logging): Disable USB driver logging.
...
When enabling our high level USB logging, disable the USB driver
logging itself entirely, to avoid logging in the driver causing
errors when USB isn't up yet to send the logs.
2023-04-05 22:55:38 -07:00
Peter Johanson
31f664ffec
fix(boards): Base config/overlay for rp2040 boards
...
Baseline config and overlay for the following:
* `rpi_pico`
* `adafruit_kb2040`
* `sparkfun_pro_micro_rp2040`
* `adafruit_qt_py_rp2040`
* `seeeduino_xiao_rp2040`
* `boardsource_blok`
* `01space_rp2040_042lcd`
Co-authored-by: Joel Spadin <joelspadin@gmail.com>
2023-04-05 22:55:38 -07:00
Peter Johanson
09ed79a867
refactor: Move away from deprecated label usages.
...
* Move away from DT_LABEL.
* Move to DEVICE_DT_GET for non-behavior device access.
* Move various drivers to `gpio_spec_dt` and `DT` related macros.
* Remove mcp23017 while at it, since better upstream driver is
available.
2023-04-05 22:55:38 -07:00
Peter Johanson
062f94d014
refactor: Remove v1 logging vestiges.
2023-04-05 22:55:38 -07:00
Peter Johanson
e84b4299b5
refactor: Remove deprecated Kconfig override.
2023-04-05 22:55:38 -07:00
Peter Johanson
3a958c667f
refactor: Move to zephyr/
include paths.
...
* Zephyr moved to properly namespaced headers, so major "rip
the bandaid" commit to move us to those everywhere.
2023-04-05 22:55:38 -07:00
Peter Johanson
35a1c5a3d4
refactor(behaviors): Rename reset
behavior.
...
* Upstream now has a node w/ label `reset` on many boards, so
renaming our reset behavior node label to `sys_reset`.
2023-04-05 22:55:38 -07:00
Peter Johanson
4f2f9db1d4
refactor(ble): New callback API for pairing complete.
2023-04-05 22:55:38 -07:00
Peter Johanson
d513dc1766
refactor: Move to new PM API.
2023-04-05 22:55:38 -07:00
Peter Johanson
243a227ff9
refactor: Move to LISTIFY/DT_FOREACH_PROP_ELEM macros.
2023-04-05 22:55:38 -07:00
Peter Johanson
69a4c3200d
refactor(display): Updates for LVGL v8.x changes.
...
* LV_ prefix from new LVGL official Kconfig now used.
* API changes for themes, container object removal, etc.
* Add our own Kconfig and code for theme default small font.
* Remove some hardcoded sizes.
2023-04-05 22:55:38 -07:00
Peter Johanson
168b32b828
refactor: Move to Zephyr 3.2 branch.
2023-04-05 22:55:38 -07:00
Peter Johanson
ae8299edb3
fix(boards): Move the CDC ACM node under the USBD.
...
* Ferris board's CDC ACM node was accidentally nested under the wrong
node, causing USB logging builds to fail with cryptic error.
2023-03-25 13:14:12 -07:00
prdktntwcklr
cd64c59b39
fix(tests): ignore line endings
2023-03-21 17:44:49 -07:00
chrissicool
56299ba5dc
fix(boards): Disable CDC by default for CiZ
...
The default configuration for corneish-zen enables a USB CDC endpoint by
default. This is most probably a debugging left-over. Disable that
endpoint. CONFIG_ZMK_USB_LOGGING depends on it anyway, so it will be
enabled again with that config option set.
2023-03-21 20:42:11 -04:00
Conor Burns
6eead4fb8f
Update newhorizons.overlay
2023-03-13 09:46:17 +01:00
Conor Burns
32c2f8a1ba
Update newhorizons.keymap
2023-03-13 09:45:50 +01:00
Conor Burns
0c2ff154d6
Update newhorizons.conf
2023-03-13 09:45:34 +01:00
Conor Burns
3ad976e954
Update Kconfig.shield
2023-03-13 09:45:18 +01:00
Conor Burns
1646a15da1
Update Kconfig.defconfig
2023-03-13 09:44:54 +01:00
Robert U
6cb42a8060
feat(behaviors): On-release option for positional-hold-taps
2023-03-12 12:24:00 -04:00
Conor Burns
0c89fdea35
add new shield: new horizons
2023-03-12 11:29:13 +00:00
Xudong Zheng
8904407983
feat(underglow): use float for HSB to RGB calculation
2023-02-25 01:44:00 -05:00
Cem Aksoylar
1d65661efa
fix(keymap): Fix tidbit keymap
2023-02-25 00:53:18 -05:00
Cem Aksoylar
3eee53676f
fix(shields): Fix missing binding in eek keymap
2023-02-21 23:49:56 -05:00
Cem Aksoylar
0c0ebda65b
fix(keymap): Fix default Ergodash keymap
2023-02-21 23:49:10 -05:00
Cem Aksoylar
5d22d76d72
fix(shields): Fix Kyria five column transforms
2023-02-21 23:47:10 -05:00
Cem Aksoylar
72624a41fa
fix(shields): Add missing col-offsets for extra transforms
2023-02-21 23:47:10 -05:00
Omri Kaplan
c065d451cb
fix(shields): Fix keycodes that differ from the default keymap ( #1590 )
...
- Asterisk in layer 1 was mapped to 8
- Underscore in layer 1 was mapped to minus
- Right GUI in layer 0 was mapped to right Alt
- Space in layer 1 was mapped to Return
- Plus was mapped with KP_PLUS
2023-02-07 20:29:38 -05:00
Martí Bolívar
9d1070a140
chore(build): update west.yml syntax
...
West has supported a 'name-blocklist' replacement for 'name-blacklist'
since v0.9.
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2023-02-01 11:36:55 -05:00
zhiayang
41830ce19a
fix formatting
2023-01-19 22:30:27 -05:00
zhiayang
fbdb24c6fe
fix(driver): Fix potentially buggy read/write routines for max7318 driver
2023-01-19 22:30:27 -05:00
Peter Johanson
a82a0ec496
feat(shields): Add splitkb.com Aurora Lily58.
2023-01-06 20:10:53 -06:00