The battery is linked to the output from the TP4056 module. From there the availability is connected to a high-facet P-Channel MOSFET. By default, the gate of this MOSFET is pulled up towards the VBAT stage. When the little slide switch is switched about the gate will be connected to the ground as well as MOSFET will be turned on. This straightforw