Code to Produce Sound from a Speaker

Even though speakers require a different circuit than buzzers, the code
to produce a sound is the same in either case. Therefore, the sketch from
the tone packet works for this circuit.