Cast For Loop Iteration to Enum for Labeled, Ordered State Machine

Use an enum with case structure and a for loop to make an iterative state machine. This is nice because you can pass values from one state to the next with shift registers.
Comments