I just need to play a single tone with this little speaker for two seconds, but the only example of how to program for it is the "melody" example which does much more than I need.
I don't know how to separate out code from that example for a single note
I only want to play a single tone. What is the grammar format for a single tone?
pin: the pin on which to generate the tone
frequency: the frequency of the tone in hertz - unsigned int
duration: the duration of the tone in milliseconds (optional) - unsigned long