@PharkieB My idea, above, works!

Now, I can turn ON my Lipo-powered M5Stack Dial with the "Wake" (front button), it loads my UI Flow program, and then I can tell the software (btn A) to switch it OFF, when that's appropriate:

Screenshot 2024-12-22 at 16.40.40.png Screenshot 2024-12-22 at 16.40.54.png

This is using the "System >> Execute mpy code" block with this for on:

hold_pin = Pin(46, Pin.OUT) hold_pin.value(1)

and this for off

hold_pin = Pin(46, Pin.OUT) hold_pin.value(0)

Ideally this would be a standard UI Flow block for the M5Dial (keep device on once awake and on battery). It seems odd I've had to invent it, based on detail in the documentation.