I use the PWM library to send a 440Hz tone to Pin 9. That works fine. How do I reset all the registers back to its original state? I experience problems using Softwareserial after I stop creating the tone.
e.g. StopTimersSafe();
I use the PWM library to send a 440Hz tone to Pin 9. That works fine. How do I reset all the registers back to its original state? I experience problems using Softwareserial after I stop creating the tone.
e.g. StopTimersSafe();
You can try this:
TCCR2A = 0;
TCCR2B = 0;
If that helps, then the SoftwareSerial library has a bug.