<?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>Detecting button sequences</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5918/detecting-button-sequences</link><description>Hi, 
 nRF51822. I&amp;#39;d like to detect single-click, double-click, triple-click, etc. button press sequences. Multiple clicks are when the next button press is within 1/2second of the previous one. 
 So, if the button is pressed and released and not pressed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 May 2019 21:32:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5918/detecting-button-sequences" /><item><title>RE: Detecting button sequences</title><link>https://devzone.nordicsemi.com/thread/190117?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 21:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02ae5819-51d4-4db4-8cf9-4c39ddbb412f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;STM8 is not a Nordic product!&lt;/p&gt;
&lt;p&gt;You need to go to the &lt;strong&gt;ST&lt;/strong&gt; forums for support with that!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting button sequences</title><link>https://devzone.nordicsemi.com/thread/190105?ContentTypeID=1</link><pubDate>Thu, 30 May 2019 20:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af231e21-52c8-4534-9cf2-24b839536d60</guid><dc:creator>Hnzn</dc:creator><description>&lt;p&gt;Hi, can you please assist me, am trying to implement the same code using the Stm8, to detect single, and double press.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting button sequences</title><link>https://devzone.nordicsemi.com/thread/20629?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 03:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b579ae-1d39-4bc3-adc3-d344991a0a88</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;@Chris: Could you please explain, how did you implement this? Please.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting button sequences</title><link>https://devzone.nordicsemi.com/thread/20627?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2015 09:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c89428a-4a6f-4be6-a211-b33ff7f4bb4e</guid><dc:creator>HSA</dc:creator><description>&lt;p&gt;@Locky / @Asbjørn : Please share the sample code for this (implementation). Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting button sequences</title><link>https://devzone.nordicsemi.com/thread/20628?ContentTypeID=1</link><pubDate>Fri, 13 Mar 2015 06:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bfa5625-c4d3-4d05-bb2a-f642274527dd</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Yes, I ended up using an app_timer just as Locky described.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting button sequences</title><link>https://devzone.nordicsemi.com/thread/20626?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2015 15:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ccf42ec-5538-445f-b73d-f706e7fba0b7</guid><dc:creator>Asbj&amp;#248;rn</dc:creator><description>&lt;p&gt;Agree with Locky here. That&amp;#39;s a good way to do it. @Chris, have you been able to try this method?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Detecting button sequences</title><link>https://devzone.nordicsemi.com/thread/20625?ContentTypeID=1</link><pubDate>Sat, 07 Mar 2015 00:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e005c2fb-28b7-4d52-89fc-b5713de50962</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;You best bet is the have an app_timer (SINGLE_SHOT) which starts on the first push and times out at 0.5sec,  if the next push is detected before 0.5sec expires you increment a push counter and refresh the 0.5sec timer.  Once the 0.5sec timer expires you handle based on how many total pushes were detected in your push counter variable&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>