I am using a 12F509 and want to switch between two led patterns using a push button to switch between each pattern. I have seen the code for the switch statement but do not know how to use it.
I want to toggle on and off an LED when I press a button, I want it to turn on when I press it and I want it to turn off when I press it again. It also has to repeat so I can do it over and over again ...