PulseOut - which is non-blocking?

is there a library to perform a pulse-out that does not block the code?

Not that I know of.

It might be able to be done with timers but you would still need to be looking at the timeout most of the time which is very blocking behavior anyway.

I would use a port expander as added hardware that could capture what pin an interrupt was triggered on.

What kind of pulse durations do you need? If it’s in the 10s of ms or slower, you could do it any of the “blink without delay” methods (what is blink, other than a pulse?)
If you’re not using PWM you could probably get timer1 and timer2 to do it on at least one of the associated “PWM” pins…

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.