<?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[M5Core detects pressure on key A even if the key was not pressed at all.]]></title><description><![CDATA[<p dir="auto">I discovered by accident that the M5Core sends out a command via MQTT, even if the associated button was not pressed at all. Has anyone ever observed something similar. What can be the reason. It only occurs with key A.</p>
<p dir="auto">I have written a program to control my marquee in UIFlow. Here is the resulting Micropython code:</p>
<pre><code>def buttonA_wasPressed():
  global temp, prog_name, lfd_nummer, version, data_update, balkon, wohn_zimmer, testraum, message
  m5mqtt.publish(str('whg/balkon/markiese/strg'),str(lfd_nummer))
  lab_status.setText(str(lfd_nummer))
  lab_status.show()
  lfd_nummer = (lfd_nummer if isinstance(lfd_nummer, Number) else 0) + 1
  pass
btnA.wasPressed(buttonA_wasPressed)
</code></pre>
<p dir="auto">Unfortunately, the indentations are swallowed. Is there a way to format code?</p>
<p dir="auto">Peter</p>
]]></description><link>https://community.m5stack.com/topic/3665/m5core-detects-pressure-on-key-a-even-if-the-key-was-not-pressed-at-all</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 07:42:08 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3665.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Oct 2021 13:33:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Core detects pressure on key A even if the key was not pressed at all. on Sun, 24 Oct 2021 21:59:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a></p>
<p dir="auto">The tip has hit the problem. I have implemented a query of the key A in the callback routine after 1 ms. Only if the key is still pressed the routine is executed. Otherwise nothing is done. Now there are no more key presses from the ghost.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/post/15231</link><guid isPermaLink="true">https://community.m5stack.com/post/15231</guid><dc:creator><![CDATA[Peter]]></dc:creator><pubDate>Sun, 24 Oct 2021 21:59:20 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core detects pressure on key A even if the key was not pressed at all. on Thu, 21 Oct 2021 15:37:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a><br />
Thank you for the information.</p>
<p dir="auto">I will have a look at the links. At first glance it might fit.</p>
<p dir="auto">Peter</p>
]]></description><link>https://community.m5stack.com/post/15190</link><guid isPermaLink="true">https://community.m5stack.com/post/15190</guid><dc:creator><![CDATA[Peter]]></dc:creator><pubDate>Thu, 21 Oct 2021 15:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to M5Core detects pressure on key A even if the key was not pressed at all. on Thu, 21 Oct 2021 14:12:20 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/peter" aria-label="Profile: Peter">@<bdi>Peter</bdi></a></p>
<p dir="auto">could be the issue discussed <a href="https://github.com/micropython/micropython/issues/5425" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>. Or this <a href="https://www.esp32.com/viewtopic.php?t=14087" target="_blank" rel="noopener noreferrer nofollow ugc">one</a>. Not sure how to fix though.</p>
<p dir="auto">Yes, you can mark a code block using the back tick three times in a row ``` at the beginning of the line before and after the code block.</p>
<pre><code>def buttonA_wasPressed():
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15188</link><guid isPermaLink="true">https://community.m5stack.com/post/15188</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 21 Oct 2021 14:12:20 GMT</pubDate></item></channel></rss>