-
Notifications
You must be signed in to change notification settings - Fork 444
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
Non-Blocking Code #33
Comments
Perhaps adding the code files here can assist in a visual tour.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Amazing work! Kudos!
I made some changes to your code to make it non-blocking: instead of delay statements for each note and program logic waiting for the song to end, my changes allow for program execution while the tunes are being played.
Also I added a flag that can stop tune playback before it ends (for example if program logic requires it).
I also added the option to have up to 10 tunes selectable either by user input or by program logic.
Thanks!
Note: I don't know how to upload programs into a reported issue other than presenting the full code using markup language, so I renamed the NonBlockingTunes.INO and the tunes.h files to .TXT so that they could be copied here.
NonBlockingTunes.txt
tunes.txt
The text was updated successfully, but these errors were encountered: