A State Machine is a mental tool to help you organize your code. The best part is that you can do most of the real work by drawing a diagram, so you're free to get creative and visual without worrying about syntax. Once the diagram is done, there is a straightforward "Plug and Chug" procedure to turn that picture into working code.
In this video, I show how State Machines can be used to make code with a map. The result is easy to debug, organize, modify, and communicate to others.
Table of Contents: 0:00 - Intro 2:40 - Switch Bouncing 5:45 - Draw a State Machine 14:30 - Code a State Machine 28:00 - Use your Power for Good