@scoobysnax Wondering if you got any further with this?
I'm also struggling to figure out how to get the M5Stack Dial working with a small Lipo battery. I just want to easily turn it on and off and start the program I made in UI Flow 2 and downloaded to the device. That seems VERY HARD, so far?
As you say, if I connect the battery, then connect USB-C power, the app boots correctly into my app (after a few slightly annoying seconds). Then I can disconnect USB-C power and the app stays working. That's... encouraging?
Without the USB-C cable, I can turn the device ON with long-press of the main fascia button. That's indicated here:
I can turn it OFF with the reset button on the back.
However, "ON" with battery means "load the boot loader thing" rather than "run my app". It shows Wifi settings, "helloworld.py" (which is not my UI Flow program) - then crashes after a few seconds. I managed to set "Boot screen: OFF". So now, instead, when I hold the "Wake" button (main fascia button), it says "Success: 100%" (black on white) turns off the screen, and does nothing else. I can repeat this by pressing Reset then the main button again.
My UI Flow program has "Boot option set to: Run main.py directly" in the Setup part.
The documentation says:
"Wake up can be initiated by pressing the "Wake" button or by an IRQ signal triggered
periodically by the RTC. After triggering the wake-up signal, >> set the HOLD (GPIO46)
pin to a high level (1) during program initialization to maintain the power supply.
Otherwise, the device will enter the sleep state again <<
When there is no USB external power supply, press the RST key to power off.
Alternatively, when there is no USB external power supply, set HOLD (GPIO46)
to 0 during program operation to achieve power off."
I'm confused by that. Do I need to figure out how to set GPIO46 to high from within UIFlow?
I can confirm the battery connector is JST GH 2 pin 1.25mm: I bought these and they fit perfectly:
https://vi.aliexpress.com/item/1005007079265201.html?spm=a2g0o.order_list.order_list_main.17.46b51802JNvMnD&gatewayAdapt=glo2vnm >> product options: 1.25 mm, 10 cm, 2 pi
Best wishes and hoping someone can help! 🎄