We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dae0c6a commit 59b03f1Copy full SHA for 59b03f1
cores/arduino/Tone.cpp
@@ -49,6 +49,10 @@
49
#define USE_TIMERB2 // interferes with PWM on pin 11
50
#define USE_TIMERB0 // interferes with PWM on pin 6
51
*/
52
+#if !defined(USE_TIMERB1) && !defined(USE_TIMERB2) && !defined(USE_TIMERB0)
53
+ # error "No timers allowed for tone()"
54
+ /* Please uncomment a timer above and rebuild */
55
+#endif
56
57
// Can't use TIMERB3 -- used for application time tracking
58
// Using TIMERA0 NOT RECOMMENDED -- all other timers use its clock!
0 commit comments