Re: Loop issues
there are three ways to design a program for a single core chip
1 cooperative task sharing
2 state machine
3 spaghetti
two are predictable , reliable and easy to debug. both will unravel yards of spaghetti every time
a ticker is a very useful tool for any process that needs time supervision
put it all together and the world is your oyster
if you have a goto in your code as a logical flow control device you are well on the way to spaghetti
goto is the first warning sign
Last edited by richard; - 30th September 2021 at 01:06.
Warning I'm not a teacher
Bookmarks