<?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[Need help with Activating looping functions in UiFLow]]></title><description><![CDATA[<p dir="auto">Hello everyone, I'm very new to programing and this is my first venture into M5Stack Core2 and UiFlow. I'm in need of some help with some looping light functions. I was playing around with the Breathing RGB Demo and was trying to alternate between to sets of looped lighting setting which I could activate with buttons. I can get one of the looped flashing lighting effects, but when I press the second button the light doesn't change to the next effect. I can not seem to break or exit out of the current loop to switch to the next effects loop. I'm sure I'm missing something dumb and simple, but I'm not sure what I'm doing wrong. Please help a beginner, learn the ways of UiFlow. Thank you.</p>
<p dir="auto"><img src="/assets/uploads/files/1751571811302-screen-1.jpg" alt="Screen 1.jpg" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1751571818924-screen-2.jpg" alt="Screen 2.jpg" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1751571821722-screen-3.png" alt="Screen 3.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/7656/need-help-with-activating-looping-functions-in-uiflow</link><generator>RSS for Node</generator><lastBuildDate>Thu, 07 May 2026 07:22:44 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7656.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jul 2025 19:43:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need help with Activating looping functions in UiFLow on Thu, 10 Jul 2025 03:34:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/icarus121" aria-label="Profile: icarus121">@<bdi>icarus121</bdi></a><br />
great job!</p>
]]></description><link>https://community.m5stack.com/post/29442</link><guid isPermaLink="true">https://community.m5stack.com/post/29442</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Thu, 10 Jul 2025 03:34:17 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with Activating looping functions in UiFLow on Fri, 04 Jul 2025 15:51:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kuriko" aria-label="Profile: kuriko">@<bdi>kuriko</bdi></a></p>
<p dir="auto">Thank you so much for your help Kurikio. And for your crazy fast response. This is exactly what I needed to get myself back on the right path. I through together a quick test this morning and everything is now running smoothly and I'm able to change between different lighting setting with out the program crashing or getting stuck in a endless loop.</p>
<p dir="auto">Here's what I ended up putting together. Three buttons on the display that could change between three preset colors and a effect pattern, the A and B buttons mirrored the first 2 button and the C button turned off the lights.</p>
<p dir="auto">Thank again so much for your help. Here are some photo of my end result:</p>
<p dir="auto"><img src="/assets/uploads/files/1751644289162-screen-1.1.jpg" alt="Screen 1.1.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1751644294562-screen-2.1.jpg" alt="Screen 2.1.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1751644285645-screen-3.1.png" alt="Screen 3.1.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/29404</link><guid isPermaLink="true">https://community.m5stack.com/post/29404</guid><dc:creator><![CDATA[icarus121]]></dc:creator><pubDate>Fri, 04 Jul 2025 15:51:58 GMT</pubDate></item><item><title><![CDATA[Reply to Need help with Activating looping functions in UiFLow on Fri, 04 Jul 2025 08:41:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/icarus121" aria-label="Profile: icarus121">@<bdi>icarus121</bdi></a><br />
Your problem is that you use "loop" in the callback function of "touchbutton0_was_pressed". This will cause your program to loop forever.<br />
I recommend you add a flag to indicate whether button1 or button2 is pressed: in the loop, if button1 is pressed, execute program 1; the same applies to button2.<br />
<img src="/assets/uploads/files/1751618471327-f5f25e2a-1436-444f-8dc6-f8a26b5b918c-image.png" alt="f5f25e2a-1436-444f-8dc6-f8a26b5b918c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/29400</link><guid isPermaLink="true">https://community.m5stack.com/post/29400</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Fri, 04 Jul 2025 08:41:12 GMT</pubDate></item></channel></rss>