Someone please help me. Heres an example.
Picaxe 18a. Ok Pin 1 is the TURN ON trigger (A N/O Switch going to ground when closed).
Pin 2 is the TURN OFF trigger (Also a different N/O Switch going to ground when closed).
Pin 3 is my output with my led which is a loop so it flashes.
OK. So when pin 1 is pushed once it grounds the pin turning led on, (Flashing, lets say every second).
Now comes the PROBLEM. When I push pin 2 once it SHOULD goto ground till i let go of switch AND STOP THE LED FROM FLASHING. But it doesn't very reliably do this. It seems as if you have time it right just before the led starts to turn on again from it's last flash. It's so frustrating. Why does it do that????
No point posting my code on hear as it's ridiculous and will confuse you even more as I have no idea what on earth I am doing. Please help, I am terrible at the Programming side of Picaxes.
Picaxe 18a. Ok Pin 1 is the TURN ON trigger (A N/O Switch going to ground when closed).
Pin 2 is the TURN OFF trigger (Also a different N/O Switch going to ground when closed).
Pin 3 is my output with my led which is a loop so it flashes.
OK. So when pin 1 is pushed once it grounds the pin turning led on, (Flashing, lets say every second).
Now comes the PROBLEM. When I push pin 2 once it SHOULD goto ground till i let go of switch AND STOP THE LED FROM FLASHING. But it doesn't very reliably do this. It seems as if you have time it right just before the led starts to turn on again from it's last flash. It's so frustrating. Why does it do that????
No point posting my code on hear as it's ridiculous and will confuse you even more as I have no idea what on earth I am doing. Please help, I am terrible at the Programming side of Picaxes.