Timers and scheduling

I need to implement many triggers (of events, flags, functions, etc) in an app that runs continuously through the day. What could be the best course of action for something like this? And also to trigger events on certain hours?

Currently I have an ugly thing with millis counters and a long switch/case but is a mess and gets more complex when I need to run everything in different timeframes and durations.

I know about ofTimer and other addons but I would really appreciate any example with a few events to have a better grasp of this operating with many different triggers. Any hint or example?

Thanks a lot for any help!

I like using this add-on

1 Like