<?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 key pressed event catched without key was pressed]]></title><description><![CDATA[<p dir="auto">Hi folks</p>
<p dir="auto">Load the code below to a M5Stack device.<br />
then run for more than 30 min.<br />
DO NOT PRESS ANY KEY WHILE RUNNING!<br />
Do you see that the screen has changed the color?<br />
It means that a keypressed event was catched.</p>
<p dir="auto">Is this bug known?<br />
maybe <a href="https://github.com/m5stack/M5Stack/issues/52" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/issues/52</a> (2 years old!!!)</p>
<p dir="auto">from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import wifiCfg</p>
<p dir="auto">ip = wifiCfg.wlan_sta.ifconfig()</p>
<p dir="auto">lcd.clear()<br />
lcd.font(lcd.FONT_DejaVu18)<br />
lcd.print('initializing...', 0, 0, 0xffffff)<br />
wifiCfg.screenShow()<br />
wifiCfg.autoConnect(lcdShow = True)</p>
<p dir="auto">setScreenColor(0x000000)</p>
<p dir="auto">def buttonA_wasPressed():<br />
lcd.fill(0xff0000)<br />
pass<br />
btnA.wasPressed(buttonA_wasPressed)</p>
<p dir="auto">def buttonB_wasPressed():<br />
lcd.fill(0x00ff00)<br />
pass<br />
btnB.wasPressed(buttonB_wasPressed)</p>
<p dir="auto">def buttonC_wasPressed():<br />
lcd.fill(0x0000ff)<br />
pass<br />
btnC.wasPressed(buttonC_wasPressed)</p>
<p dir="auto">Is there a workaround to avoid that?<br />
Its absolutely useless if an key pressed event is catched, if no key was pressed!</p>
<p dir="auto">Thanks ;-)<br />
Thomas</p>
]]></description><link>https://community.m5stack.com/topic/1710/button-key-pressed-event-catched-without-key-was-pressed</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 08:44:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1710.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Feb 2020 19:54:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button key pressed event catched without key was pressed on Fri, 21 Feb 2020 02:26:41 GMT]]></title><description><![CDATA[<p dir="auto">There is no good solution to this problem in UIFow. If it is in Arduino, you can refer to the issue mentioned in the issues to modify Digital read to Analog read</p>
]]></description><link>https://community.m5stack.com/post/7515</link><guid isPermaLink="true">https://community.m5stack.com/post/7515</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Fri, 21 Feb 2020 02:26:41 GMT</pubDate></item><item><title><![CDATA[Reply to Button key pressed event catched without key was pressed on Thu, 20 Feb 2020 22:07:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a> said in <a href="/post/7495">Button key pressed event catched without key was pressed</a>:</p>
<blockquote>
<p dir="auto">yeah...this bug was from the ESP IDF.    As you see in the Github issues</p>
</blockquote>
<p dir="auto">And what can I do to avoid it? In this case I cannot use Button A. So the device is useless.</p>
]]></description><link>https://community.m5stack.com/post/7513</link><guid isPermaLink="true">https://community.m5stack.com/post/7513</guid><dc:creator><![CDATA[M5StickFreakler]]></dc:creator><pubDate>Thu, 20 Feb 2020 22:07:33 GMT</pubDate></item><item><title><![CDATA[Reply to Button key pressed event catched without key was pressed on Thu, 20 Feb 2020 08:43:05 GMT]]></title><description><![CDATA[<p dir="auto">yeah...this bug was from the ESP IDF.    As you see in the Github issues</p>
]]></description><link>https://community.m5stack.com/post/7495</link><guid isPermaLink="true">https://community.m5stack.com/post/7495</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Thu, 20 Feb 2020 08:43:05 GMT</pubDate></item><item><title><![CDATA[Reply to Button key pressed event catched without key was pressed on Thu, 20 Feb 2020 07:48:09 GMT]]></title><description><![CDATA[<p dir="auto">I have the same button #52 issue.<br />
A small delay in the loop (ref comments in the issue) makes it a lot better, but I still experience it some times and need to keep that in account.</p>
]]></description><link>https://community.m5stack.com/post/7491</link><guid isPermaLink="true">https://community.m5stack.com/post/7491</guid><dc:creator><![CDATA[option]]></dc:creator><pubDate>Thu, 20 Feb 2020 07:48:09 GMT</pubDate></item></channel></rss>