<?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[M5 Fire &quot;get battery level&quot; block]]></title><description><![CDATA[<p dir="auto">Hi<br />
I'm getting started with the M5 Fire and UI Flow<br />
I am trying to print the battery level using the "get battery level" block<br />
I get an awful red ERROR message with "name 'power' isn't defined"<br />
The code is<br />
from m5stack import *<br />
from m5ui import *<br />
from uiflow import *<br />
import time<br />
label0 = M5TextBox(262, 204, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)<br />
BatLvl = None<br />
while True:<br />
BatLvl = power.getBatteryLevel()<br />
label0.setText(str(BatLvl))<br />
speaker.sing(147, 1)<br />
wait(1)</p>
<p dir="auto">I thought power was part of the library... If not, what is the correct way of defining it ?</p>
]]></description><link>https://community.m5stack.com/topic/2263/m5-fire-get-battery-level-block</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 06:20:54 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2263.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Sep 2020 17:18:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Thu, 10 Sep 2020 06:56:14 GMT]]></title><description><![CDATA[<p dir="auto">I did erase, and M5Burner did never complain but it didn't solve the problem<br />
I don't know why but as I tried again and again, it worked...pretty weird...</p>
]]></description><link>https://community.m5stack.com/post/10022</link><guid isPermaLink="true">https://community.m5stack.com/post/10022</guid><dc:creator><![CDATA[F3l1x]]></dc:creator><pubDate>Thu, 10 Sep 2020 06:56:14 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Thu, 10 Sep 2020 03:38:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/f3l1x" aria-label="Profile: f3l1x">@<bdi>f3l1x</bdi></a> could you try erase the flash then burn the firmware again?</p>
]]></description><link>https://community.m5stack.com/post/10019</link><guid isPermaLink="true">https://community.m5stack.com/post/10019</guid><dc:creator><![CDATA[m5stack]]></dc:creator><pubDate>Thu, 10 Sep 2020 03:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Wed, 09 Sep 2020 12:00:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi again<br />
I tried M5burner on another laptop<br />
It "sees" the M5 fire but cannot flash it<br />
"A fatal error occurred: File fatfs_image_0x370000.bin (length 2678784) at offset 3604480 will not fit in 4194304 bytes of flash. Use --flash-size argument, or change flashing address."<br />
Weird, as the firmware is meant for the fire hardware, it should match its memory size ?!</p>
]]></description><link>https://community.m5stack.com/post/10016</link><guid isPermaLink="true">https://community.m5stack.com/post/10016</guid><dc:creator><![CDATA[F3l1x]]></dc:creator><pubDate>Wed, 09 Sep 2020 12:00:49 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Fri, 04 Sep 2020 11:17:00 GMT]]></title><description><![CDATA[<p dir="auto">i download M5Burner in zip file. When i unpack it i has <strong>tools</strong> folder which include esptool. Copy dll file in this folder. Eventually find downloaded firmware files in <strong>firmwares</strong> folder and burn it with other flash tools like <em>esp flash tool</em> from espressif home page</p>
]]></description><link>https://community.m5stack.com/post/9942</link><guid isPermaLink="true">https://community.m5stack.com/post/9942</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Fri, 04 Sep 2020 11:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Fri, 04 Sep 2020 10:46:45 GMT]]></title><description><![CDATA[<p dir="auto">I already added python36.dll to the M5burner folder on my computer.<br />
Using esptools, where do I need to add python36.dll ?</p>
]]></description><link>https://community.m5stack.com/post/9940</link><guid isPermaLink="true">https://community.m5stack.com/post/9940</guid><dc:creator><![CDATA[F3l1x]]></dc:creator><pubDate>Fri, 04 Sep 2020 10:46:45 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Thu, 03 Sep 2020 16:19:23 GMT]]></title><description><![CDATA[<p dir="auto">Find a file esptool.exe and copy this dll to the same folder.</p>
]]></description><link>https://community.m5stack.com/post/9930</link><guid isPermaLink="true">https://community.m5stack.com/post/9930</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Thu, 03 Sep 2020 16:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Thu, 03 Sep 2020 16:10:55 GMT]]></title><description><![CDATA[<p dir="auto">python36.dll DOES exist on my computer<br />
Is there a way to give it's path to M5burner as a parameter? (I tried adding python36.dll to the Windows PATH, with no luck)</p>
]]></description><link>https://community.m5stack.com/post/9929</link><guid isPermaLink="true">https://community.m5stack.com/post/9929</guid><dc:creator><![CDATA[F3l1x]]></dc:creator><pubDate>Thu, 03 Sep 2020 16:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Thu, 03 Sep 2020 13:01:55 GMT]]></title><description><![CDATA[<p dir="auto">Try install Python 3.6 or higher for windows. Then burner software should work without errors.</p>
]]></description><link>https://community.m5stack.com/post/9927</link><guid isPermaLink="true">https://community.m5stack.com/post/9927</guid><dc:creator><![CDATA[robalstona]]></dc:creator><pubDate>Thu, 03 Sep 2020 13:01:55 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Thu, 03 Sep 2020 11:45:55 GMT]]></title><description><![CDATA[<p dir="auto">Yes I thought I should update...unfortunately, M5burner does not work on my Windows laptop<br />
"Error loading Python DLL 'C:\Users\xxx\AppData\Local\Temp_MEI97002\python36.dll'.<br />
LoadLibrary: The specified module could not be found.</p>
]]></description><link>https://community.m5stack.com/post/9923</link><guid isPermaLink="true">https://community.m5stack.com/post/9923</guid><dc:creator><![CDATA[F3l1x]]></dc:creator><pubDate>Thu, 03 Sep 2020 11:45:55 GMT</pubDate></item><item><title><![CDATA[Reply to M5 Fire &quot;get battery level&quot; block on Wed, 02 Sep 2020 20:13:34 GMT]]></title><description><![CDATA[<p dir="auto">Have you updated the fire to the latest UIFlow Firmware?</p>
]]></description><link>https://community.m5stack.com/post/9914</link><guid isPermaLink="true">https://community.m5stack.com/post/9914</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 02 Sep 2020 20:13:34 GMT</pubDate></item></channel></rss>