hi all,
I am using SDK version 8. i want to make button as ON and off switch.
REQUIREMENT:
When button is pressed counter should keep on incrementing when i released the button it should display the count.
Thanks in advance
hi all,
I am using SDK version 8. i want to make button as ON and off switch.
REQUIREMENT:
When button is pressed counter should keep on incrementing when i released the button it should display the count.
Thanks in advance
Hi,
that shoud be quite easy to implement. Connect input button to one of your interrupt pins and capture toggles. Within interrupt routine you can see what type of event occured interrupt. If HITOLO (high to low) -> start_timer, else-> stop_timer.
Also note that you have to take care off debouncing the button.
Ask if more info needed.