<?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[Battery status?]]></title><description><![CDATA[<p dir="auto">Hi, is there any way to know the battery percentage of the M5Stick-C? I want to know when its "fully" charged and what is the real-time percentage of the battery!</p>
<p dir="auto">Thanks</p>
]]></description><link>https://community.m5stack.com/topic/2359/battery-status</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 05:45:01 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2359.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Oct 2020 14:05:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Battery status? on Wed, 21 Oct 2020 00:52:50 GMT]]></title><description><![CDATA[<p dir="auto">I've just started out but it looks like the following shows the voltage and mine maxed out at 4.178V, this gradually decreases and I think below 3.6V isn't really usable.  You can use this and some testing to determine the percentage of battery.</p>
<pre><code>#include "M5StickCPlus.h"

TFT_eSprite Disbuff = TFT_eSprite(&amp;M5.Lcd);

void setup() {
    M5.begin();
    M5.Axp.ScreenBreath(8);
    M5.Lcd.setRotation(1);

    Disbuff.createSprite(240, 135);
    Disbuff.setTextColor(TFT_WHITE);
}

void loop() {
    Disbuff.fillRect(0, 0, 240, 135, TFT_BLACK);
    Disbuff.setCursor(10, 10);
    Disbuff.printf("BAT_V: %.3fV",M5.Axp.GetBatVoltage());
    Disbuff.pushSprite(0,0);
}
</code></pre>
<p dir="auto">There are other options power functions that may help in this doc:<br />
<a href="https://docs.m5stack.com/#/en/api/axp192_m5stickc" target="_blank" rel="noopener noreferrer nofollow ugc">AXP192 (Power management)</a></p>
<p dir="auto">Good luck.</p>
]]></description><link>https://community.m5stack.com/post/10410</link><guid isPermaLink="true">https://community.m5stack.com/post/10410</guid><dc:creator><![CDATA[OnRed]]></dc:creator><pubDate>Wed, 21 Oct 2020 00:52:50 GMT</pubDate></item></channel></rss>