2. Basic operation manual

5. Loop

18 views 2019-06-04 2019-06-04 peterletintech 0

A loop (or endless loop) is a sequence of instructions in a computer program which loops endlessly, either due to the loop having no terminating condition, having one that can never be met, or one that causes the loop to start over. In older operating systems with cooperative multitasking, infinite loops normally caused the entire system to become unresponsive. With the now-prevalent preemptive multitasking model, infinite loops usually cause the program to consume all available processor time, but can usually be terminated by the user. Busy wait loops are also sometimes called “infinite loops”. Infinite loops are one possible cause for a computer “freezing”; others include thrashing, deadlock, and access violations.

 

In M5Go, here is the basic loop function.

There is some looping example.

Example 1 “321” Counter

This logic contains two parts: Loop and label displays. The loops will loop the whole logic endlessly. To show the 3, 2 and 1.

Example 2 Police light

 

This logic contains two parts: Loop and RGB Bar setting. The loops will loop the whole logic endlessly. To show the red and blue light endlessly.

 

Was this helpful?