<?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[M5Stack Dial with Micropython and M5 libraries, without UIFlow 2?]]></title><description><![CDATA[<p dir="auto">Is it possible to program the M5Stack Dial directly in Micropython, and have the device load that .py file (e.g. <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>) from boot when connected to battery, without messing around with UIFlow 2?</p>
<p dir="auto">I'll need access to the M5Stack libraries still, to display things on the screen, make beepboops, read the touchscreen, read BtnA etc..</p>
<p dir="auto">I'm going in circles. There are many confusing posts from 5-7 years ago. There's a deprecated Github folder that looks promising, but then says to use the new Github for UIFlow 2, with no instructions on how to just do Micropython from Thonny or ideally VSCode, without the buggy graphical UI Flow 2 interface.</p>
<p dir="auto">I feel this is simple, since all UI Flow 2 is create Micropython code, but I can't quite figure it out?</p>
<p dir="auto">Many thanks,</p>
<p dir="auto">Adam</p>
]]></description><link>https://community.m5stack.com/topic/7125/m5stack-dial-with-micropython-and-m5-libraries-without-uiflow-2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 15:38:25 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7125.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Dec 2024 21:57:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stack Dial with Micropython and M5 libraries, without UIFlow 2? on Sat, 28 Dec 2024 21:34:34 GMT]]></title><description><![CDATA[<p dir="auto">I can be more specific.</p>
<p dir="auto">When I "Download" from UI Flow 2 to the device, it works:</p>
<p dir="auto">Press BtnA to switch on.<br />
Press BtnA to switch off, once my program allows, with custom MPY:</p>
<pre><code>hold_pin = Pin(46, Pin.OUT)
hold_pin.value(0)
</code></pre>
<p dir="auto">But a problem is if I LONG press (6 secs) BtnA, the device FULLY resets. It goes to the QR code and device Mac screen. That menu crashes almost immediately, meaning I can't rotate the dial to run my Python script. The only way to get it back working is to redownload from UI Flow 2?</p>
<p dir="auto">Is there a way to turn off that long-press reset function? Or to stop the QR code menu from crashing, so I can at least run my program?</p>
<p dir="auto">These details about long press BtnA or the reset button on the back don't seem to be covered by the main reference, <a href="https://docs.m5stack.com/en/core/M5Dial" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.m5stack.com/en/core/M5Dial</a></p>
]]></description><link>https://community.m5stack.com/post/27630</link><guid isPermaLink="true">https://community.m5stack.com/post/27630</guid><dc:creator><![CDATA[PharkieB]]></dc:creator><pubDate>Sat, 28 Dec 2024 21:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack Dial with Micropython and M5 libraries, without UIFlow 2? on Sat, 28 Dec 2024 20:34:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/201613">@PharkieB</a><br />
You should stick with UIFlow for a while and examine the MicroPython files that are generated to get an understanding of how they work!<br />
The Dial is just a ESP32S3 (M5StampS3) on the inside but there may be difficulty getting a screen driver in MicroPython.<br />
This is a kind of  Do-It-Yourself hobbyist tech.<br />
It can be very rewarding learning and getting in to it!<br />
FYI every ESP32 has a permanent built in BootLoader that is indestructible. You should figure out how to 'erase all' and start over. The BootLoader will still be there ready to download your next program.</p>
]]></description><link>https://community.m5stack.com/post/27629</link><guid isPermaLink="true">https://community.m5stack.com/post/27629</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sat, 28 Dec 2024 20:34:15 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack Dial with Micropython and M5 libraries, without UIFlow 2? on Sat, 28 Dec 2024 19:19:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/7508">@teastain</a> Thanks, but I'm still unclear how to navigate the bootloader on the M5Stack Dial. What I'm used to are ESP32 or Pico devices that are flashed with standard Micropython builds, and start <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a> or <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow ugc">boot.py</a> on startup.</p>
<p dir="auto">The firmware on the official Micropython site only support a couple of M5Stack devices and not the Dial. Would the one for the Atom S3 Lite work on the Dial <a href="https://micropython.org/download/M5STACK_ATOMS3_LITE/" target="_blank" rel="noopener noreferrer nofollow ugc">https://micropython.org/download/M5STACK_ATOMS3_LITE/</a> ?</p>
<p dir="auto">Otherwise, with the "UI Flow 2" firmware, the M5Stack Dial has its own mysterious bootloader, which allows OTA updates and configuring Wifi etc. On boot, this takes several seconds longer, and starts my Micropython script if connected to USB-C cable. I want this to work just on battery power, so I have connected the Lipo battery to the battery connector on the Dial. If I start the program with USB-C connected, I can then remove the USB-C cable and the program continues fine. I can also use Thonny to start the program, and see the REPL console.</p>
<p dir="auto">What doesn't work is, with only the battery connected, turning on the device with long-press of the front bezel button (BtnA). After a successful download of my program from UI Flow 2, it's supposed to run my program, but just.. doesn't. The device turns on (red LED on underneath) but nothing on the screen. Pressing reset turns it off (red LED goes off). Pressing BtnA turns it back on again. But it's not running the program I made in UIFlow 2.</p>
<p dir="auto">Is there a guide somewhere to using a M5Stack device on battery, configuring the bootloader, to make them run a Micropython program on boot? I'd really prefer to get rid of that bootloader - it's not helping me.</p>
<p dir="auto">I can't figure out what I'm doing wrong, the documentation is fragmented and low on detail, and I haven't found any good guides to programming and using the Dial.</p>
<p dir="auto">Thanks in advance,</p>
]]></description><link>https://community.m5stack.com/post/27626</link><guid isPermaLink="true">https://community.m5stack.com/post/27626</guid><dc:creator><![CDATA[PharkieB]]></dc:creator><pubDate>Sat, 28 Dec 2024 19:19:20 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack Dial with Micropython and M5 libraries, without UIFlow 2? on Sat, 28 Dec 2024 17:21:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/201613">@PharkieB</a> MicroPython is a distinct programming language for ESP32.<br />
Thonny IDE is an Integrated Development Environment that allows you to develop your own programs in MicroPython. It is not graphic as is UIFlow, but text based.<br />
It also allows you to download (burn) directly.<br />
Check it out!</p>
<p dir="auto"><a href="https://randomnerdtutorials.com/micropython-ides-esp32-esp8266/#thonny-ide" target="_blank" rel="noopener noreferrer nofollow ugc">https://randomnerdtutorials.com/micropython-ides-esp32-esp8266/#thonny-ide</a></p>
]]></description><link>https://community.m5stack.com/post/27621</link><guid isPermaLink="true">https://community.m5stack.com/post/27621</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sat, 28 Dec 2024 17:21:56 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack Dial with Micropython and M5 libraries, without UIFlow 2? on Sat, 28 Dec 2024 16:25:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/201613">@PharkieB</a> I will have to check because I've been so busy that I have actually forgotten!</p>
]]></description><link>https://community.m5stack.com/post/27619</link><guid isPermaLink="true">https://community.m5stack.com/post/27619</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 28 Dec 2024 16:25:15 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack Dial with Micropython and M5 libraries, without UIFlow 2? on Sat, 28 Dec 2024 13:37:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> That's great to hear that it's an option!</p>
<p dir="auto">So do you flash your M5Stack device with the M5Burner and UIFlow build, or is there a more "normal" Micropython build that works (the Dial is an ESP-32 S3 "Stamp").</p>
<p dir="auto">Can you make your M5Stack device run your Micropython code directly, without the bootloader that shows Wifi settings etc?</p>
<p dir="auto">Any help or tips appreciated.</p>
]]></description><link>https://community.m5stack.com/post/27616</link><guid isPermaLink="true">https://community.m5stack.com/post/27616</guid><dc:creator><![CDATA[PharkieB]]></dc:creator><pubDate>Sat, 28 Dec 2024 13:37:17 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack Dial with Micropython and M5 libraries, without UIFlow 2? on Sat, 28 Dec 2024 09:02:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/201613">@PharkieB</a> Yes, I use Thonny for programming and uploading Micropython.<br />
Thonny makes it easier to upload images and libraries to M5Stack devices.<br />
<a href="https://thonny.org" target="_blank" rel="noopener noreferrer nofollow ugc">https://thonny.org</a></p>
]]></description><link>https://community.m5stack.com/post/27611</link><guid isPermaLink="true">https://community.m5stack.com/post/27611</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 28 Dec 2024 09:02:53 GMT</pubDate></item></channel></rss>