adm34 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

tone command no longer plays frequencies accurately #361

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.upload ToneMelody example
2.Should play "Shave and a haircut"
3.Pitch is too low

Sounds like PWm frequency changed and screwed Tone up.  Pitches from 
"pitches.h" are no longert accurate. Tested this on an Uno and a Duemilanove in 
0020 and 0019

Original issue reported on code.google.com by tom.i...@gmail.com on 29 Sep 2010 at 12:39

GoogleCodeExporter commented 9 years ago
Adding a noTone() before changing frequencies seems to help. 

Original comment by tom.i...@gmail.com on 29 Sep 2010 at 12:54

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/c11098c237d89e7c96862555729ebc947cc976
b7

Original comment by dmel...@gmail.com on 12 Nov 2010 at 5:01

GoogleCodeExporter commented 9 years ago
Issue 410 has been merged into this issue.

Original comment by dmel...@gmail.com on 22 Nov 2010 at 3:15