Commit Graph

16 Commits

Author SHA1 Message Date
Nico a7edf4d66f Remove Compiler Warning in Tone.cpp 2015-09-28 16:30:39 +02:00
onovy c25e80e27c Tone: Added missing break 2015-08-15 21:11:52 +02:00
Martino Facchin 6cbf4db4b6 Merge branch 'jipp-master' 2015-04-14 10:13:58 +02:00
Jan d27eb7e1c1 Fix for issue #292
Replaced direct register manipulation with calls to bitWrite(). Fixed TIMSK5 usage on Leonardo (as well as some other preprocessor statements).
2015-04-13 20:36:28 +02:00
jipp 7e5b5bfcb5 Update Tone.cpp
Tone.cpp stops compile when TCCR0A/TCCR0B defined and WGM01 not defined #2923
2015-04-13 16:18:18 +02:00
Jan 331f5c832e Update Tone.cpp
Rebased the bugfix from the original Google Code issue #292 to work with Arduino 1.6.x

Description of original fix provided by Pete62:
The later 8 bit AVR's use two registers (TCCRxA, TCCRxB) whereas the ATmega8 only uses a single register (TCCR2) to house the control bits for Timer 2.  Bits were inadvertently being cleared.
2015-04-11 00:15:58 +02:00
Federico Fissore c453e0a32e fixed permissions on a lot of text files. see #1116 2012-12-10 10:42:49 +01:00
Cristian Maglie 037020e938 Merged latest changes in AVR arduino core 2012-10-18 18:47:50 +02:00
David A. Mellis 218eb5e807 Moving wiring.h contents into Arduino.h. 2011-03-01 20:00:16 -05:00
David A. Mellis e46c6f46af Fixing bug w/ subsequent calls to tone().
http://code.google.com/p/arduino/issues/detail?id=397
2010-11-11 23:57:12 -05:00
David A. Mellis cba4789840 Modifying Tone.cpp to use register-based (not CPU-based) #ifdefs. 2010-11-08 23:09:29 -05:00
David A. Mellis 152a913571 Changing #include <> to #include "" in Tone.cpp. 2010-10-09 17:08:19 -04:00
David A. Mellis f9a3b5cfa9 1280 -> 1280/2560. 2010-09-08 22:33:33 +00:00
David A. Mellis a771267f69 Re-enabling timer 2 pwm after tone() ends.
Factored out common code to disable timers.
2010-06-12 19:47:41 +00:00
David A. Mellis 2be9101d34 Limiting tone generation to timer 2 only to prevent conflicts with the Servo library. 2010-01-09 17:02:27 +00:00
David A. Mellis c75b10af73 Adding tone() and noTone() functions, using Brett Hagman's Tone library. 2009-12-29 20:57:07 +00:00