<?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[UIFlow Timer locks code?]]></title><description><![CDATA[<p dir="auto">I was trying to create a timer, which envokes power saving features after x amount seconds of non use/button press of the device.<br />
When in this 'powersave' mode, any button will wake up the device (M5StickCplus2) again (which works).<br />
some snippets of code below:</p>
<p dir="auto">Define timer:<br />
<img src="/assets/uploads/files/1708506302515-uiflow_block_1708506217114.png" alt="0_1708506301302_uiflow_block_1708506217114.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Timer Callback:</strong><br />
<img src="/assets/uploads/files/1708506338743-uiflow_block_1708506226713.png" alt="0_1708506337551_uiflow_block_1708506226713.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>Button Press:</strong><br />
<img src="/assets/uploads/files/1708506408070-uiflow_block_1708506221134.png" alt="0_1708506407143_uiflow_block_1708506221134.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Somehow the timer locks all the processes and <strong>no action</strong> can be undertaken after the screen becomes visible again.<br />
Any hints (or previous experience) people have with this kind of power saving methods, or is there an easier way (using UIFlow).<br />
NOTE: UIFLow2 doesnt really work for my use case, so I gave up on that one.</p>
]]></description><link>https://community.m5stack.com/topic/6120/uiflow-timer-locks-code</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 19:49:14 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6120.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Feb 2024 09:12:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UIFlow Timer locks code? on Thu, 22 Feb 2024 06:03:26 GMT]]></title><description><![CDATA[<p dir="auto">I think I cracked it. I hope this will help some people with the same issue.</p>
<p dir="auto"><img src="/assets/uploads/files/1708581718541-uiflow_block_1708581446233-resized.png" alt="0_1708581715011_uiflow_block_1708581446233.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> , I was looking at some of the comments regarding m5.lightsleep() and m5.deepsleep(). how can you wake the device up without a timer, is there a button press option?</p>
]]></description><link>https://community.m5stack.com/post/24015</link><guid isPermaLink="true">https://community.m5stack.com/post/24015</guid><dc:creator><![CDATA[zoner]]></dc:creator><pubDate>Thu, 22 Feb 2024 06:03:26 GMT</pubDate></item></channel></rss>