<?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[M5Dial - Button not working?]]></title><description><![CDATA[<p dir="auto">Hey guys,</p>
<p dir="auto">New here and new to UIFlow2. Got a M5Dial that I am playing with. I got the encoder working etc. But I can't get the inbuilt button press in it working.</p>
<p dir="auto">I have the "Button" added to my hardware list (it was included automatically based on my M5Dial hardware profile). Under it I can find the event "When button BtnA was X" which I have added. I have put a simple "set label0 to Hello". But it never triggers. I've tried pressed, clicked, held etc.</p>
<p dir="auto">I tried in my loop as well to do a "if pressed" but that doesnt work either.</p>
<p dir="auto">What am I missing? Do I need to initialise or configure the button somehow?</p>
<p dir="auto">Here is the code generated for it,</p>
<p dir="auto">def btnA_wasClicked_event(state):<br />
global Background, image1, image2, image3, image4, label0, rgb, rotary, http_req<br />
label0.setText(str('Clicked!'))</p>
<p dir="auto">def setup():<br />
BtnA.setCallback(type=BtnA.CB_TYPE.WAS_CLICKED, cb=btnA_wasClicked_event)</p>
]]></description><link>https://community.m5stack.com/topic/5855/m5dial-button-not-working</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 08:43:36 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5855.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Nov 2023 19:53:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Dial - Button not working? on Mon, 04 Dec 2023 14:23:16 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> Amazing felmue! Thanks that was it!</p>
]]></description><link>https://community.m5stack.com/post/22956</link><guid isPermaLink="true">https://community.m5stack.com/post/22956</guid><dc:creator><![CDATA[Fredde]]></dc:creator><pubDate>Mon, 04 Dec 2023 14:23:16 GMT</pubDate></item><item><title><![CDATA[Reply to M5Dial - Button not working? on Wed, 29 Nov 2023 21:51:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/fredde" aria-label="Profile: Fredde">@<bdi>Fredde</bdi></a></p>
<p dir="auto">make sure you have the <code>Update button, touch, etc. in loop</code> block activated in <code>loop</code>. E.g.</p>
<pre><code>def loop():
  global label0
  M5.update()
</code></pre>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/22929</link><guid isPermaLink="true">https://community.m5stack.com/post/22929</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 29 Nov 2023 21:51:18 GMT</pubDate></item></channel></rss>