Go Down

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


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.


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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131