<?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[Button lock]]></title><description><![CDATA[<p dir="auto">Hi! I am having a problem while using different functionalities of the M5stack buttons.</p>
<ol>
<li>So I have a program where when I longpress the B button I go to a certain menu. In that menu when I (normal) press B button it starts a function that uses the NCIR unit (makes 10 temperature readings and then stops). But some strange thing is happening.When I press the B button to make the readings, at the end of the readings it will call the Long Press function again and I don't want this to happen. Is this the supposed behavior?</li>
<li>Also, if I have a longpress assigned and for example a loop that keeps on going if a button is pressed using the isPressed function at the end of that loop the longpressed function will be called anyway... How can I avoid this?<br />
Thank you for the help! Let me know if my question is confuse and I can make it in other way.</li>
</ol>
]]></description><link>https://community.m5stack.com/topic/1610/button-lock</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 00:10:05 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1610.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Jan 2020 17:46:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button lock on Fri, 17 Jan 2020 00:23:55 GMT]]></title><description><![CDATA[<p dir="auto">Sorry! <a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> I have not forgot about this, I am a bit withou time, a lot to do for work right now!<br />
But I'll sketch up an example soon!<br />
Thank you for the help</p>
]]></description><link>https://community.m5stack.com/post/7074</link><guid isPermaLink="true">https://community.m5stack.com/post/7074</guid><dc:creator><![CDATA[tialm]]></dc:creator><pubDate>Fri, 17 Jan 2020 00:23:55 GMT</pubDate></item><item><title><![CDATA[Reply to Button lock on Mon, 13 Jan 2020 18:34:31 GMT]]></title><description><![CDATA[<p dir="auto">Can you post your code please?</p>
]]></description><link>https://community.m5stack.com/post/7020</link><guid isPermaLink="true">https://community.m5stack.com/post/7020</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Mon, 13 Jan 2020 18:34:31 GMT</pubDate></item></channel></rss>