<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>how to make button as On and OFF Switch</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15376/how-to-make-button-as-on-and-off-switch</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 25 Aug 2016 10:52:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15376/how-to-make-button-as-on-and-off-switch" /><item><title>RE: how to make button as On and OFF Switch</title><link>https://devzone.nordicsemi.com/thread/58735?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2016 10:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ac3b2f4-a409-411b-80fc-405c925bfed1</guid><dc:creator>flip-flop</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;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) -&amp;gt; start_timer, else-&amp;gt; stop_timer.&lt;/p&gt;
&lt;p&gt;Also note that you have to take care off debouncing the button.&lt;/p&gt;
&lt;p&gt;Ask if more info needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to make button as On and OFF Switch</title><link>https://devzone.nordicsemi.com/thread/58734?ContentTypeID=1</link><pubDate>Wed, 27 Jul 2016 14:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86398e72-c6ea-42ab-a5c4-4ba96407b4bb</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Duplicate: &lt;a href="https://devzone.nordicsemi.com/question/88541/how-to-increment-a-countie-count-should-be-keep-on-incrementing-untill-button-is-released/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>