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

Proximity API #462

Merged
merged 9 commits into from
Apr 17, 2023
Merged

Proximity API #462

merged 9 commits into from
Apr 17, 2023

Conversation

alexandruCarp
Copy link
Contributor

Pull Request Overview

This pull request adds:

  • a Proximity API which provides a function that simulates a synchronous proximity reading, functions to only read a value between some thresholds (sync and async), and also functions to initiate a reading, register/ unregister a listener and check for driver existence.
  • an example app which samples the proximity sensor every 2 seconds and prints the measured value.
  • a fake proximity driver, for testing purposes.
  • unit tests for the fake driver and for the user space library

Testing Strategy

This pull request was tested with the unit tests.

TODO or Help Wanted

Feedback is much appreciated.

Documentation Updated

  • no updates are required.

examples/proximity.rs Outdated Show resolved Hide resolved
@jrvanwhy jrvanwhy added the upkeep Indicates a PR is upkeep as defined by the code review policy. label Apr 17, 2023
@jrvanwhy
Copy link
Collaborator

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 17, 2023

Build succeeded:

@bors bors bot merged commit 34127ed into tock:master Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upkeep Indicates a PR is upkeep as defined by the code review policy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants