<?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 to restore display after M5.Axp.SetSleep() with code?]]></title><description><![CDATA[<p dir="auto">There is display off after M5.Axp.SetSleep()<br />
How to restore (or reset) display from code after that, f.e. when button is pressed?</p>
]]></description><link>https://community.m5stack.com/topic/1029/how-to-restore-display-after-m5-axp-setsleep-with-code</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 01:02:19 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1029.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 May 2019 09:29:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to restore display after M5.Axp.SetSleep() with code? on Wed, 05 Jun 2019 15:03:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ricardocosta" aria-label="Profile: ricardocosta">@<bdi>ricardocosta</bdi></a><br />
void AXP192::SetSleep(void){</p>
<pre><code>Wire1.beginTransmission(0x34);
Wire1.write(0x31);
Wire1.endTransmission();
Wire1.requestFrom(0x34, 1);
uint8_t buf = Wire1.read();

buf = (1&lt;&lt;3)|buf;
Wire1.beginTransmission(0x34);
Wire1.write(0x31);
Wire1.write(buf);
Wire1.endTransmission();

Wire1.beginTransmission(0x34);
Wire1.write(0x12);
Wire1.write(0x41);
Wire1.endTransmission();
</code></pre>
<p dir="auto">}</p>
]]></description><link>https://community.m5stack.com/post/4540</link><guid isPermaLink="true">https://community.m5stack.com/post/4540</guid><dc:creator><![CDATA[vvs551]]></dc:creator><pubDate>Wed, 05 Jun 2019 15:03:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to restore display after M5.Axp.SetSleep() with code? on Sun, 02 Jun 2019 09:37:03 GMT]]></title><description><![CDATA[<p dir="auto">How did you manage to use M5.Axp.SetSleep()?<br />
I have the latest library installed (0.0.5) in Arduino, included <code>AXP192.h</code> and I get the error:</p>
<pre><code>'class AXP192' has no member named 'SetSleep'
</code></pre>
<p dir="auto">What am I missing?</p>
<p dir="auto"><em><strong>Note:</strong> using M5StickC</em></p>
]]></description><link>https://community.m5stack.com/post/4501</link><guid isPermaLink="true">https://community.m5stack.com/post/4501</guid><dc:creator><![CDATA[ricardocosta]]></dc:creator><pubDate>Sun, 02 Jun 2019 09:37:03 GMT</pubDate></item><item><title><![CDATA[Reply to How to restore display after M5.Axp.SetSleep() with code? on Thu, 23 May 2019 10:11:11 GMT]]></title><description><![CDATA[<p dir="auto">I am already detect that M5.Axp.begin() can help to restore the display</p>
]]></description><link>https://community.m5stack.com/post/4412</link><guid isPermaLink="true">https://community.m5stack.com/post/4412</guid><dc:creator><![CDATA[vvs551]]></dc:creator><pubDate>Thu, 23 May 2019 10:11:11 GMT</pubDate></item></channel></rss>