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

Add QDEC module #188

Merged
merged 10 commits into from
Aug 12, 2020
Merged

Add QDEC module #188

merged 10 commits into from
Aug 12, 2020

Conversation

kalkyl
Copy link
Contributor

@kalkyl kalkyl commented Jul 29, 2020

Added a HAL module for the quadrature decoder peripheral.
Tested on NRF52840-DK with a Bourns PEC11R-4215F-S0024 rotary encoder

Demo of usage with rotary encoder triggering interrupt (nRF52840):
https://github.com/kalkyl/nrf-hal/blob/qdec/examples/qdec-demo/src/main.rs

Copy link
Contributor

@jonas-schievink jonas-schievink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

nrf-hal-common/src/qdec.rs Outdated Show resolved Hide resolved
nrf-hal-common/src/qdec.rs Outdated Show resolved Hide resolved
nrf-hal-common/src/qdec.rs Show resolved Hide resolved
@kalkyl
Copy link
Contributor Author

kalkyl commented Jul 30, 2020

Yes great, thanks for your comments @jonas-schievink !

@jonas-schievink jonas-schievink merged commit 7ac996f into nrf-rs:master Aug 12, 2020
@kalkyl kalkyl deleted the qdec branch September 4, 2020 13:39
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.

None yet

2 participants