innovaker
1c8321566a
fix(drivers): rename module.yaml to module.yml
...
module.yaml is not a valid module filename.
See Zephyr `scripts/zephyr_module.py`
4 years ago
Nick
8779563896
fix(bvd): Add SENSOR_CHAN_ALL support
4 years ago
Jay Greco
8a98212a02
Update demux kscan driver as per PR feedback
...
- Remove kscan_gpio_irq_callback
- Remove kscan_gpio_irq_callback_handler
- Remove irq_callbacks
+ Add TODO noting timer and sleep state interactions
4 years ago
Jay Greco
1522c91d73
Add new kscan_gpio_demux driver
...
+ zmk,kscan_gpio_demux is now a compatible kscan option
+ kscan_gpio_demux is based heavily off of the implementation of
kscan_gpio_matrix, modified to address cols using an n-to-1
demultiplexer chip instead of discrete IO
+ Added zmk,kscan_gpio_demux.yaml file
* modified CMakeLists to include new source files
4 years ago
Nick
a008731103
Implement Kconfig and enhance error checks
4 years ago
Nick
63007fb6c1
fix: clang-format
4 years ago
Nick
adb07926b1
Remove newlib dep
4 years ago
Nick
a67a8cd3b8
Check if fetch channel is supported
4 years ago
Nick
6047415b1c
Fix build for boards without voltage divider
4 years ago
Nick
162c6b77db
clang-format and add missing defconfig values
4 years ago
Nick
3082455aec
Refactor driver to use Sensor API
4 years ago
Nuxiom
1c0c02e097
Reformatted according to clang-format lint
4 years ago
Nuxiom
78cb6c8b21
Fix kscan_gpio_irq_callback_handler_##n conditional macro
4 years ago
Pete Johanson
a7496ab064
feat(power): Initial deep sleep work.
...
* New ZMK_SLEEP Kconfig symbol to enable the functionality.
* Switch to PORT events that allows wake from deep sleep.
* Initial basic power management policy, with idle ms,
and ignoring deep sleep if we detect a USB connection.
4 years ago
Pete Johanson
9be566603e
feat(kscan): Use PORT events for kscan matrix interrupts
...
* Lower power usage compared to regular interrupts on nrf52.
4 years ago
Joel Spadin
4121b07f7f
fix(kscan): fix direct GPIO when using interrupts
...
Fixed initializing interrupts for direct GPIO when
CONFIG_ZMK_KSCAN_DIRECT_POLLING is not enabled. IS_ENABLED() is needed to map
the possibly-undefined value to 0 or 1 so COND_CODE_0() and COND_CODE_1() work.
4 years ago
Joel Spadin
f6f8abe055
fix(ec11): allow more than one encoder
...
Fixes "device.h:101:11: error: redefinition of '__device_ec11'" in firmware that
has more than one encoder.
4 years ago
Pete Johanson
028dfae92e
chore: Fix remaining formatting issues.
4 years ago
Pete Johanson
e993378b2a
chore: Fix some accidental formatting issues.
4 years ago
Jason Chestnut
c2a861c0e6
Modify preprocessor directives to use basic #if !defined() rather than Zephyr macros where appropriate.
4 years ago
jason
9392c4f9ff
Fix preprocessor flag issues for pull request.
4 years ago
Jason Chestnut
cca8337f05
Add support to GPIO matrix driver for matrix polling, rather than interrupt-based IO.
...
- Add ZMK_KSCAN_MATRIX_POLLING config flag to Kconfig
- Update matrix driver code to use the above flag to conditionally add the handling code for polling operations.
4 years ago
Jason Chestnut
b1dce208f8
Add matrix polling logic to matrix GPIO driver.
4 years ago
Jason Chestnut
9668305621
Restore original matrix driver to correct implementation errors.
4 years ago
Jason Chestnut
5c4705d465
Add new matrix scan flag and implementation in the gpio matrix driver.
4 years ago
Jason Chestnut
53425aa3c4
Rename kscan direct wired driver polling kscan flag in preparationfor addition of new matrix driver flag that enables polling.
4 years ago
Jason Chestnut
31af9646e6
Adding kconfig flag for enabling matrix polling (vs interrupts) on the matrix gpio driver.
4 years ago
Nick
f5909f9c26
fix(clang-format)
4 years ago
Nick
844f2c7674
Voltage divider driver initial implementation
4 years ago
Pete Johanson
191a2d755a
chore: clang-format the codebase.
...
* Use the LLVM style
* Override indent width (8) and column limit (100)
* Fixes #142 .
4 years ago
Pete Johanson
68e72f9275
fix: Switch to single AUTHORS file.* Closes #164
4 years ago
Pete Johanson
01db53b46a
fix(kscan): Avoid sending duplicate kscan events.
4 years ago
Pete Johanson
4402e4fbc7
feeature(bt): Add "unpair combo" on startup.
...
* Especially for splits, we need the ability to
unpair all paired devices as sledgehammer
if we need to "reset things", and doing so via
keymaps isn't suitable.
* Allows shields to define a collection of key
positions that if all held 2 seconds after
startup, will unpair all existing pairs for the
device.
4 years ago
Pete Johanson
78059bbbdb
Fix up some incorrect license headers.
4 years ago
Pete Johanson
fd3ce4ba1c
Encoder Kconfig fixes.
4 years ago
Pete Johanson
ac802bedb1
Bump delay in scanning while held to 5ms.
4 years ago
Pete Johanson
25d0664b58
Tweaks for EC11 config.
4 years ago
Pete Johanson
adfa1b5443
Initial work on sensor bindings.
4 years ago
Pete Johanson
f3267e6030
Tweaks for orientation and A/B pins for Kyria left
4 years ago
Pete Johanson
c619d36294
Support multiple instances of the encoder.
4 years ago
Pete Johanson
ac9ba3ae7d
Code cleanup for non-trigger mode.
4 years ago
Pete Johanson
aa7c74fe07
Filename fix for EN11 -> EC11.
4 years ago
Pete Johanson
7da9a1039f
Working encoder detection.
4 years ago
Pete Johanson
b6b982fcef
Code clean up
4 years ago
Pete Johanson
c058757252
Fetch/get implementation work.
4 years ago
Pete Johanson
109c69cbab
EN11 is actually EC11, some sample work.
4 years ago
Pete Johanson
331bfa7052
Interrupt fixes.
4 years ago
Pete Johanson
893b99d907
Initial en11 exploration.
4 years ago
Pete Johanson
e448f2d32b
kscan: matrix: Remove verbose logging in read.
5 years ago
Pete Johanson
497049ff68
Detect additional key presses on the same output.
...
* Interrupts won't follow on additional keys
pressed on an already "held" output pin,
so queue additional reads while any keys are held.
5 years ago