Commit graph

31 commits

Author SHA1 Message Date
Pete Johanson
7bc0a9957d Rename ZC_NOOP to ZC_NO. 2020-05-29 11:20:05 -04:00
Pete Johanson
dbd4cc66c0 Refactor where ZMK KConfigs come from. 2020-05-29 00:15:57 -04:00
Pete Johanson
6e1e21c2be Add missing returns for the new modifiers functions. 2020-05-27 23:14:09 -04:00
Pete Johanson
9a09eb14af Initial composite kscan driver.
* For now, to be used for FrankenKyria, where both
  matrix halves will be attached to the same MCU, but
  should be a stepping stone to proper split support
  once we have a kscan driver over a split transport.
* Implement multiple instances for mock kscan driver.
2020-05-27 00:53:31 -04:00
Pete Johanson
abd106032d Remove unnecessary printk. 2020-05-26 21:09:35 -04:00
Pete Johanson
76a433fc39 Clean up and implement MT release w/o mod press. 2020-05-24 23:13:33 -04:00
Pete Johanson
53aadc4f93 Initial exploration of mod tap action. 2020-05-24 19:25:46 -04:00
Pete Johanson
ed5532bf94 Add a mock kscan driver, working native_posix.
* Unified logging to one module.
* Mock kscan driver that simulates events.
* Working native_posix board target for testing.
2020-05-24 18:22:16 -04:00
Pete Johanson
9d5de4e922 Fixes for keymap key selection logic. 2020-05-22 22:46:21 -04:00
Pete Johanson
02584a4549 Minor prep for settings loading, once working. 2020-05-20 23:36:27 -04:00
Pete Johanson
0db57b0c12 Fix for return value from HID mod functions. 2020-05-20 15:51:44 -04:00
Pete Johanson
585e062e87 Initial basic modifiers support. 2020-05-18 23:34:36 -04:00
Pete Johanson
d9ca07a914 Move BLE passkey entry behind config flag. 2020-05-18 15:07:37 -04:00
Pete Johanson
f478438f01 Implement raise/lower for default keymap.
* Properly allow includes for keymaps to allow defining
  custom keycodes, and then adding them to the
  keymap.overlay file.
* Fix keymap.c loading after build refactor.
* Fix for deactivating a layer working properly.
* Fix default keymap to put transparent in proper spots to
  make raise/lower keycodes work as expected.
* Add custom raise/lower keycode handling to default
  keymap.
2020-05-18 13:42:41 -04:00
Pete Johanson
c1905745b3 Refactor build/config/keymaps.
* Move all headers to `include/zmk` directory.
* Update includes to reference them properly.
* Add `keymap.c` file from keymap, if found.
* Toplevel CONFIG_ZMK_BLE aggregate config setting.
2020-05-18 09:11:46 -04:00
Pete Johanson
b3babe2505 Initial passkey entry support. 2020-05-16 23:26:26 -04:00
Pete Johanson
b135eb65f5 BLE Security/Pairing fixes for "Just Works" SC. 2020-05-15 11:39:16 -04:00
Pete Johanson
73bea6218e Some initial BEL HoG support. 2020-05-15 09:41:06 -04:00
Pete Johanson
04fe57d3a3 Some refactoring to prep for BLE support. 2020-05-12 14:15:33 -04:00
Pete Johanson
be53560b77 Full NKRO support, fixes for keymap key selection. 2020-05-12 13:22:07 -04:00
Pete Johanson
02bffb009f Pass pointer to event to user handler.
* Allow user functions to modify/update the event if they
  need to.
2020-05-11 14:42:59 -04:00
Pete Johanson
60feb8fb09 Expanded handler implementation, more key defines. 2020-05-10 17:13:24 -04:00
Pete Johanson
70bf1230fa Tweak to use a chosen node for kscan device. 2020-05-06 10:04:19 -04:00
Pete Johanson
a63a773983 Get *basic* USB report sending working. 2020-05-05 16:09:05 -04:00
Pete Johanson
fe961d54a3 Start to get layers + keymaps pulled in from DTS. 2020-05-03 15:49:33 -04:00
Pete Johanson
7b4394b3e7 Basic keymap mapping. 2020-05-01 23:37:37 -04:00
Pete Johanson
523e7f702f Message queue and work item for process scan events.
* Prep for using ISR for kscan GPIO, by moving event
  process into a work item.
2020-05-01 23:10:11 -04:00
Pete Johanson
4e672eafd4 Refactor for better organization 2020-05-01 19:14:18 -04:00
Pete Johanson
52bfc9dd84 Lots of clean up, basic kscan working, remove zephyr-rust. 2020-05-01 14:58:00 -04:00
Pete Johanson
5b4e43cebd Random progress on board + kscan ideas. 2020-04-25 22:41:20 -04:00
Pete Johanson
85c8be89de Initial work. 2020-04-21 16:20:34 -04:00