<?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[How is the M5StickC Plus 2 turned off in the User Demo?]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">I am enjoying using my M5StickC Plus 2 since I found the User Demo (<a href="https://github.com/m5stack/M5StickCPlus2-UserDemo" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5StickCPlus2-UserDemo</a>) and started modifying it for my needs.</p>
<p dir="auto">Everything works flawlessly but I don't understand how the device is turned off.</p>
<p dir="auto">I think the function</p>
<p dir="auto">void TEST::power_off()</p>
<p dir="auto">in test.cpp does the magic (it no longer works when I comment it out along with its declaration in test.h) but I don't see it being called.</p>
<p dir="auto">Sorry for the rookie question. I tried searching and was unable to find anything useful so far.</p>
<p dir="auto">Thanks a lot,</p>
<p dir="auto">Ben</p>
]]></description><link>https://community.m5stack.com/topic/6666/how-is-the-m5stickc-plus-2-turned-off-in-the-user-demo</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 23:11:55 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6666.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Jul 2024 23:45:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How is the M5StickC Plus 2 turned off in the User Demo? on Sun, 04 Aug 2024 07:44:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/85786">@foudrou</a></p>
<p dir="auto">M5StickCPlus2 has dedicated hardware (U8 etc.) to power off when the power button is pressed and hold. See schematic <a href="https://docs.m5stack.com/en/core/M5StickC%20PLUS2?id=schematic" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Instead of setting <code>POWER_HOLD_PIN</code> low, the power off hardware pulls 3V3EN low which disables the 3.3 V DC/DC converter and thus killing the power to the ESP32.</p>
<p dir="auto">Note: when the power button is hold long enough you'll see the green LED being turned on, indicating that 3V3EN is low.</p>
<p dir="auto">Note: power off only works when run from battery.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/25990</link><guid isPermaLink="true">https://community.m5stack.com/post/25990</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 04 Aug 2024 07:44:32 GMT</pubDate></item><item><title><![CDATA[Reply to How is the M5StickC Plus 2 turned off in the User Demo? on Thu, 01 Aug 2024 01:24:25 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a>,</p>
<p dir="auto">I'll continue to play around with the demo to get a better grasp of it.</p>
<p dir="auto">If anyone has another (ideally PlatformIO-based) demo to propose I will have a look at it.</p>
<p dir="auto">Thanks again,</p>
<p dir="auto">Ben</p>
]]></description><link>https://community.m5stack.com/post/25962</link><guid isPermaLink="true">https://community.m5stack.com/post/25962</guid><dc:creator><![CDATA[foudrou]]></dc:creator><pubDate>Thu, 01 Aug 2024 01:24:25 GMT</pubDate></item><item><title><![CDATA[Reply to How is the M5StickC Plus 2 turned off in the User Demo? on Wed, 31 Jul 2024 16:41:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/85786">@foudrou</a></p>
<p dir="auto">there is an alternate way which can turn off the device: if <code>is_test_mode</code> is <code>true</code> then at the end of <code>test_loop()</code> <code>rtc_wakeup_test()</code> is called which at the end <a href="https://github.com/m5stack/M5StickCPlus2-UserDemo/blob/main/src/test/test_rtc.cpp#L122" target="_blank" rel="noopener noreferrer nofollow ugc">sets</a> <code>POWER_HOLD_PIN</code> to <code>LOW</code> turning off the device.</p>
<p dir="auto">Note: not sure why it doesn't work when you comment out <code>power_off()</code> function as I also don't see it being called anywhere either.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/25960</link><guid isPermaLink="true">https://community.m5stack.com/post/25960</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 31 Jul 2024 16:41:06 GMT</pubDate></item></channel></rss>