After working with Unix/Linux systems for a lifetime, i know that bad stuff will happen if you just disconnect the power on a regular basis. I still feel a twitch in my fingers if I don¡¯t run sync; sync; sync; before a shutdown or halt command ;)
?
I¡¯ve forked Farhan¡¯s code and added a button on the UI to shut down the Pi Zero:
https://github.com/khkremer/zbitx.git
https://github.com/khkremer/zbitxfrontpanel.git
The "Shutdown" function is behind the "Menu" button. After selecting it and confirming, wait until the LED on the Pi Zero (which you can see through the covered USB connector) stop to blink. I moved the confirmation button a bit up so that it¡¯s harder to fat finger the shutdown with an unintentional double tap on the shutdown button.