I need to get my IR light modulated at 38KHz
i also modulate it with the PWM.
If you change TCCR0B, it affects millis() and delay(). They will count time faster or slower than normal if you change the TCCR0B settings. Below is the adjustment factor to maintain consistent behavior of these functions:
Just one thing: if i set the duty to 50% the period is 26us right (as Groove said)?
so i guess this means that if i use the previous library, which uses timer 1, i shouldn't have problems with it.