<?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[setLowPowerShutdownTime() usage]]></title><description><![CDATA[<p dir="auto">I am having trouble using this function. Example code below.</p>
<p dir="auto">#include &lt;M5ez.h&gt;<br />
#include &lt;M5Stack.h&gt;</p>
<p dir="auto">void setup() {<br />
ez.begin();<br />
M5.Power.begin();<br />
M5.Power.setLowPowerShutdownTime(ShutdownTime::SHUTDOWN_16S);<br />
}</p>
<p dir="auto">void loop() {<br />
ez.msgBox("M5ez minimal program", "Hello World !", "Settings");<br />
ez.settings.menu();<br />
}</p>
<p dir="auto">When I compile I get the error "<strong>exit status 1 'ShutdownTime' has not been declared</strong>"</p>
<p dir="auto">What am I doing wrong?</p>
<p dir="auto">What I am trying to do is to have the M5Stack Gray stay on for a short time after the USB is unplugged. At the moment when the USB is unplugged the M5 resets and then restarts.</p>
]]></description><link>https://community.m5stack.com/topic/1817/setlowpowershutdowntime-usage</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:21:45 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1817.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Apr 2020 22:28:21 GMT</pubDate><ttl>60</ttl></channel></rss>