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, ...
Your new design has some push button switches that interface to a microcontroller. The microcontroller is registering multiple button pushes when the button is only pushed once and you would like to ...