Quote Originally Posted by savnik View Post
I test now and it's work (thanks to skimask) , but when i press the 0 turn off both leds.
I want if i press one time the 1 to turn the led1 on and if i press again the 1 to turn off the led1.The same for the led2
Have you tried the toggle command?