A question for those with more experience.
I am implementing a single push button circuit that will select an output (and light a LED). It will toggle between 4 possible choices. It is an active low. I tried to use something like “1110” and shifting with rol. I also tried a straight up if/then counter setup. My question is what would you use? Any suggestions for something better (more elegant, less logic)?
I am implementing a single push button circuit that will select an output (and light a LED). It will toggle between 4 possible choices. It is an active low. I tried to use something like “1110” and shifting with rol. I also tried a straight up if/then counter setup. My question is what would you use? Any suggestions for something better (more elegant, less logic)?