
MT-DB-U2
Manual
If timer 0 is used, delay() should not be called while timer 0 is generating a tone.
Instead, use _delay_ms(), which is included with avrlibc. If sending data to the
USB host (ie: using Serial.print()) before or during timer 0 tone generation, then
it must be manually flushed with Serial.flush() prior to calling tone() and after
any subsequent printing during tone generation. Otherwise, some data may not be
sent until the tone stops and autoflushing returns to normal operation. The USB
LED handling (if enabled) will also be disrupted during timer 0 tone generation.
During this time, the LED will not be able to change state. If USB traffic occurs,
the blink will be delayed until tone generation stops.
The DTMF_Demo sketch demonstrates usage of Tone.cpp for DTMF generation
on the MTDBU4
October 29, 2015
17