moment power off
-
Hi Guys,
Can M5Stack detect the moment it will be power off?
Like when usb power off / unplug, or power/reset button is pressed.
The reason is because I need to save certain data at that moment.Regards,
Rezan -
when the USB unplug. the device will auto reboot soon. you can't catch this event through the program.
but maybe you could get the battery voltage. when it lower something level. control the device save data.
-
@m5stack Understood. Thanks