What I want is two LED lights and a push button. When the push button is pressed the first time, the first light lights up. When it's pressed a second time, the second light lights up. When it's pressed a third time, both lights turn off.
I set up two D flip flops. The first Q output connects to the second's D input. The push button is hooked to the Clock on both flip flops, the push button which is hooked to a power source. After going through my logic with K-maps, I determined the following:
D1 = Q0'Q1 D0 = Q0'
Q0 is the first flip flop and Q1 is the second flip flops.
So I set up the gates as necessary.
Here is where the problem is. The lights have a strange behavior. Sometimes one turns on, sometimes both turns on. I'm obviously doing something wrong.