Trying to make a code so that when i click button A, pin 0 to 1, then i click A again and pin 0 goes to 3.
Here is my code:

Answer:
Remove the on start because that is interupting the on button a pressed then you should be good to go.
Explanation: