<?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[Fire getBatteryLevel()]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to read the battery level from a Fire controller but even the init code is not working. Is this function not supported for Fire controllers? In the schematic I see that a IP5306  power controller is used in the hardware. So I don't understand why canControl() returns false.</p>
<pre><code>  M5.begin(); 
  M5.Power.begin();
  if (M5.Power.canControl()) {
    Serial.println("Power canControl OK");
  } else {
    Serial.println("Power canControl ERROR");
  }
</code></pre>
<p dir="auto">I'm always getting the ERROR message.</p>
<p dir="auto">Thanks, Roger</p>
]]></description><link>https://community.m5stack.com/topic/4789/fire-getbatterylevel</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 11:00:43 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4789.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Nov 2022 20:03:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fire getBatteryLevel() on Thu, 10 Nov 2022 08:38:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/veto6017" aria-label="Profile: Veto6017">@<bdi>Veto6017</bdi></a></p>
<p dir="auto">hmm, with an M5Stack Fire (HW: 2018.2A) running your code I get "Power canControl OK".</p>
<p dir="auto">Have you tried to run I2C_Tester.ino? The I2C scan finds 0x10 (BMM150), 0x68 (MPU6886) and 0x75 (IP5306).</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/19248</link><guid isPermaLink="true">https://community.m5stack.com/post/19248</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 10 Nov 2022 08:38:45 GMT</pubDate></item></channel></rss>