<?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[M5StickCPlus MicrPython power saving]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Which MicroPython APIs can help reduce power drain on M5StickCPlus?</p>
<p dir="auto">I was unable to get basics to work:</p>
<ul>
<li>lcd.setBrightness(0-100) # didn't change LCD backlight brightnes</li>
<li>power.getBatteryLevel() # didn't seam to work</li>
<li>No API to turn off wifi mentioned at: <a href="https://github.com/m5stack/UIFlow-Code/wiki/Advanced" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/UIFlow-Code/wiki/Advanced</a> - does this work: wifiCfg.wlan_sta.active(False)</li>
</ul>
<p dir="auto">Are there other APIs to turn on/off parts of device , or to reduce power drain?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/topic/2488/m5stickcplus-micrpython-power-saving</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 15:00:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2488.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Nov 2020 22:26:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5StickCPlus MicrPython power saving on Sat, 21 Nov 2020 22:52:38 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkothesane" aria-label="Profile: WonkoTheSane">@<bdi>WonkoTheSane</bdi></a></p>
<p dir="auto">Hmm, did you include the line <code>from m5stack import *</code>?</p>
<p dir="auto">I have UIFlow 1.6.6 firmware installed on my M5StickC Plus and use Blockly's <code>Set screen brightness</code> block then switched to the <code>Python</code> tab.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10823</link><guid isPermaLink="true">https://community.m5stack.com/post/10823</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 21 Nov 2020 22:52:38 GMT</pubDate></item><item><title><![CDATA[Reply to M5StickCPlus MicrPython power saving on Sat, 21 Nov 2020 20:39:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a>,<br />
Unfortunately  on my <code>M5StickPlus axp.setLcdBrightness(50)</code> gives an error.</p>
<p dir="auto">Maybe it has different MicroPython hardware APIs than your device?</p>
]]></description><link>https://community.m5stack.com/post/10820</link><guid isPermaLink="true">https://community.m5stack.com/post/10820</guid><dc:creator><![CDATA[WonkoTheSane]]></dc:creator><pubDate>Sat, 21 Nov 2020 20:39:31 GMT</pubDate></item><item><title><![CDATA[Reply to M5StickCPlus MicrPython power saving on Fri, 20 Nov 2020 08:00:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkothesane" aria-label="Profile: WonkoTheSane">@<bdi>WonkoTheSane</bdi></a></p>
<p dir="auto">try the following commands:</p>
<pre><code>from m5stack import *
import machine

axp.setLcdBrightness(50) # set LCD backlight brightness
axp.getBatVoltage() # get battery voltage

machine.deepsleep(10000) # deep sleep for 10 seconds
machine.lightsleep(10000) # light sleep for 10 seconds
</code></pre>
<p dir="auto">about WiFi: I don't know how to turn WiFi off with MircoPython, sorry. Somebody else might have an idea?</p>
<p dir="auto">Cheers<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10805</link><guid isPermaLink="true">https://community.m5stack.com/post/10805</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 20 Nov 2020 08:00:55 GMT</pubDate></item><item><title><![CDATA[Reply to M5StickCPlus MicrPython power saving on Fri, 20 Nov 2020 06:04:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wonkothesane" aria-label="Profile: wonkothesane">@<bdi>wonkothesane</bdi></a> Hi, Usually what you can do is depends on your task to put your ESP32 device into deep sleep mode which will automatically turn off WiFi and other power consuming devices on top of the Stick-C.</p>
]]></description><link>https://community.m5stack.com/post/10804</link><guid isPermaLink="true">https://community.m5stack.com/post/10804</guid><dc:creator><![CDATA[Zontex]]></dc:creator><pubDate>Fri, 20 Nov 2020 06:04:12 GMT</pubDate></item></channel></rss>