Precise environment is µs.
Main code doing math and "talking" with python app to send variables.
I know that delay() is not allowed in an ISR. I meant somehow preloading TCNT1 and OCR1A registers or some other way, make pulse with compare a and then run after that pwm "routine"? Just cant think of logic how to do that