<?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[Resume program at position after sleep mode?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have a rather big program that has quite a few functions. I would also like to save some battery and therefore I want to send my M5Stack into sleep mode.</p>
<p dir="auto">Program start;<br />
execute SETUP() once: function A(), function B(), C();</p>
<p dir="auto">LOOP(): function D(), function E(), START HERE SLEEP.</p>
<p dir="auto">When sleep is over, my program starts again at the beginning executing the SETUP() function. Is there any way to resume my program where it stopped? Like with the next line of code or with the next function? I do not want to start again at setup().</p>
<p dir="auto">LOOP(): function D(), function E(), START HERE SLEEP; Wake up from sleep; Resume with function F(), function G(). Start again with LOOP() function D(), E(), sleep,...</p>
]]></description><link>https://community.m5stack.com/topic/1305/resume-program-at-position-after-sleep-mode</link><generator>RSS for Node</generator><lastBuildDate>Sun, 03 May 2026 05:24:00 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1305.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 08 Sep 2019 18:16:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Resume program at position after sleep mode? on Mon, 09 Sep 2019 15:15:39 GMT]]></title><description><![CDATA[<p dir="auto">light sleep should do the job, but I have to do some testing.</p>
<p dir="auto">Are there any data or "connections" lost after you wake up from light sleep?</p>
]]></description><link>https://community.m5stack.com/post/5543</link><guid isPermaLink="true">https://community.m5stack.com/post/5543</guid><dc:creator><![CDATA[Gero Nimo]]></dc:creator><pubDate>Mon, 09 Sep 2019 15:15:39 GMT</pubDate></item></channel></rss>