<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[single-click, double-click, long-press button possible with MySensors?]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
has anyone yet implemented some kind of multi tap button with MySensors?<br />
Such as single-click, double-click, long-press, ... ?</p>
<p dir="auto">I think, I cannot work with interrupts, as I can get a HIGH/LOW once only and cannot count for long-press? Correct? And a battery mode node cannot be used either (with <code>smartSleep(digitalPinToInterrupt(DIGITAL_INPUT_SENSOR_2),...</code>) because I have to check for e.g. a long-press which might last some seconds ...</p>
<p dir="auto">Thanks in advance for any comment or code example?</p>
]]></description><link>https://forum.mysensors.org/topic/12216/single-click-double-click-long-press-button-possible-with-mysensors</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Apr 2026 00:14:48 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/12216.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Feb 2024 08:28:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to single-click, double-click, long-press button possible with MySensors? on Mon, 26 May 2025 16:12:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zenblizzard" aria-label="Profile: ZenBlizzard">@<bdi>ZenBlizzard</bdi></a> , yes thanks, thats the point. How to deal with smartSleep() and battery lifetime.</p>
]]></description><link>https://forum.mysensors.org/post/114332</link><guid isPermaLink="true">https://forum.mysensors.org/post/114332</guid><dc:creator><![CDATA[dirkc]]></dc:creator><pubDate>Mon, 26 May 2025 16:12:39 GMT</pubDate></item><item><title><![CDATA[Reply to single-click, double-click, long-press button possible with MySensors? on Mon, 26 May 2025 12:31:59 GMT]]></title><description><![CDATA[<p dir="auto">..<br />
<a href="https://forum.arduino.cc/t/partage-boutons-poussoirs/361656" rel="nofollow ugc">https://forum.arduino.cc/t/partage-boutons-poussoirs/361656</a></p>
<p dir="auto"><a href="https://forum.arduino.cc/t/tutoriel-la-bibliotheque-onebutton/1136825" rel="nofollow ugc">https://forum.arduino.cc/t/tutoriel-la-bibliotheque-onebutton/1136825</a></p>
]]></description><link>https://forum.mysensors.org/post/114331</link><guid isPermaLink="true">https://forum.mysensors.org/post/114331</guid><dc:creator><![CDATA[JeeLet]]></dc:creator><pubDate>Mon, 26 May 2025 12:31:59 GMT</pubDate></item><item><title><![CDATA[Reply to single-click, double-click, long-press button possible with MySensors? on Sun, 25 May 2025 12:07:37 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it's definitely possible to detect single click, double click, and long press with MySensors. You can use interrupts on both rising and falling edges and track the time with millis() to determine how long the button is held.<br />
For example:<br />
Short press = single click<br />
Two quick presses = double click<br />
Hold longer than a threshold = long press<br />
Just make sure to debounce the button to avoid false triggers. If your node is battery-powered and using smartSleep(), handling long presses can be trickier—might be better to stay awake during the press in that case.</p>
]]></description><link>https://forum.mysensors.org/post/114330</link><guid isPermaLink="true">https://forum.mysensors.org/post/114330</guid><dc:creator><![CDATA[ZenBlizzard]]></dc:creator><pubDate>Sun, 25 May 2025 12:07:37 GMT</pubDate></item><item><title><![CDATA[Reply to single-click, double-click, long-press button possible with MySensors? on Sun, 04 Feb 2024 11:18:30 GMT]]></title><description><![CDATA[<p dir="auto">hey <a class="plugin-mentions-user plugin-mentions-a" href="/user/dirkc" aria-label="Profile: dirkc">@<bdi>dirkc</bdi></a>, maybe you can trigger your interrupt to rising and falling edge and use millis() to see how long the press was?</p>
]]></description><link>https://forum.mysensors.org/post/114003</link><guid isPermaLink="true">https://forum.mysensors.org/post/114003</guid><dc:creator><![CDATA[eiten]]></dc:creator><pubDate>Sun, 04 Feb 2024 11:18:30 GMT</pubDate></item></channel></rss>