New State machine tutorial

Hello Jacques,

Just finished part 2, vending machine & traffic light. I am getting a good handle on state machines. This is

something I have meaning to spend some time learning. Thank you.

I was thinking the led should represent the switch state ie. be on when the switch is closed and off when the switch is open. or visa versa depending on pullups.

The way it is now each time the switch state enters IS_FALLING it is toggled. So for the same state it is on then the next time it enters it is off.

Is that what you intended ?