|
Re: Run something only once in a while loop?
I agree that you need to have the correct concept and trust your code to work.
I'd suggest that you build very simple programs, perhaps charting them. This will hopefully help with the teaching.
By the way, it is certainly allowed for code to retain values across runs. This is intentional so that it can better represent external hardware and other processes. This is the behavior of the uninitialized shift register and the feedback node with no initializer.
Greg McKaskle
|