I need variable frequency output - 0-5000Hz with some duty cycle. I do not want to change timers, because I am using delays, serial and CAN, so I do not want them to be affected by changed timers. I need this for VDO speedometer, which is driven by variable frequency.
Is it possible to set variable time interrupts and change them accordingly to what frequency I want?
tone()...tone()would be the easiest. It also uses a Timer.