Arduino_Buzzer_Millis question

See that code someone wrote that sets the buxxerPin LOW every interval_1?

Why couldn’t it just as well time out your function calls? Add a count so it only tests the time and pings a certain number of times.

But to really answer we’d need to see how those calls are to be shared in time with the other tasks you wish to simultaneously accomplish.

If there are none, there is no shame in just using delay.

a7

1 Like