<?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 Error]]></title><description><![CDATA[<p dir="auto">What do you think is causing the error "'M5TextBox' object has no attribute 'wasReleased'" to display on the screen when I download the program to a M5stack?</p>
<p dir="auto"><img src="/assets/uploads/files/1592723086650-capture.png" alt="0_1592723070789_Capture.PNG" class=" img-fluid img-markdown" /></p>
<pre><code>def buttonC_wasReleased():
  global bDecreaseSp, iMenu, bIncreaseSp, bTm250ms, thrd10ms, iBackLtTm20min, thrdDispStatBar, thrdDispPvSp, fPvHrs, bTm1s, thrdCtrlFan, thrd20ms, fPvTemp, bRunFan, bRunFanOld, bTm6min, thrd30ms, iTm250ms, bTm15min, iSpMode, iStatus, thrd40ms, fSpTemp, fSpRH, fSpMaxHrs, thrd50ms, thrd60ms, fPvRH, iTm1s, fSpHrs, iTm6min, iTm15min
  bDecreaseSp = True
  iBackLtTm20min = 4800
  pass
btnC.wasReleased(buttonC_wasReleased)

def buttonA_wasReleased():
  global bDecreaseSp, iMenu, bIncreaseSp, bTm250ms, thrd10ms, iBackLtTm20min, thrdDispStatBar, thrdDispPvSp, fPvHrs, bTm1s, thrdCtrlFan, thrd20ms, fPvTemp, bRunFan, bRunFanOld, bTm6min, thrd30ms, iTm250ms, bTm15min, iSpMode, iStatus, thrd40ms, fSpTemp, fSpRH, fSpMaxHrs, thrd50ms, thrd60ms, fPvRH, iTm1s, fSpHrs, iTm6min, iTm15min
  iMenu = (iMenu if isinstance(iMenu, Number) else 0) + 1
  iBackLtTm20min = 4800
  pass
btnA.wasReleased(buttonA_wasReleased)

def buttonB_wasReleased():
  global bDecreaseSp, iMenu, bIncreaseSp, bTm250ms, thrd10ms, iBackLtTm20min, thrdDispStatBar, thrdDispPvSp, fPvHrs, bTm1s, thrdCtrlFan, thrd20ms, fPvTemp, bRunFan, bRunFanOld, bTm6min, thrd30ms, iTm250ms, bTm15min, iSpMode, iStatus, thrd40ms, fSpTemp, fSpRH, fSpMaxHrs, thrd50ms, thrd60ms, fPvRH, iTm1s, fSpHrs, iTm6min, iTm15min
  bIncreaseSp = True
  iBackLtTm20min = 4800
  pass
btnB.wasReleased(buttonB_wasReleased)
</code></pre>
]]></description><link>https://community.m5stack.com/topic/2060/button-error</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 08:43:32 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2060.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Jun 2020 07:09:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Button Error on Mon, 22 Jun 2020 06:06:43 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> Its ok thanks, problem solved. I gave the text label the name 'btnA' which is already a M5stack function, so renamingthe label cleared the problem.</p>
]]></description><link>https://community.m5stack.com/post/9092</link><guid isPermaLink="true">https://community.m5stack.com/post/9092</guid><dc:creator><![CDATA[birdsong]]></dc:creator><pubDate>Mon, 22 Jun 2020 06:06:43 GMT</pubDate></item><item><title><![CDATA[Reply to Button Error on Mon, 22 Jun 2020 01:48:28 GMT]]></title><description><![CDATA[<p dir="auto">could you provide the whole program. it will very helpful for us to find the problem.</p>
]]></description><link>https://community.m5stack.com/post/9087</link><guid isPermaLink="true">https://community.m5stack.com/post/9087</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Mon, 22 Jun 2020 01:48:28 GMT</pubDate></item><item><title><![CDATA[Reply to Button Error on Mon, 22 Jun 2020 01:36:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/birdsong" aria-label="Profile: birdsong">@<bdi>birdsong</bdi></a> said in <a href="/post/9076">Button Error</a>:<br />
Solution:<br />
I gave text a label btnA, when I changed it to labelA that bug was cleared.</p>
]]></description><link>https://community.m5stack.com/post/9085</link><guid isPermaLink="true">https://community.m5stack.com/post/9085</guid><dc:creator><![CDATA[birdsong]]></dc:creator><pubDate>Mon, 22 Jun 2020 01:36:39 GMT</pubDate></item></channel></rss>