It's possible to just remove the delay() functions and call on the PWM timer to output whatever duty-cycle and period you require, whenever you need it. The PWM timer will output the new waveform at the beginning of the next cycle.
It's possible to just remove the delay() functions and call on the PWM timer to output whatever duty-cycle and period you require, whenever you need it. The PWM timer will output the new waveform at the beginning of the next cycle.