Go Down

Topic: tone() works for me in 0018, not 0019-0021 (Read 633 times) previous topic - next topic

mattgilbertnet

Anyone else have this problem? The toneMelody example (for example) only seems to make the default PWM pitch, and an octave up, so the melody is unrecognizable. The example works fine in 0018.

I'm on a mac (10.4), and I've tried a couple of Freeduinos and an RBBB, all with the 328 chip.

condemned

Yup - it's a known bug.
There's a simple work-around for the moment;

Simply call noTone( pin ) just before calling tone( pin ).

Go Up