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

Buzzer API #470

Merged
merged 11 commits into from
May 17, 2023
Merged

Buzzer API #470

merged 11 commits into from
May 17, 2023

Conversation

SheepSeb
Copy link
Contributor

@SheepSeb SheepSeb commented May 8, 2023

Pull Request Overview

This pull request continues the work done by @teodorobert

This pull request adds:

  • a buzzer API, similar to the libtock-c version. The API provides a function that simulates a synchronous tone setting and also functions to register/unregister a listener, check for driver existence
  • an example app which plays Ode of Joy
  • a fake buzzer 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

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 c48f816 into tock:master May 17, 2023
4 checks passed
@SheepSeb SheepSeb deleted the sebnae/buzzer 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