kail123
Newbie level 4
- Joined
- Jan 23, 2013
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,331
Guys , i really need urgent help regarding push buttons .
i connected one button to RA0 and Led to PWM1 and i tried to increase the brightness and decrease it by one button , the problem is i can not keep the status of the led and the button , if increase it to 64 and released the button,, the led will go back again to previous status and will be OFF . i want every time i press the button to increase the duty to 25 percent and if i released the button i should have the last calculation . my issue how to use one button to control that .??
i connected one button to RA0 and Led to PWM1 and i tried to increase the brightness and decrease it by one button , the problem is i can not keep the status of the led and the button , if increase it to 64 and released the button,, the led will go back again to previous status and will be OFF . i want every time i press the button to increase the duty to 25 percent and if i released the button i should have the last calculation . my issue how to use one button to control that .??