-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
New tone functions #561
New tone functions #561
Conversation
Memory usage change @ 367c852
Click for full report table
Click for full report CSV
|
something wrong with spell checker |
I apologize for any confusion. The spell check failure was caused by an external change and has nothing to do with the changes you propose in this pull request. You can disregard that workflow run failure. It won't affect the project maintainer's decision about whether to merge your pull request. I have now fixed the unrelated problem that caused the spell check failure: #562 |
tone (void *f(void))
- changes pointer of tone ending function (by default swiches off timer) to user's function which can swich notes automatically (no need to write { tone, delay, tone, delay, ...} in user's code and block main execution flow)autoTone(pin, pointer)
- reads data for tone(pin, freq, dur) function from pointer. There is array of data. Notes and durations are mixed, and in the end fololows command - note in nonaudible range (note, duration, note, duration, ..., command).There are two commands:
-1) stop playing
-2) play again
noTone(pin) - swiches pointer back