Go Down

Topic: stuck on how to loop through two different routines without threading (Read 1 time) previous topic - next topic

chrishjones


I'm being lazy. :)  I didn't bother to make up a class names when instantiating 'em, this was just pseudocode for an example.


I'm not that familiar with classes, how would you go about doing it?

PeterH

Somebody recently advertised a library which lets you declare timers to invoke callbacks at intervals you specify. It doesn't do anything you can't code yourself just polling all your functions at whatever interval you want, but if you're struggling with that then this library might save you a lot of hassle. I'm too lazy to go searching back for the post describing it, but I'm sure you can find it yourself if you do a search.
I only provide help via the forum - please do not contact me for private consultancy.

Go Up