tone() was using tonePin global instead of pin local