Hello, right now im trying to do an encoder as a project for my digital electronics class. I've done it in two different ways, by functions and by switch cases, and neither seem to work. I have to make it so every time a switch of states ocurr within...