Anything else than tone and noTone for Piezo Speaker?

One option is the [InternetButton library] (https://build.particle.io/libs/55e0a4256b6e3275580009ce/tab/1_Blink_An_LED.cpp) example #8 which shows how to play a song with a string containing note names and durations.

The relevant code is copied into this post, which is much easier to copy and paste from.

3 Likes