-
Notifications
You must be signed in to change notification settings - Fork 29
zephyrCommon: Add tone and noTone #100
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
Conversation
Ayush1325
commented
Jun 6, 2024
•
edited
Loading
edited
- Add implementation of tone and noTone
- Add sample. Taken from https://github.com/arduino/arduino-examples/blob/main/examples/02.Digital/toneMelody/toneMelody.ino
- Tested on bcf
bda0532
to
8f2a766
Compare
750d40a
to
8d0173d
Compare
Found a piezo buzzer and tested with bcf. Also fixed the case for frequency = 0. |
@DhruvaG2000 What should I do regarding copyright and license? |
5d66eb1
to
5b4d8c9
Compare
@DhruvaG2000 I think it might be best to remove the example from this PR. The upstream example can be used without any modification, so it is not particularly important to have it here, especially blocking this PR. |
- Add implementation of tone and noTone - Use another one-shot timer to stop the first timer. - Silence when frequency = 0 Signed-off-by: Ayush Singh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I Am ok with this.