Playing with Arduino
A page to record my playing with Arduino
Tone.cpp

Tone.cpp

Tone.cpp
generates square wave with specified frequency.
manages the relation of pin and timer.
stops the output of square wave.
initializes the timer/counter set by tone().
interrupt handler which is called when the timer/counter2(TCNT2) becomes the same value of compare register(OCR2A).
inserted by FC2 system