<?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[Calls to &quot;Set Screen Brightness&quot; generate a lockup on M5StickC]]></title><description><![CDATA[<p dir="auto">In my app, I want the screen to go off after three seconds, then turn back on for another three seconds when someone presses the button. I accomplished this by using "Set Screen Brightness 0" and "Set Screen Brightness 100" at the appropriate points in the code.</p>
<p dir="auto">However, if I cycle through this code more than a few times, either the M5StickC or M5StickC+ lockup with screen off. Using the LED for testing, I can tell that they freeze exactly on the "Set Screen Brightness 100" line. There is also erratic behavior in other parts of the code when these lines are implemented.</p>
<p dir="auto">Take just those two lines of code out, and leave everything else in place, and the program runs just as expected, even when tested over hours. It's definitely this one command that's causing issues.</p>
]]></description><link>https://community.m5stack.com/topic/3790/calls-to-set-screen-brightness-generate-a-lockup-on-m5stickc</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 07:43:01 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/3790.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Nov 2021 16:58:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Calls to &quot;Set Screen Brightness&quot; generate a lockup on M5StickC on Thu, 02 Dec 2021 13:23:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/3701">@Devilstower</a></p>
<p dir="auto">sorry, at this time I am out of ideas.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15693</link><guid isPermaLink="true">https://community.m5stack.com/post/15693</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 02 Dec 2021 13:23:10 GMT</pubDate></item><item><title><![CDATA[Reply to Calls to &quot;Set Screen Brightness&quot; generate a lockup on M5StickC on Wed, 01 Dec 2021 16:52:17 GMT]]></title><description><![CDATA[<p dir="auto">I've tried going to 85. Also changed the minimum to 1. It didn't make a difference. No idea what's going on. One of the sticks gets "streaky" and the screen shows some kind of jumbled pixels before completely locking up, if that provides any sort of clue.</p>
]]></description><link>https://community.m5stack.com/post/15681</link><guid isPermaLink="true">https://community.m5stack.com/post/15681</guid><dc:creator><![CDATA[Devilstower]]></dc:creator><pubDate>Wed, 01 Dec 2021 16:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to Calls to &quot;Set Screen Brightness&quot; generate a lockup on M5StickC on Wed, 01 Dec 2021 15:36:05 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/3701">@Devilstower</a></p>
<p dir="auto">that is odd. Have you tried to see what happens if you don't go to full brightness?</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15680</link><guid isPermaLink="true">https://community.m5stack.com/post/15680</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 01 Dec 2021 15:36:05 GMT</pubDate></item><item><title><![CDATA[Reply to Calls to &quot;Set Screen Brightness&quot; generate a lockup on M5StickC on Wed, 01 Dec 2021 15:27:06 GMT]]></title><description><![CDATA[<p dir="auto">That same code locks up EVERY stick I have. Both M5StickC and M5StickC+. All burned to 1.8.7.</p>
<p dir="auto">If I take the Screen Brightness calls out, it will run fine. Put the screen brightness calls back in, and I can run it 3-4 times before everything comes to a halt.</p>
]]></description><link>https://community.m5stack.com/post/15679</link><guid isPermaLink="true">https://community.m5stack.com/post/15679</guid><dc:creator><![CDATA[Devilstower]]></dc:creator><pubDate>Wed, 01 Dec 2021 15:27:06 GMT</pubDate></item><item><title><![CDATA[Reply to Calls to &quot;Set Screen Brightness&quot; generate a lockup on M5StickC on Wed, 01 Dec 2021 15:20:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/3701">@Devilstower</a></p>
<p dir="auto">I cannot reproduce your issue with my M5StickCPlus. I toggled brightness on/off about 100 times without it locking up.<br />
Here is my UIFlow 1.8.7 blockly:</p>
<p dir="auto"><img src="/assets/uploads/files/1638371820947-uiflow187_m5stickcplus_brightnesstoggle_211201.png" alt="0_1638371819498_UIFlow187_M5StickCPlus_BrightnessToggle_211201.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15678</link><guid isPermaLink="true">https://community.m5stack.com/post/15678</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 01 Dec 2021 15:20:59 GMT</pubDate></item><item><title><![CDATA[Reply to Calls to &quot;Set Screen Brightness&quot; generate a lockup on M5StickC on Wed, 01 Dec 2021 14:55:27 GMT]]></title><description><![CDATA[<p dir="auto">You really don't need much to demonstrate this issue.</p>
<p dir="auto">Create a function called "ScreenOff" that contains just the command "Set Screen Brightness 0". Create a second function called "ScreenOn" that contains the command "Set Screen Brightness 100." Try calling them a few times.</p>
<p dir="auto">I've literally reduced the code to that, where the functions alternate on button A press. It locks up within the first ten calls.</p>
<p dir="auto">By adding LED On before the screen brightness call, and adding LED Off immediately after, I can see that the LED goes on and stays on when the stick locks up, indicating that it's failing directly on the Set Screen Brightness call. Once the stick is locked, it has to be reset with both side buttons before new code can be loaded.</p>
]]></description><link>https://community.m5stack.com/post/15675</link><guid isPermaLink="true">https://community.m5stack.com/post/15675</guid><dc:creator><![CDATA[Devilstower]]></dc:creator><pubDate>Wed, 01 Dec 2021 14:55:27 GMT</pubDate></item><item><title><![CDATA[Reply to Calls to &quot;Set Screen Brightness&quot; generate a lockup on M5StickC on Tue, 30 Nov 2021 20:18:12 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/3701">@Devilstower</a></p>
<p dir="auto">without the actual UIFlow code it's impossible to give advice. Could you share the minimal UIFlow code which exhibits this issue?</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15667</link><guid isPermaLink="true">https://community.m5stack.com/post/15667</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 30 Nov 2021 20:18:12 GMT</pubDate></item></channel></rss>