here is what I plan to do... I want to include a switch that can stop the pwm just by pressing the switch once and letting it go. and then start it when I press it again and let it go. this is why the code does not work because the flags are not refreshed.
But I need to do the same with another switch.. which only needs to be pressed to stop the pwm. so two switch is what I need really.
one that only needs to be pressed once to stop the pwm.... and the other to be pressed whenever you want it to stop and go type of thing. (one pressed stop the pwm.. the other press continue where it left off )
srigopal
Bookmarks