As opposed to conditional flag-centric code, a state machine diagram presents a very clear view of the design, and so provides a good example to students. As opposed to conditional flag-centric code, ...
Until you have sat down and written a long, involved firmware solution, you probably haven't come to the point of exclaiming: “There has to be a better way!” Using state machines in your code may ...