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

Sound Pressure API #469

Merged
merged 20 commits into from
May 17, 2023
Merged

Sound Pressure API #469

merged 20 commits into from
May 17, 2023

Conversation

SheepSeb
Copy link
Contributor

@SheepSeb SheepSeb commented May 8, 2023

Pull Request Overview

This pull request adds:

  • a sound pressure API , similar to the libtock-c version. The API provides a function that simulates a synchronous sound pressusre reading and also functions to initiate a reading, register/unregister a listener, check for driver existence, enable/disable the sound pressure measurement
  • an example app which samples the sound pressure sensor every 1 second and prints the measured sound pressure
  • a fake sound pressure driver, for testing
  • unit tests for the fake driver and for the user space library

Testing Strategy

This PR was tested with the unit tests and by running the example app on a microbit v2 board

Documentation Updated

no updates are required

Cargo.toml Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@jrvanwhy jrvanwhy left a comment

Choose a reason for hiding this comment

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

bors r+

@bors
Copy link
Contributor

bors bot commented May 17, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit db3560a into tock:master May 17, 2023
3 checks passed
@SheepSeb SheepSeb deleted the sebnae/sound_pressure_add branch June 21, 2023 18:54
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