Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(kscan_gpio_direct) Add toggle-mode #1173

Closed
wants to merge 1 commit into from

Conversation

kurtis-lew
Copy link
Contributor

feat(kscan_gpio_direct) Add toggle switch driver

Addresses #980 by adding a boolean toggle-mode to the direct-wire kscan that automatically sets the required pull for the input pin to remove any quiescent current.

Without toggle-mode, pins draw about 244.3uA of current. When toggle-mode is enabled, ACTIVE_LOW pins had a current drain of 0.0uA while ACTIVE_HIGH pins were recorded with a quiescent current of 0.2uA.

@kurtis-lew
Copy link
Contributor Author

kurtis-lew commented Mar 18, 2022

3/19/2022, 15:01pm PST

  • Confirmed that the updates to the direct-wire kscan work properly with the composite kscan on actual hardware
  • Confirmed that layers are immediately activated when the toggle switch is in one of its fixed positions
  • Confirmed that modifiers are immediately activated when the toggle switch is in one of its fixed positions
  • Alphanumeric keycodes are immediately activated when the toggle switch is in one of its fixed positions

@kurtis-lew kurtis-lew force-pushed the toggleswitch_pr branch 3 times, most recently from c530d6d to 8bb9021 Compare March 19, 2022 23:30
@kurtis-lew kurtis-lew marked this pull request as ready for review March 21, 2022 19:38
@kurtis-lew
Copy link
Contributor Author

Inspired by #722: would be nice to get this PR out before determining where best to put the documentation for this feature. Development-wise, I'm not sure what other improvements can be made. I will test these changes after rebasing them on top of #1239 to see if the improvements in USB logging will allow alphanumeric keypresses to activate immediately.

@kurtis-lew
Copy link
Contributor Author

Closing PR in light of #1288 recently being merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant