
Introduction
The following article is about my first Arduino library that I have written. NonBlockingRTTTL is a non-blocking arduino library for playing RTTTL data.
EDIT: The NonBlockingRtttl arduino library is now moved to GitHub. Source code can be downloaded from the project’s GitHub page.
EDIT: NonBlockingRTTTL library is now available on the Arduino Library Manager.
Skip to the download section for quick download.
Purpose
Most code that can be found on the internet that allows you to “play” an RTTTL string is build the same way: sequential calls to the tone() function followed by a delay() function. This type of implementation might be good for robots but not for realtime application or projects that needs to monitor pins while the song is playing.