Pages: [1]   Go Down
Author Topic: tone() works for me in 0018, not 0019-0021  (Read 586 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 76
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Oxford (England)
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Pages: [1]   Go Up
Jump to: